NCEPLIBS-w3emc 2.12.0
|
Find a grib message. More...
Go to the source code of this file.
Functions/Subroutines | |
subroutine | getgbeh (lugb, lugi, j, jpds, jgds, jens, kg, kf, k, kpds, kgds, kens, iret) |
Read a grib index file (or optionally the grib file itself) to get the index buffer (i.e. | |
subroutine getgbeh | ( | lugb, | |
lugi, | |||
j, | |||
integer, dimension(200) | jpds, | ||
integer, dimension(200) | jgds, | ||
integer, dimension(200) | jens, | ||
kg, | |||
kf, | |||
k, | |||
integer, dimension(200) | kpds, | ||
integer, dimension(200) | kgds, | ||
integer, dimension(200) | kens, | ||
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 its message number is returned along with the unpacked pds and gds parameters. If the grib message is not found, then the return code will be nonzero.
Program History:
[in] | LUGB | Integer unit of the unblocked grib data file. (only used if lugi=0) |
[in] | LUGI | Integer unit of the unblocked grib index file. (=0 to get index buffer from the grib file) |
[in] | J | Integer number of messages to skip.
|
[in] | JPDS | Integer (200) pds parameters for which to search (can be combination of more than 1).
|
[in] | JGDS | Integer (200) gds parameters for which to search. (only searched if jpds(3)=255)
|
[in] | JENS | Integer (200) ensemble pds parms for which to search (only searched if jpds(23)=2).
|
[out] | KG | Integer number of bytes in the grib message. |
[out] | KF | Integer number of data points in the message. |
[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] | IRET | Integer return code.
|