|
NCEPLIBS-g2
3.4.8
|
Read and unpack sections 6 and 7 from a GRIB2 message. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | getgb2r (LUGB, CINDEX, GFLD, IRET) |
| Read and unpack sections 6 and 7 from a GRIB2 message. More... | |
Read and unpack sections 6 and 7 from a GRIB2 message.
Definition in file getgb2r.F90.
| subroutine getgb2r | ( | integer, intent(in) | LUGB, |
| character(len=1), dimension(*), intent(in) | CINDEX, | ||
| type(gribfield) | GFLD, | ||
| integer, intent(out) | IRET | ||
| ) |
Read and unpack sections 6 and 7 from a GRIB2 message.
It assumes that the metadata for this field already exists in derived type grib_mod::gribfield. Specifically, it requires gfld%ibmap, gfld%ngrdpts, gfld%idrtnum, gfld%idrtmpl, and gfld%ndpts.
It decodes information for the selected grib field and returns it in a derived type variable, gfld, of type grib_mod::gribfield. Users of this routine will need to include the line "use grib_mod" in their calling routine.
This subprogram is intended for private use by getgb2() routines only.
Derived type gribfield contains pointers to many arrays of data. Users must free this memory by calling gf_free().
| [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 subroutine ixgb2() for description of an index record.) |
| [out] | GFLD | derived type grib_mod::gribfield. |
| [out] | IRET | integer return code
|
Definition at line 39 of file getgb2r.F90.
References g2_gbytec(), gf_unpack6(), and gf_unpack7().
Referenced by getgb2().