NCEPLIBS-w3emc 2.12.0
|
Find and unpack a grib message. More...
Go to the source code of this file.
Functions/Subroutines | |
subroutine | getgbex (lugb, lugi, jf, j, jpds, jgds, jens, kf, k, kpds, kgds, kens, kprob, xprob, kclust, kmembr, lb, f, iret) |
Read a grib index file (or optionally the grib file itself) to get the index buffer (i.e. | |
subroutine getgbex | ( | lugb, | |
lugi, | |||
jf, | |||
j, | |||
integer, dimension(200) | jpds, | ||
integer, dimension(200) | jgds, | ||
integer, dimension(200) | jens, | ||
kf, | |||
k, | |||
integer, dimension(200) | kpds, | ||
integer, dimension(200) | kgds, | ||
integer, dimension(200) | kens, | ||
integer, dimension(2) | kprob, | ||
real, dimension(2) | xprob, | ||
integer, dimension(16) | kclust, | ||
integer, dimension(80) | kmembr, | ||
logical*1, dimension(jf) | lb, | ||
real, dimension(jf) | f, | ||
iret | |||
) |
Read a grib index file (or optionally the grib file itself) to get the index buffer (i.e.
table of contents) for the grib file. (The index buffer is saved for use by future prospective calls.) Find in the index buffer a reference to the grib message requested. The grib message request specifies the number of messages to skip and the unpacked pds and gds parameters. (A requested parameter of -1 means to allow any value of this parameter to be found.) If the requested grib message is found, then it is read from the grib file and unpacked. Its message number is returned along with the unpacked pds and gds parameters, the unpacked bitmap (if any), and the unpacked data. If the grib message is not found, then the return code will be nonzero.
Program history log:
[in] | lugb | integer unit of the unblocked grib data file. |
[in] | lugi | integer unit of the unblocked grib index file (=0 to get index buffer from the grib file). |
[in] | jf | integer maximum number of data points to unpack. |
[in] | j | integer number of messages to skip (=0 to search from beginning) (<0 to read index buffer and skip -1-j messages). |
[in] | jpds | integer (200) pds parameters for which to search (=-1 for wildcard).
|
[in] | jgds | integer (200) gds parameters for which to search (only searched if jpds(3)=255) (=-1 for wildcard).
|
[in] | jens | integer (200) ensemble pds parms for which to search (only searched if jpds(23)=2) (=-1 for wildcard).
|
[out] | kf | integer number of data points unpacked. |
[out] | k | integer message number unpacked (can be same as j in calling program in order to facilitate multiple searches). |
[out] | kpds | integer (200) unpacked pds parameters. |
[out] | kgds | integer (200) unpacked gds parameters. |
[out] | kens | integer (200) unpacked ensemble pds parms. |
[out] | kprob | integer (2) probability ensemble parms. |
[out] | xprob | real (2) probability ensemble parms. |
[out] | kclust | integer (16) cluster ensemble parms. |
[out] | kmembr | integer (8) cluster ensemble parms. |
[out] | lb | logical*1 (kf) unpacked bitmap if present. |
[out] | f | real (kf) unpacked data. |
[out] | iret | integer return code.
|