|
NCEPLIBS-g2
3.4.5
|
This subroutine searches the number of gridded fields and the number of Local Use Sections through a GRIB2 message. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | gb_info (cgrib, lcgrib, listsec0, listsec1, numfields, numlocal, maxlocal, ierr) |
| This subroutine searches through a GRIB2 message and returns the number of gridded fields found in the message and the number (and maximum size) of Local Use Sections. More... | |
This subroutine searches the number of gridded fields and the number of Local Use Sections through a GRIB2 message.
Definition in file gb_info.f.
| subroutine gb_info | ( | character(len=1), dimension(lcgrib), intent(in) | cgrib, |
| integer, intent(in) | lcgrib, | ||
| integer, dimension(3), intent(out) | listsec0, | ||
| integer, dimension(13), intent(out) | listsec1, | ||
| integer, intent(out) | numfields, | ||
| integer, intent(out) | numlocal, | ||
| integer, intent(out) | maxlocal, | ||
| integer, intent(out) | ierr | ||
| ) |
This subroutine searches through a GRIB2 message and returns the number of gridded fields found in the message and the number (and maximum size) of Local Use Sections.
Also various checks are performed to see if the message is a valid GRIB2 message.
| [in] | cgrib | Character array that contains the GRIB2 message. |
| [in] | lcgrib | Length (in bytes) of GRIB message in array cgrib. |
| [out] | listsec0 | Contains information decoded from GRIB Indicator Section 0. Must be dimensioned >= 2.
|
| [out] | listsec1 | Contains information read from GRIB Identification Section 1. Must be dimensioned >= 13.
|
| [out] | numfields | The number of gridded fieldse found in the GRIB message. |
| [out] | numlocal | The number of Local Use Sections (Section 2) found in the GRIB message. |
| [out] | maxlocal | The size of the largest Local Use Section (Section 2). Can be used to ensure that the return array passed to subroutine getlocal is dimensioned large enough. |
| [out] | ierr | Error return code.
|