|
NCEPLIBS-g2
3.4.8
|
Pack up a Grid Definition Section (Section 3) and add 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) |
| Add a Grid Definition Section (Section 3) to a GRIB2 message. More... | |
Pack up a Grid Definition Section (Section 3) and add it to a GRIB2 message.
Definition in file addgrid.F90.
| 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 | ||
| ) |
Add a Grid Definition Section (Section 3) to a GRIB2 message.
This routine is used with routines gribcreate(), addlocal(), addfield(), and gribend() to create a complete 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 Grid Definition Template specified by igds(5). This should have the length of mapgridlen of the selected grid template. |
| [in] | igdstmplen | Max dimension of igdstmpl. This must be at least as large as the mapgridlen of the chosen template. |
| [in] | ideflist | (Used if igds(3) .ne. 0). This array contains the number of grid points contained in each row (or column). |
| [in] | idefnum | The number of entries in array ideflist. This is the number of rows (or columns) for which optional grid points are defined. |
| [out] | ierr | Error return code.
|
Definition at line 49 of file addgrid.F90.
References gridtemplates::extgridtemplate(), g2_gbytec(), g2_sbytec(), g2_sbytesc(), and gridtemplates::getgridtemplate().
Referenced by putgb2().