|
NCEPLIBS-g2
3.4.5
|
This subroutine unpacks Section 3 (Grid Definition Section). More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | gf_unpack3 (cgrib, lcgrib, iofst, igds, igdstmpl, mapgridlen, ideflist, idefnum, ierr) |
| This subroutine unpacks Section 3 (Grid Definition Section) starting at octet 6 of that Section. More... | |
This subroutine unpacks Section 3 (Grid Definition Section).
Definition in file gf_unpack3.f.
| subroutine gf_unpack3 | ( | character(len=1), dimension(lcgrib), intent(in) | cgrib, |
| integer, intent(in) | lcgrib, | ||
| integer, intent(inout) | iofst, | ||
| integer, dimension(5), intent(out) | igds, | ||
| integer, dimension(:), pointer | igdstmpl, | ||
| integer | mapgridlen, | ||
| integer, dimension(:), pointer | ideflist, | ||
| integer, intent(out) | idefnum, | ||
| integer, intent(out) | ierr | ||
| ) |
This subroutine unpacks Section 3 (Grid Definition Section) starting at octet 6 of that Section.
PROGRAM HISTORY LOG:
| [in] | cgrib | Character array that contains the GRIB2 message. |
| [in] | lcgrib | Length (in bytes) of GRIB message array cgrib. |
| [in,out] | iofst | Bit offset of the beginning/end(returned) of Section 3. |
| [out] | igds | Contains information read from the appropriate GRIB Grid Definition Section 3 for the field being returned. Must be dimensioned >= 5.
|
| [out] | 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. A safe dimension for this array can be obtained in advance from maxvals(2), which is returned from subroutine gribinfo. |
| [out] | mapgridlen | Number of elements in igdstmpl. i.e. number of entries in Grid Defintion Template 3.NN (NN=igds(5)). |
| [out] | ideflist | (Used if igds(3) .ne. 0) This array contains the number of grid points contained in each row (or column). (part of Section 3) A safe dimension for this array can be obtained in advance from maxvals(3), which is returned from subroutine gribinfo. |
| [out] | 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.
|
Definition at line 54 of file gf_unpack3.f.