|
NCEPLIBS-g2
3.4.5
|
This subroutine read a GRIB file and return its index content. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | getg2ir (LUGB, MSK1, MSK2, MNUM, CBUF, NLEN, NNUM, NMESS, IRET) |
| This subroutine read a GRIB file and return its index content. More... | |
This subroutine read a GRIB file and return its index content.
Definition in file getg2ir.f.
| subroutine getg2ir | ( | integer, intent(in) | LUGB, |
| integer, intent(in) | MSK1, | ||
| integer, intent(in) | MSK2, | ||
| integer, intent(in) | MNUM, | ||
| character(len=1), dimension(:), pointer | CBUF, | ||
| integer, intent(out) | NLEN, | ||
| integer, intent(out) | NNUM, | ||
| integer, intent(out) | NMESS, | ||
| integer, intent(out) | IRET | ||
| ) |
This subroutine read a GRIB file and return its index content.
the index buffer returned contains index records with the internal format:
Program history log:
| [in] | lugb | integer unit of the unblocked grib file |
| [in] | msk1 | integer number of bytes to search for first message |
| [in] | msk2 | integer number of bytes to search for other messages |
| [in] | mnum | integer number of grib messages to skip (usually 0) output arguments: |
| [out] | cbuf | character*1 pointer to a buffer that contains index records. users should free memory that cbuf points to, using deallocate(cbuf) when cbuf is no longer needed. |
| [out] | nlen | integer total length of index record buffer in bytes |
| [out] | nnum | integer number of index records, =0 if no grib messages are found) |
| [out] | nmess | last grib message in file successfully processed |
| [out] | iret | integer return code
|
subprograms called: