NCEPLIBS-ip 5.2.0
|
C interface to gdswzd() and gdswzd_grib1() functions for '4' library build. More...
Go to the source code of this file.
Functions | |
void | gdswzd (int igdtnum, int *igdtmpl, int igdtlen, int iopt, int npts, float fill, float *xpts, float *ypts, float *rlon, float *rlat, int *nret, float *crot, float *srot, float *xlon, float *xlat, float *ylon, float *ylat, float *area) |
gdswzd() interface for C for _4 build of library. | |
void | gdswzd_grib1 (int *kgds, int iopt, int npts, float fill, float *xpts, float *ypts, float *rlon, float *rlat, int *nret, float *crot, float *srot, float *xlon, float *xlat, float *ylon, float *ylat, float *area) |
gdswzd_grib1() interface for C for the _4 build of the library. | |
C interface to gdswzd() and gdswzd_grib1() functions for '4' library build.
Definition in file iplib_4.h.
void gdswzd | ( | int | igdtnum, |
int * | igdtmpl, | ||
int | igdtlen, | ||
int | iopt, | ||
int | npts, | ||
float | fill, | ||
float * | xpts, | ||
float * | ypts, | ||
float * | rlon, | ||
float * | rlat, | ||
int * | nret, | ||
float * | crot, | ||
float * | srot, | ||
float * | xlon, | ||
float * | xlat, | ||
float * | ylon, | ||
float * | ylat, | ||
float * | area | ||
) |
gdswzd() interface for C for _4 build of library.
igdtnum | grid definition template number. Corresponds to the gfldigdtnum component of the ncep g2 library gridmod data structure.
|
igdtmpl | (igdtlen) grid definition template array. corresponds to the gfldigdtmpl component of the ncep g2 library gridmod data structure for section three. all projections:
|
igdtlen | number of elements of the grid definition template array. Corresponds to the gfldigdtlen component of the ncep g2 library gridmod data structure. |
iopt | option flag
|
npts | integer maximum number of coordinates |
fill | real fill value to set invalid output data (must be impossible value; suggested value: -9999.) |
xpts | real (npts) grid x point coordinates if iopt>0 |
ypts | real (npts) grid y point coordinates if iopt>0 |
rlon | real (npts) earth longitudes in degrees e if iopt<0 (acceptable range: -360. to 360.) |
rlat | real (npts) earth latitudes in degrees n if iopt<0 (acceptable range: -90. to 90.) |
nret | number of valid points computed (-1 if projection unrecognized) |
crot | (npts) clockwise vector rotation cosines |
srot | (npts) clockwise vector rotation sines (ugrid=crot*uearth-srot*vearth, vgrid=srot*uearth+crot*vearth) |
xlon | (npts) dx/dlon in 1/degrees |
xlat | (npts) dx/dlat in 1/degrees |
ylon | (npts) dy/dlon in 1/degrees |
ylat | (npts) dy/dlat in 1/degrees |
area | (npts) area weights in m**2 (Proportional to the square of the map factor in the case of conformal projections.) |
void gdswzd_grib1 | ( | int * | kgds, |
int | iopt, | ||
int | npts, | ||
float | fill, | ||
float * | xpts, | ||
float * | ypts, | ||
float * | rlon, | ||
float * | rlat, | ||
int * | nret, | ||
float * | crot, | ||
float * | srot, | ||
float * | xlon, | ||
float * | xlat, | ||
float * | ylon, | ||
float * | ylat, | ||
float * | area | ||
) |
gdswzd_grib1() interface for C for the _4 build of the library.
This is a C prototype to call the Fortran module subroutine gdswzd_c_grib1() for the _4 version of the library.
kgds | (200) gds parameters as decoded by w3fi63. |
iopt | option flag
|
npts | maximum number of coordinates |
fill | fill value to set invalid output data (must be impossible value; suggested value: -9999.) |
xpts | (npts) grid x point coordinates if iopt>0 |
ypts | (npts) grid y point coordinates if iopt>0 |
rlon | (npts) earth longitudes in degrees e if iopt<0 (acceptable range: -360. to 360.) |
rlat | (npts) earth latitudes in degrees n if iopt<0 (acceptable range: -90. to 90.) |
nret | number of valid points computed (-1 if projection unrecognized) |
crot | (npts) clockwise vector rotation cosines |
srot | (npts) clockwise vector rotation sines (ugrid=crot*uearth-srot*vearth; vgrid=srot*uearth+crot*vearth) |
xlon | (npts) dx/dlon in 1/degrees |
xlat | (npts) dx/dlat in 1/degrees |
ylon | (npts) dy/dlon in 1/degrees |
ylat | (npts) dy/dlat in 1/degrees |
area | (npts) area weights in m**2 (proportional to the square of the map factor in the case of conformal projections.) |