|
NCEPLIBS-w3emc
2.11.0
|
Search for next grib message. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | skgb (LUGB, ISEEK, MSEEK, LSKIP, LGRIB) |
| This subprogram searches a file for the next grib 1 message. More... | |
| subroutine skgb | ( | LUGB, | |
| ISEEK, | |||
| MSEEK, | |||
| LSKIP, | |||
| LGRIB | |||
| ) |
This subprogram searches a file for the next grib 1 message.
A grib 1 message is identified by its indicator section, i.e. an 8-byte sequence with 'grib' in bytes 1-4 and 1 in byte 8. If found, the length of the message is decoded from bytes 5-7. The search is done over a given section of the file. The search is terminated if an eof or i/o error is encountered.
Program history log:
| [in] | LUGB | Integer logical unit of input grib file. |
| [in] | ISEEK | Integer number of bytes to skip before search. |
| [in] | MSEEK | Integer maximum number of bytes to search. |
| [out] | LSKIP | Integer number of bytes to skip before message. |
| [out] | LGRIB | Integer number of bytes in message (0 if not found). |