|
NCEPLIBS-g2
3.4.5
|
This subroutine find and extracts the index for the requested field from a grib file. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | getgb2rp (LUGB, CINDEX, EXTRACT, GRIBM, LENG, IRET) |
| This subroutine find and extracts a grib message from a file given the index for the requested field. More... | |
This subroutine find and extracts the index for the requested field from a grib file.
Definition in file getgb2rp.f.
| subroutine getgb2rp | ( | integer, intent(in) | LUGB, |
| character(len=1), dimension(*), intent(in) | CINDEX, | ||
| logical, intent(in) | EXTRACT, | ||
| character(len=1), dimension(:), pointer | GRIBM, | ||
| integer, intent(out) | LENG, | ||
| integer, intent(out) | IRET | ||
| ) |
This subroutine find and extracts a grib message from a file given the index for the requested field.
The grib message returned can contain only the requested field (extract=.true.). or the complete grib message originally containing the desired field can be returned (extract=.false.) even if other fields were included in the grib message. If the grib field is not found, then the return code will be nonzero.
| [in] | LUGB | integer unit of the unblocked grib data file. file must be opened with baopen or baopenr before calling this routine. |
| [in] | CINDEX | index record of the grib field (see docblock of subroutine ixgb2() for description of an index record.) |
| [in] | EXTRACT | logical value indicating whether to return a grib2 message with just the requested field, or the entire grib2 message containing the requested field.
|
| [out] | GRIBM | returned grib message. |
| [out] | LENG | length of returned grib message in bytes. |
| [out] | IRET | integer return code
|
Definition at line 36 of file getgb2rp.f.