|
NCEPLIBS-g2
3.4.7
|
This subroutine reads and unpacks a local use section from a GRIB2 message. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | getgb2l (LUGB, CINDEX, GFLD, IRET) |
| This subroutine reads and unpacks a local use section from a GRIB2 message. More... | |
This subroutine reads and unpacks a local use section from a GRIB2 message.
Definition in file getgb2l.F90.
| subroutine getgb2l | ( | integer, intent(in) | LUGB, |
| character(len = 1), dimension(*), intent(in) | CINDEX, | ||
| type(gribfield) | GFLD, | ||
| integer, intent(out) | IRET | ||
| ) |
This subroutine reads and unpacks a local use section from a GRIB2 message.
This subroutine decodes information for the selected grib field and returns it in a derived type variable, gfld. gfld is 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.
Note that derived type gribfield contains pointers to many arrays of data. The memory for these arrays is allocated when the values in the arrays are set, to help minimize problems with array overloading. Because of this users should free this memory, when it is no longer needed, by an explicit call to subroutine gf_free().
| [in] | LUGB | integer unit of the unblocked grib data file. |
| [in] | CINDEX | index record of the grib field (see docblock of subroutine ixgb2 for description of an index record.) |
| [out] | GFLD | derived type gribfield grib_mod::gribfield. |
| [out] | IRET | integer return code
|
Definition at line 36 of file getgb2l.F90.
References g2_gbytec(), and gf_unpack2().
Referenced by getgb2().