|
NCEPLIBS-g2
3.4.5
|
This subroutine generates an index record for each field in a grib2 message. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | skgb (LUGB, ISEEK, MSEEK, LSKIP, LGRIB) |
| This subroutine searches a file for the next grib 1 message. More... | |
This subroutine generates an index record for each field in a grib2 message.
Definition in file skgb.f.
| subroutine skgb | ( | LUGB, | |
| ISEEK, | |||
| MSEEK, | |||
| LSKIP, | |||
| LGRIB | |||
| ) |
This subroutine 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 unit of the unblocked 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) |