|
NCEPLIBS-g2
3.4.7
|
Packs a single field into a GRIB2 message and writes out that message to the file. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | putgb2 (lugb, gfld, iret) |
| This subroutine packs a single field into a grib2 message and writes out that message to the file associated with unit lugb. More... | |
Packs a single field into a GRIB2 message and writes out that message to the file.
Definition in file putgb2.F90.
| subroutine putgb2 | ( | integer, intent(in) | lugb, |
| type(gribfield), intent(in) | gfld, | ||
| integer, intent(out) | iret | ||
| ) |
This subroutine packs a single field into a grib2 message and writes out that message to the file associated with unit lugb.
Note that file/unit lugb should be opened with a call to subroutine baopen() or baopenw() before this routine is called.
The information to be packed into the grib field is stored in a derived type variable, gfld. gfld is of type gribfield, which is defined in module grib_mod, so users of this routine will need to include the line "use grib_mod" in their calling routine. Each component of the gribfield type is described in the input argument list section below.
| [in] | lugb | integer unit of the unblocked grib data file. File must be opened with baopen() or baopenw() before calling this routine. |
| [in] | gfld | derived type grib_mod::gribfield. |
| [out] | iret | integer return code
|
Definition at line 40 of file putgb2.F90.
References addfield(), addgrid(), addlocal(), gribcreate(), and gribend().