|
NCEPLIBS-g2
3.4.8
|
Find the number of gridded fields and Local Use Sections in 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) |
| Find the number of gridded fields and Local Use Sections in a GRIB2 message. More... | |
Find the number of gridded fields and Local Use Sections in a GRIB2 message.
Definition in file gb_info.F90.
| 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 | ||
| ) |
Find the number of gridded fields and Local Use Sections in a GRIB2 message.
Also various checks are performed to see if the message is a valid GRIB2 message.
This function is similar to gribinfo(), but returns less information.
| [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.
|
Definition at line 53 of file gb_info.F90.
References g2_gbytec().