NCEPLIBS-g2c
1.6.4
|
Search 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...
Go to the source code of this file.
Functions | |
g2int | g2_info (unsigned char *cgrib, g2int *listsec0, g2int *listsec1, g2int *numfields, g2int *numlocal) |
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... | |
Search 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.
Definition in file g2_info.c.
g2int g2_info | ( | unsigned char * | cgrib, |
g2int * | listsec0, | ||
g2int * | listsec1, | ||
g2int * | numfields, | ||
g2int * | numlocal | ||
) |
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.
cgrib | Character pointer to the GRIB2 message. |
listsec0 | pointer to an array containing information decoded from GRIB Indicator Section 0. Must be allocated with >= 3 elements.
|
listsec1 | Pointer to an array containing information read from GRIB Identification Section 1. Must be allocated with >= 13 elements.
|
numfields | The number of gridded fields found in the GRIB message. That is, the number of occurences of Sections 4 - 7. |
numlocal | The number of Local Use Sections ( Section 2 ) found in the GRIB message. |
Definition at line 67 of file g2_info.c.
References gbit().