|
NCEPLIBS-g2
3.4.5
|
This subroutine finds, reads or generates a grib2 index for the grib2 file associated with unit lugb. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | getidx (LUGB, LUGI, CINDEX, NLEN, NNUM, IRET) |
| This subroutine finds, reads or generates a grib2 index for the grib2 file associated with unit lugb. More... | |
This subroutine finds, reads or generates a grib2 index for the grib2 file associated with unit lugb.
Definition in file getidx.f.
| subroutine getidx | ( | integer, intent(in) | LUGB, |
| integer, intent(in) | LUGI, | ||
| character(len=1), dimension(:), pointer | CINDEX, | ||
| integer, intent(out) | NLEN, | ||
| integer, intent(out) | NNUM, | ||
| integer, intent(out) | IRET | ||
| ) |
This subroutine finds, reads or generates a grib2 index for the grib2 file associated with unit lugb.
If the index already exists, it is returned. otherwise, the index is (1) read from an existing indexfile associated with unit LUGI. or (2) generated from the grib2file LUGI. Users can force a regeneration of an index. If LUGI equals LUGB, the index will be regenerated from the data in file LUGB. If LUGI is less than zero, then the index is re read from index file abs(lugi).
PROGRAM HISTORY LOG:
| [in] | LUGB | integer unit of the unblocked grib data file. file must be opened with baopen or baopenr before calling this routine. |
| [in] | LUGI | integer unit of the unblocked grib index file. if nonzero, file must be opened with baopen baopenr before calling this routine. (=0 to get index buffer from the grib file) |
| [out] | CINDEX | character*1 pointer to a buffer that contains index records. |
| [out] | NLEN | integer total length of all index records |
| [out] | NNUM | integer number of index records |
| [out] | IRET | integer return code
|