42 LOG((2,
"g2c_metadata_cmp g2cid1 %d g2cid2 %d", g2cid1, g2cid2));
79 for (sec_1 = msg1->
sec; sec_1; sec_1 = sec_1->
next)
82 if (sec_1->
sec_num == 4 && sec4_info_1->field_num == fld)
87 for (sec_2 = msg2->
sec; sec_2; sec_2 = sec_2->
next)
90 if (sec_2->
sec_num == 4 && sec4_info_2->field_num == fld)
105 for (sec3_1 = sec_1; sec3_1; sec3_1 = sec3_1->
prev)
111 for (sec3_2 = sec_2; sec3_2; sec3_2 = sec3_2->
prev)
130 for (sec5_1 = sec_1; sec5_1; sec5_1 = sec5_1->
next)
136 for (sec5_2 = sec_2; sec5_2; sec5_2 = sec5_2->
next)
G2C_FILE_INFO_T g2c_file[G2C_MAX_FILES+1]
Global file information.
int g2c_compare(int g2cid1, int g2cid2)
Compare the metadata of two open GRIB2 files.
#define G2C_MAX_FILES
Maximum number of open files.
#define G2C_ENOSECTION
Cannot find section.
#define G2C_ERROR
General error code, returned for some test errors.
#define G2C_EBADID
Bad ID.
#define G2C_NOERROR
No error.
Header file with internal function prototypes NCEPLIBS-g2c library.
struct g2c_section_info * next
Pointer to next in list.
struct g2c_section_info * sec
List of section metadata.
short subcenter
Originating subcenter.
unsigned char master_version
GRIB master tables version number.
unsigned char type
Type of processed data in this GRIB message.
unsigned short grid_def
Grid definition template number (= N) (See Table 3.1).
unsigned char minute
Minute.
unsigned int num_data_points
Number of data points.
size_t num_messages
Number of messages in the file.
unsigned short num_coord
Number of coordinate values after template.
int num_local
Number of local sections in the message.
unsigned char sig_ref_time
Significance of reference time.
unsigned char num_opt
Number of octets for optional list of numbers defining number of points.
unsigned char discipline
Discipline from section 0.
unsigned char interp_list
Interpetation of list of numbers defining number of points (See Table 3.11).
struct g2c_section_info * prev
Pointer to previous in list.
int num_fields
Number of fields in the message.
unsigned char sec_num
Section number.
unsigned int num_data_points
Number of data points where one or more values are specified in Section 7 when a bit map is present,...
void * sec_info
Pointer to struct specific for section 3, 4, 5, 6, or 7.
unsigned char status
Production Status of Processed data in the GRIB message.
G2C_MESSAGE_INFO_T * msg
Information about each message in the file.
#define LOG(e)
Ignore logging to stdout.
unsigned char second
Second.
unsigned char source_grid_def
Source of grid definition (See Table 3.0).
int template_len
Number of entries in template.
unsigned char local_version
Version number of GRIB local tables used to augment Master Tables.
unsigned char month
Month.
unsigned short data_def
Data representation template number (See Table 5.0).
long long int * template
Grid, product, or data template.
struct g2c_message_info * next
Pointer to next in list.
short center
Originating center.
unsigned short prod_def
Product definition template number (See Table 4.0).
This is the information about each open file.
This is the information about each message.
Information about Section 3 GRID DEFINITION SECTION.
Information about Section 4 PRODUCT DEFINITION SECTION.
Information about Section 5 DATA REPRESENTATION SECTION.
Information about a section 3 through 7 in a GRIB2 message.