|
NCEPLIBS-g2
3.4.5
|
This subroutine packs up a Grid Definition Section (Section 3) and adds it to a GRIB2 message. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | addgrid (cgrib, lcgrib, igds, igdstmpl, igdstmplen, ideflist, idefnum, ierr) |
| This routine is used with routines gribcreate(), addlocal(), addfield(), and gribend() to create a complete GRIB2 message. More... | |
This subroutine packs up a Grid Definition Section (Section 3) and adds it to a GRIB2 message.
Definition in file addgrid.f.
| subroutine addgrid | ( | character(len=1), dimension(lcgrib), intent(inout) | cgrib, |
| integer, intent(in) | lcgrib, | ||
| integer, dimension(*), intent(in) | igds, | ||
| integer, dimension(*), intent(in) | igdstmpl, | ||
| integer, intent(in) | igdstmplen, | ||
| integer, dimension(idefnum), intent(in) | ideflist, | ||
| integer, intent(in) | idefnum, | ||
| integer, intent(out) | ierr | ||
| ) |
This routine is used with routines gribcreate(), addlocal(), addfield(), and gribend() to create a complete GRIB2 message.
Subroutine gribcreate must be called first to initialize a new GRIB2 message.
| [in,out] | cgrib | Character array to contain the GRIB2 message |
| [in] | lcgrib | Maximum length (bytes) of array cgrib. |
| [in] | igds | Contains information needed for GRIB Grid Definition Section 3. Must be dimensioned >= 5.
|
| [in] | igdstmpl | Contains the data values for the specified Grid Definition Template ( NN=igds(5) ). Each element of this integer array contains an entry (in the order specified) of Grid Defintion Template 3.NN |
| [in] | igdstmplen | Max dimension of igdstmpl() |
| [in] | ideflist | (Used if igds(3) .ne. 0) This array contains the number of grid points contained in each row ( or column ) |
| [in] | idefnum | (Used if igds(3) .ne. 0) The number of entries in array ideflist. i.e. number of rows ( or columns ) for which optional grid points are defined. |
| [out] | ierr | Error return code.
|