|
NCEPLIBS-g2
3.4.8
|
This subroutines initializes a new GRIB2 message and packs GRIB2 Indicator Section and Identification Section. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | gribcreate (cgrib, lcgrib, listsec0, listsec1, ierr) |
| This subroutine initializes a new GRIB2 message and packs GRIB2 sections 0 (Indicator Section) and 1 (Identification Section). More... | |
This subroutines initializes a new GRIB2 message and packs GRIB2 Indicator Section and Identification Section.
Definition in file gribcreate.F90.
| subroutine gribcreate | ( | character(len = 1), dimension(lcgrib), intent(inout) | cgrib, |
| integer, intent(in) | lcgrib, | ||
| integer, dimension(*), intent(in) | listsec0, | ||
| integer, dimension(*), intent(in) | listsec1, | ||
| integer, intent(out) | ierr | ||
| ) |
This subroutine initializes a new GRIB2 message and packs GRIB2 sections 0 (Indicator Section) and 1 (Identification Section).
This routine is used with routines addlocal(), addgrid(), addfield(), and gribend() to create a complete GRIB2 message. Subroutine gribcreate() must be called first to initialize a new GRIB2 message. Also, a call to gribend() is required to complete GRIB2 message after all fields have been added.
| [in,out] | cgrib | Character array to contain the GRIB2 message. |
| [in] | lcgrib | Maximum Length (in bytes) of array cgrib. |
| [in] | listsec0 | Contains information needed for GRIB Indicator Section 0. Must be dimensioned >= 2.
|
| [in] | listsec1 | Contains information needed for GRIB Identification Section 1. Must be dimensioned >= 13.
|
| [out] | ierr | Error return code.
|
Definition at line 54 of file gribcreate.F90.
References g2_sbytec().
Referenced by putgb2().