|
NCEPLIBS-g2 3.5.1
|
Search a file for the next GRIB1 or GRIB2 message. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | skgb (lugb, iseek, mseek, lskip, lgrib) |
| Search a file for the next GRIB1 or GRIB2 message. | |
| subroutine | skgb8 (lugb, iseek8, mseek8, lskip8, lgrib8) |
| Search a file for the next GRIB1 or GRIB2 message. | |
| subroutine skgb | ( | integer | lugb, |
| integer | iseek, | ||
| integer | mseek, | ||
| integer | lskip, | ||
| integer | lgrib | ||
| ) |
Search a file for the next GRIB1 or GRIB2 message.
A grib message is identified by its indicator section, which is an 8-byte sequence with 'GRIB' in bytes 1-4 and a '1' or '2' in byte
| [in] | lugb | Unit of the unblocked grib file. |
| [in] | iseek | Number of bytes to skip before search. |
| [in] | mseek | Maximum number of bytes to search. |
| [out] | lskip | Number of bytes to skip before message. |
| [out] | lgrib | Number of bytes in message (0 if not found). |
Definition at line 20 of file skgb.F90.
References skgb8().
| subroutine skgb8 | ( | integer | lugb, |
| integer*8 | iseek8, | ||
| integer*8 | mseek8, | ||
| integer*8 | lskip8, | ||
| integer*8 | lgrib8 | ||
| ) |
Search a file for the next GRIB1 or GRIB2 message.
This function works for GRIB2 files larger than 2 GB, but still requires that each GRIB2 message be less than 2 GB.
A grib message is identified by its indicator section, which is an 8-byte sequence with 'GRIB' in bytes 1-4 and a '1' or '2' in byte
| [in] | lugb | Unit of the unblocked grib file. |
| [in] | iseek8 | Number of bytes to skip before search. |
| [in] | mseek8 | Maximum number of bytes to search. |
| [out] | lskip8 | Number of bytes to skip before message. |
| [out] | lgrib8 | Number of bytes in message (0 if not found). |
Definition at line 52 of file skgb.F90.
References g2_gbytec().
Referenced by getg2i2r(), and skgb().