NCEPLIBS-sp  2.3.3
sptgptsd.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine sptgptsd (IROMB, MAXWV, KMAX, NMAX, KWSKIP, KGSKIP, NRSKIP, NGSKIP, RLAT, RLON, WAVE, GP, XP, YP)
 THIS SUBPROGRAM PERFORMS A SPHERICAL TRANSFORM FROM SPECTRAL COEFFICIENTS OF SCALAR QUANTITIES TO SPECIFIED SETS OF STATION POINT VALUES AND THEIR GRADIENTS ON THE GLOBE. More...
 

Detailed Description

Transform spectral scalar to station points

Author
IREDELL
Date
96-02-29

Definition in file sptgptsd.f.

Function/Subroutine Documentation

◆ sptgptsd()

subroutine sptgptsd (   IROMB,
  MAXWV,
  KMAX,
  NMAX,
  KWSKIP,
  KGSKIP,
  NRSKIP,
  NGSKIP,
real, dimension(*)  RLAT,
real, dimension(*)  RLON,
real, dimension(*)  WAVE,
real, dimension(*)  GP,
real, dimension(*)  XP,
real, dimension(*)  YP 
)

THIS SUBPROGRAM PERFORMS A SPHERICAL TRANSFORM FROM SPECTRAL COEFFICIENTS OF SCALAR QUANTITIES TO SPECIFIED SETS OF STATION POINT VALUES AND THEIR GRADIENTS ON THE GLOBE.

THE WAVE-SPACE CAN BE EITHER TRIANGULAR OR RHOMBOIDAL. THE WAVE AND POINT FIELDS MAY HAVE GENERAL INDEXING, BUT EACH WAVE FIELD IS IN SEQUENTIAL 'IBM ORDER', I.E. WITH ZONAL WAVENUMBER AS THE SLOWER INDEX. THE TRANSFORMS ARE ALL MULTIPROCESSED OVER STATIONS. TRANSFORM SEVERAL FIELDS AT A TIME TO IMPROVE VECTORIZATION. SUBPROGRAM CAN BE CALLED FROM A MULTIPROCESSING ENVIRONMENT.

PROGRAM HISTORY LOG:

  • 96-02-29 IREDELL
  • 1998-12-15 IREDELL OPENMP DIRECTIVES INSERTED
  • 1999-08-18 IREDELL OPENMP DIRECTIVE TYPO FIXED
Parameters
IROMB- INTEGER SPECTRAL DOMAIN SHAPE (0 FOR TRIANGULAR, 1 FOR RHOMBOIDAL)
MAXWV- INTEGER SPECTRAL TRUNCATION
KMAX- INTEGER NUMBER OF FIELDS TO TRANSFORM.
NMAX- INTEGER NUMBER OF STATION POINTS TO RETURN
KWSKIP- INTEGER SKIP NUMBER BETWEEN WAVE FIELDS (DEFAULTS TO (MAXWV+1)*((IROMB+1)*MAXWV+2) IF KWSKIP=0)
KGSKIP- INTEGER SKIP NUMBER BETWEEN STATION POINT SETS (DEFAULTS TO NMAX IF KGSKIP=0)
NRSKIP- INTEGER SKIP NUMBER BETWEEN STATION LATS AND LONS (DEFAULTS TO 1 IF NRSKIP=0)
NGSKIP- INTEGER SKIP NUMBER BETWEEN STATION POINTS (DEFAULTS TO 1 IF NGSKIP=0)
RLAT- REAL (*) STATION LATITUDES IN DEGREES
RLON- REAL (*) STATION LONGITUDES IN DEGREES
WAVE- REAL (*) WAVE FIELDS
GP- REAL (*) STATION POINT SETS
XP- REAL (*) STATION POINT X-GRADIENT SETS
YP- REAL (*) STATION POINT Y-GRADIENT SETS

SUBPROGRAMS CALLED:

  • SPWGET GET WAVE-SPACE CONSTANTS
  • SPLEGEND COMPUTE LEGENDRE POLYNOMIALS
  • SPSYNTH SYNTHESIZE FOURIER FROM SPECTRAL
  • SPGRADY COMPUTE Y-GRADIENT IN SPECTRAL SPACE
  • SPGRADX COMPUTE X-GRADIENT IN FOURIER SPACE
  • SPFFTPT COMPUTE FOURIER TRANSFORM TO GRIDPOINTS

Definition at line 53 of file sptgptsd.f.