NCEPLIBS-ip 5.2.0
|
Expand or contract wafs grids. More...
Go to the source code of this file.
Functions/Subroutines | |
subroutine | ipxwafs (idir, numpts_thin, numpts_full, km, num_opt, opt_pts, igdtlen, igdtmpl_thin, data_thin, igdtmpl_full, data_full, iret) |
Expand or contract wafs grids. | |
subroutine ipxwafs | ( | integer, intent(in) | idir, |
integer, intent(in) | numpts_thin, | ||
integer, intent(in) | numpts_full, | ||
integer, intent(in) | km, | ||
integer, intent(in) | num_opt, | ||
integer, dimension(num_opt), intent(inout) | opt_pts, | ||
integer, intent(in) | igdtlen, | ||
integer, dimension(igdtlen), intent(inout) | igdtmpl_thin, | ||
real, dimension(numpts_thin,km), intent(inout) | data_thin, | ||
integer, dimension(igdtlen), intent(inout) | igdtmpl_full, | ||
real, dimension(numpts_full,km), intent(inout) | data_full, | ||
integer, intent(out) | iret | ||
) |
Expand or contract wafs grids.
This subprogram transforms between the thinned wafs grids used for transmitting to the aviation community and their full expansion as used for general interpolation and graphics.
The thinned wafs grids are latitude-longitude grids where the number of points in each row decrease toward the pole.
This information is stored in the grib 2 grid definition template (section 3) starting at octet 73. The full grid counterparts have an equal number of points per row. The transform between the full and thinned wafs grid is done by linear interpolation and is not reversible.
This routine does not work for bitmapped data.
Date | Programmer | Comments |
---|---|---|
96-04-10 | iredell | initial version |
2015-july | gayno | convert to grib 2 |
[in] | idir | integer transform option
|
[in] | numpts_thin | integer number of grid points - thinned grid. must be 3447. |
[in] | numpts_full | integer number of grid points - full grid. must be 5329 (73^2). |
[in] | km | integer number of fields to transform |
[in] | num_opt | integer number of values to describe the thinned grid. must be 73. dimension of array opt_pts. |
[in,out] | opt_pts | integer (num_opt) number of grid points per row - thinned grid - if idir=+1 |
[in] | igdtlen | integer grid defintion template array length. must be 19 for lat/lon grids. corresponds to the gfldigdtlen component of the ncep g2 library gridmod data structure. same for thin and full grids which are both lat/lon. |
[in,out] | igdtmpl_thin | integer (igdtlen) grid definition template array - thinned grid - if idir=+1. corresponds to the gfldigdtmpl component of the ncep g2 library gridmod data structure (section 3 info):
|
[in,out] | data_thin | real (numpts_thin,km) thinned grid fields if idir=+1 |
[in,out] | igdtmpl_full | integer (igdtlen) grid definition template array - full grid - if idir=-1. corresponds to the gfldigdtmpl component of the ncep g2 library gridmod data structure. same as igdtmpl_thin except:
|
[in,out] | data_full | real (numpts_full,km) full grid fields if idir=-1 |
[out] | iret | integer return code
|
Definition at line 81 of file ipxwafs.F90.