NCEPLIBS-ip
4.1.0
|
Driver module for gdswzd routines. More...
Data Types | |
interface | gdswzd |
Functions/Subroutines | |
subroutine | gdswzd_1d_array (IGDTNUM, IGDTMPL, IGDTLEN, IOPT, NPTS, FILL, XPTS, YPTS, RLON, RLAT, NRET, CROT, SROT, XLON, XLAT, YLON, YLAT, AREA) |
Decodes the grib 2 grid definition template and returns one of the following: More... | |
subroutine | gdswzd_2d_array (IGDTNUM, IGDTMPL, IGDTLEN, IOPT, NPTS, FILL, XPTS, YPTS, RLON, RLAT, NRET, CROT, SROT, XLON, XLAT, YLON, YLAT, AREA) |
Decodes the grib 2 grid definition template and returns one of the following (for 2d-arrays): More... | |
subroutine, public | gdswzd_2d_array_grib1 (KGDS, IOPT, NPTS, FILL, XPTS, YPTS, RLON, RLAT, NRET, CROT, SROT, XLON, XLAT, YLON, YLAT, AREA) |
Decodes the grib grid description section and returns one of the following (for 2-d arrays): More... | |
subroutine, public | gdswzd_grib1 (KGDS, IOPT, NPTS, FILL, XPTS, YPTS, RLON, RLAT, NRET, CROT, SROT, XLON, XLAT, YLON, YLAT, AREA) |
Decodes the grib grid description section and returns one of the following (for 1-d arrays): More... | |
subroutine | gdswzd_grid (grid, IOPT, NPTS, FILL, XPTS, YPTS, RLON, RLAT, NRET, CROT, SROT, XLON, XLAT, YLON, YLAT, AREA) |
Returns one of the following for a grid object: More... | |
subroutine | gdswzd_scalar (IGDTNUM, IGDTMPL, IGDTLEN, IOPT, NPTS, FILL, XPTS, YPTS, RLON, RLAT, NRET, CROT, SROT, XLON, XLAT, YLON, YLAT, AREA) |
Decodes the grib 2 grid definition template and returns one of the following (for scalars): More... | |
Driver module for gdswzd routines.
These routines do the following for several map projections:
Map projections include:
|
private |
Decodes the grib 2 grid definition template and returns one of the following:
The current code recognizes the following projections, where "igdtnum" is the grid definition template number:
If the selected coordinates are more than one gridpoint beyond the the edges of the grid domain, then the relevant output elements are set to fill values. Also if iopt=0, if the number of grid points exceeds the number allotted, then all the output elements are set to fill values.
The actual number of valid points computed is returned too.
Optionally, the vector rotations, map jacobians and grid box areas may be returned.
To compute the vector rotations, the optional arguments 'srot' and 'crot' must be present. To compute the map jacobians, the optional arguments 'xlon', 'xlat', 'ylon', 'ylat' must be present.
To compute the grid box areas, the optional argument 'area' must be present.
[in] | igdtnum | Grid definition template number. Corresponds to the gfldigdtnum component of the ncep g2 library gridmod data structure:
|
[in] | igdtmpl | Grid definition template array. Corresponds to the gfldigdtmpl component of the NCEPLIBS-g2 gridmod data structure |
Section 3 Info:
All Map Projections:
Equidistant Cyclindrical:
Mercator Cyclindrical:
Lambert Conformal Conical:
Gaussian Cylindrical:
Polar Stereographic Azimuthal:
Rotated Equidistant Cyclindrical:
[in] | igdtlen | Number of elements of the grid definition template array. Corresponds to the gfldigdtlen component of the ncep g2 library gridmod data structure. |
[in] | iopt | Option flag.
|
[in] | npts | Maximum number of coordinates. |
[in] | fill | Fill value to set invalid output data. Must be impossible value; suggested value: -9999. |
[in,out] | xpts | Grid x point coordinates. |
[in,out] | ypts | Grid y point coordinates. |
[in,out] | rlon | Earth longitudes in degrees E. (Acceptable range: -360. to 360.) |
[in,out] | rlat | Earth latitudes in degrees N. (Acceptable range: -90. to 90.) |
[out] | nret | Number of valid points computed. |
[out] | crot | Clockwise vector rotation cosines. |
[out] | srot | Clockwise vector rotation sines. ugrid=crot*uearth-srot*vearth; vgrid=srot*uearth+crot*vearth) |
[out] | xlon | dx/dlat in 1/degrees |
[out] | xlat | dy/dlon in 1/degrees |
[out] | ylon | dy/dlon in 1/degrees |
[out] | ylat | dy/dlat in 1/degrees |
[out] | area | Area weights in m^2. Proportional to the square of the map factor in the case of conformal projections |
Definition at line 665 of file gdswzd_mod.F90.
Referenced by gdswzd_mod::gdswzd::gdswzd_2d_array(), and gdswzd_mod::gdswzd::gdswzd_scalar().
|
private |
Decodes the grib 2 grid definition template and returns one of the following (for 2d-arrays):
The current code recognizes the following projections, where "igdtnum" is the grid definition template number:
If the selected coordinates are more than one gridpoint beyond the the edges of the grid domain, then the relevant output elements are set to fill values. Also if iopt=0, if the number of grid points exceeds the number allotted, then all the output elements are set to fill values.
The actual number of valid points computed is returned too.
Optionally, the vector rotations, map jacobians and grid box areas may be returned.
To compute the vector rotations, the optional arguments 'srot' and 'crot' must be present. To compute the map jacobians, the optional arguments 'xlon', 'xlat', 'ylon', 'ylat' must be present.
To compute the grid box areas, the optional argument 'area' must be present.
[in] | igdtnum | Grid definition template number. |
[in] | igdtmpl | Grid definition template array. Corresponds to the gfldigdtmpl component of the NCEPLIBS-g2 gridmod data structure. See igdtmpl definition in gdswzd_1d_array() for full details. |
[in] | igdtlen | Number of elements of the grid definition template array. Corresponds to the gfldigdtlen component of the ncep g2 library gridmod data structure. |
[in] | iopt | Option flag.
|
[in] | npts | Maximum number of coordinates. |
[in] | fill | Fill value to set invalid output data. Must be impossible value; suggested value: -9999. |
[in,out] | xpts | Grid x point coordinates. |
[in,out] | ypts | Grid y point coordinates. |
[in,out] | rlon | Earth longitudes in degrees E. (Acceptable range: -360. to 360.) |
[in,out] | rlat | Earth latitudes in degrees N. (Acceptable range: -90. to 90.) |
[out] | nret | Number of valid points computed. |
[out] | crot | Clockwise vector rotation cosines. |
[out] | srot | Clockwise vector rotation sines. ugrid=crot*uearth-srot*vearth; vgrid=srot*uearth+crot*vearth) |
[out] | xlon | dx/dlat in 1/degrees |
[out] | xlat | dy/dlon in 1/degrees |
[out] | ylon | dy/dlon in 1/degrees |
[out] | ylat | dy/dlat in 1/degrees |
[out] | area | Area weights in m^2. Proportional to the square of the map factor in the case of conformal projections |
Definition at line 459 of file gdswzd_mod.F90.
subroutine, public gdswzd_mod::gdswzd_2d_array_grib1 | ( | integer, dimension(200), intent(in) | KGDS, |
integer, intent(in) | IOPT, | ||
integer, intent(in) | NPTS, | ||
real, intent(in) | FILL, | ||
real, dimension(:,:), intent(inout) | XPTS, | ||
real, dimension(:,:), intent(inout) | YPTS, | ||
real, dimension(:,:), intent(inout) | RLON, | ||
real, dimension(:,:), intent(inout) | RLAT, | ||
integer, intent(out) | NRET, | ||
real, dimension(:,:), intent(out), optional | CROT, | ||
real, dimension(:,:), intent(out), optional | SROT, | ||
real, dimension(:,:), intent(out), optional | XLON, | ||
real, dimension(:,:), intent(out), optional | XLAT, | ||
real, dimension(:,:), intent(out), optional | YLON, | ||
real, dimension(:,:), intent(out), optional | YLAT, | ||
real, dimension(:,:), intent(out), optional | AREA | ||
) |
Decodes the grib grid description section and returns one of the following (for 2-d arrays):
If the selected coordinates are more than one gridpoint beyond the the edges of the grid domain, then the relevant output elements are set to fill values. Also if iopt=0, if the number of grid points exceeds the number allotted, then all the output elements are set to fill values.
The actual number of valid points computed is returned too.
Optionally, the vector rotations, map jacobians and grid box areas may be returned.
To compute the vector rotations, the optional arguments 'srot' and 'crot' must be present. To compute the map jacobians, the optional arguments 'xlon', 'xlat', 'ylon', 'ylat' must be present.
To compute the grid box areas, the optional argument 'area' must be present.
The current code recognizes the following projections:
[in] | kgds | GDS parameters as decoded by w3fi63. |
[in] | iopt | Option flag.
|
[in] | npts | Maximum number of coordinates. |
[in] | fill | Fill value to set invalid output data. Must be impossible value; suggested value: -9999. |
[in,out] | xpts | Grid x point coordinates. |
[in,out] | ypts | Grid y point coordinates. |
[in,out] | rlon | Earth longitudes in degrees E. (Acceptable range: -360. to 360.) |
[in,out] | rlat | Earth latitudes in degrees N. (Acceptable range: -90. to 90.) |
[out] | nret | Number of valid points computed. |
[out] | crot | Clockwise vector rotation cosines. |
[out] | srot | Clockwise vector rotation sines. ugrid=crot*uearth-srot*vearth; vgrid=srot*uearth+crot*vearth) |
[out] | xlon | dx/dlat in 1/degrees |
[out] | xlat | dy/dlon in 1/degrees |
[out] | ylon | dy/dlon in 1/degrees |
[out] | ylat | dy/dlat in 1/degrees |
[out] | area | Area weights in m^2. Proportional to the square of the map factor in the case of conformal projections |
Definition at line 850 of file gdswzd_mod.F90.
subroutine, public gdswzd_mod::gdswzd_grib1 | ( | integer, dimension(200), intent(in) | KGDS, |
integer, intent(in) | IOPT, | ||
integer, intent(in) | NPTS, | ||
real, intent(in) | FILL, | ||
real, dimension(npts), intent(inout) | XPTS, | ||
real, dimension(npts), intent(inout) | YPTS, | ||
real, dimension(npts), intent(inout) | RLON, | ||
real, dimension(npts), intent(inout) | RLAT, | ||
integer, intent(out) | NRET, | ||
real, dimension(npts), intent(out), optional | CROT, | ||
real, dimension(npts), intent(out), optional | SROT, | ||
real, dimension(npts), intent(out), optional | XLON, | ||
real, dimension(npts), intent(out), optional | XLAT, | ||
real, dimension(npts), intent(out), optional | YLON, | ||
real, dimension(npts), intent(out), optional | YLAT, | ||
real, dimension(npts), intent(out), optional | AREA | ||
) |
Decodes the grib grid description section and returns one of the following (for 1-d arrays):
If the selected coordinates are more than one gridpoint beyond the the edges of the grid domain, then the relevant output elements are set to fill values. Also if iopt=0, if the number of grid points exceeds the number allotted, then all the output elements are set to fill values.
The actual number of valid points computed is returned too.
Optionally, the vector rotations, map jacobians and grid box areas may be returned.
To compute the vector rotations, the optional arguments 'srot' and 'crot' must be present. To compute the map jacobians, the optional arguments 'xlon', 'xlat', 'ylon', 'ylat' must be present.
To compute the grid box areas, the optional argument 'area' must be present.
The current code recognizes the following projections:
[in] | kgds | GDS parameters as decoded by w3fi63. |
[in] | iopt | Option flag.
|
[in] | npts | Maximum number of coordinates. |
[in] | fill | Fill value to set invalid output data. Must be impossible value; suggested value: -9999. |
[in,out] | xpts | Grid x point coordinates. |
[in,out] | ypts | Grid y point coordinates. |
[in,out] | rlon | Earth longitudes in degrees E. (Acceptable range: -360. to 360.) |
[in,out] | rlat | Earth latitudes in degrees N. (Acceptable range: -90. to 90.) |
[out] | nret | Number of valid points computed. |
[out] | crot | Clockwise vector rotation cosines. |
[out] | srot | Clockwise vector rotation sines. ugrid=crot*uearth-srot*vearth; vgrid=srot*uearth+crot*vearth) |
[out] | xlon | dx/dlat in 1/degrees |
[out] | xlat | dy/dlon in 1/degrees |
[out] | ylon | dy/dlon in 1/degrees |
[out] | ylat | dy/dlat in 1/degrees |
[out] | area | Area weights in m^2. Proportional to the square of the map factor in the case of conformal projections |
Definition at line 758 of file gdswzd_mod.F90.
|
private |
Returns one of the following for a grid object:
If the selected coordinates are more than one gridpoint beyond the the edges of the grid domain, then the relevant output elements are set to fill values. Also if iopt=0, if the number of grid points exceeds the number allotted, then all the output elements are set to fill values.
The actual number of valid points computed is returned too.
Optionally, the vector rotations, map jacobians and grid box areas may be returned.
To compute the vector rotations, the optional arguments 'srot' and 'crot' must be present. To compute the map jacobians, the optional arguments 'xlon', 'xlat', 'ylon', 'ylat' must be present.
To compute the grid box areas, the optional argument 'area' must be present.
[in] | grid | Grid to call gdswzd on. |
[in] | iopt | Option flag.
|
[in] | npts | Maximum number of coordinates. |
[in] | fill | Fill value to set invalid output data. Must be impossible value; suggested value: -9999. |
[in,out] | xpts | Grid x point coordinates. |
[in,out] | ypts | Grid y point coordinates. |
[in,out] | rlon | Earth longitudes in degrees E. (Acceptable range: -360. to 360.) |
[in,out] | rlat | Earth latitudes in degrees N. (Acceptable range: -90. to 90.) |
[out] | nret | Number of valid points computed. |
[out] | crot | Clockwise vector rotation cosines. |
[out] | srot | Clockwise vector rotation sines. ugrid=crot*uearth-srot*vearth; vgrid=srot*uearth+crot*vearth) |
[out] | xlon | dx/dlat in 1/degrees |
[out] | xlat | dy/dlon in 1/degrees |
[out] | ylon | dy/dlon in 1/degrees |
[out] | ylat | dy/dlat in 1/degrees |
[out] | area | Area weights in m^2. Proportional to the square of the map factor in the case of conformal projections |
Definition at line 105 of file gdswzd_mod.F90.
Referenced by gdswzd_mod::gdswzd::gdswzd_1d_array(), gdswzd_mod::gdswzd::gdswzd_2d_array_grib1(), and gdswzd_mod::gdswzd::gdswzd_grib1().
|
private |
Decodes the grib 2 grid definition template and returns one of the following (for scalars):
The current code recognizes the following projections, where "igdtnum" is the grid definition template number:
If the selected coordinates are more than one gridpoint beyond the the edges of the grid domain, then the relevant output elements are set to fill values. Also if iopt=0, if the number of grid points exceeds the number allotted, then all the output elements are set to fill values.
The actual number of valid points computed is returned too.
Optionally, the vector rotations, map jacobians and grid box areas may be returned.
To compute the vector rotations, the optional arguments 'srot' and 'crot' must be present. To compute the map jacobians, the optional arguments 'xlon', 'xlat', 'ylon', 'ylat' must be present.
To compute the grid box areas, the optional argument 'area' must be present.
[in] | igdtnum | Grid definition template number. |
[in] | igdtmpl | Grid definition template array. Corresponds to the gfldigdtmpl component of the NCEPLIBS-g2 gridmod data structure See igdtmpl definition in gdswzd_1d_array() for full details. |
[in] | igdtlen | Number of elements of the grid definition template array. Corresponds to the gfldigdtlen component of the ncep g2 library gridmod data structure. |
[in] | iopt | Option flag.
|
[in] | npts | Maximum number of coordinates. |
[in] | fill | Fill value to set invalid output data. Must be impossible value; suggested value: -9999. |
[in,out] | xpts | Grid x point coordinates. |
[in,out] | ypts | Grid y point coordinates. |
[in,out] | rlon | Earth longitudes in degrees E. (Acceptable range: -360. to 360.) |
[in,out] | rlat | Earth latitudes in degrees N. (Acceptable range: -90. to 90.) |
[out] | nret | Number of valid points computed. |
[out] | crot | Clockwise vector rotation cosines. |
[out] | srot | Clockwise vector rotation sines. ugrid=crot*uearth-srot*vearth; vgrid=srot*uearth+crot*vearth) |
[out] | xlon | dx/dlat in 1/degrees |
[out] | xlat | dy/dlon in 1/degrees |
[out] | ylon | dy/dlon in 1/degrees |
[out] | ylat | dy/dlat in 1/degrees |
[out] | area | Area weights in m^2. Proportional to the square of the map factor in the case of conformal projections |
Definition at line 278 of file gdswzd_mod.F90.