g2cinq.c(3) | Library Functions Manual | g2cinq.c(3) |
g2cinq.c - Inquiry functions.
#include 'grib2_int.h'
#include <stdarg.h>
EXTERN_MUTEX (m)
If pthreads are enabled, use externally-defined mutex for thread-safety. int
g2c_inq (int g2cid, int *num_msg)
Learn about a GRIB2 file. int g2c_inq_dim (int g2cid, int msg_num, int
prod_num, int dim_num, size_t *len, char *name, float *val)
Learn about the one of the dimensions of a GRIB2 product. int
g2c_inq_dim_info (int g2cid, int msg_num, int prod_num, int dim_num,
size_t *len, char *name)
Learn about the one of the dimensions of a GRIB2 product. int
g2c_inq_msg (int g2cid, int msg_num, unsigned char *discipline, int
*num_fields, int *num_local, short *center, short *subcenter, unsigned char
*master_version, unsigned char *local_version)
Learn about a GRIB2 message. int g2c_inq_msg_time (int g2cid, int
msg_num, unsigned char *sig_ref_time, short *year, unsigned char *month,
unsigned char *day, unsigned char *hour, unsigned char *minute, unsigned
char *second)
Learn about the date/time information in a GRIB2 message. int
g2c_inq_prod (int g2cid, int msg_num, int prod_num, int
*pds_template_len, long long int *pds_template, int *gds_template_len, long
long int *gds_template, int *drs_template_len, long long int *drs_template)
Inquire about a product.
G2C_FILE_INFO_T g2c_file [G2C_MAX_FILES+1]
Global file information.
Inquiry functions.
Author
Date
Definition in file g2cinq.c.
If pthreads are enabled, use externally-defined mutex for thread-safety.
Learn about a GRIB2 file.
Parameters
Returns
Author
Date
Definition at line 31 of file g2cinq.c.
References G2C_EBADID, g2c_file, G2C_MAX_FILES, G2C_NOERROR, MUTEX_LOCK, MUTEX_UNLOCK, and g2c_file_info::num_messages.
Learn about the one of the dimensions of a GRIB2 product. This function will return the size, name, and values along the dimension.
Parameters
Returns
Author
Date
Definition at line 372 of file g2cinq.c.
References G2C_EBADID, G2C_EINVAL, G2C_ENOMSG, G2C_ENOPRODUCT, G2C_ENOSECTION, g2c_file, G2C_MAX_FILES, G2C_MAX_NAME, G2C_NOERROR, g2c_dim_info::len, g2c_message_info::msg_num, MUTEX_LOCK, MUTEX_UNLOCK, g2c_dim_info::name, g2c_message_info::next, g2c_section_info::next, g2c_section_info::prev, g2c_message_info::sec, g2c_section_info::sec_info, g2c_section_info::sec_num, and g2c_dim_info::value.
Referenced by g2c_inq_dim_info().
Learn about the one of the dimensions of a GRIB2 product. This function will return the size and name of the dimension.
Parameters
Returns
Author
Date
Definition at line 468 of file g2cinq.c.
References g2c_inq_dim().
Learn about a GRIB2 message.
Parameters
Returns
Author
Date
Definition at line 87 of file g2cinq.c.
References g2c_message_info::center, g2c_message_info::discipline, G2C_EBADID, G2C_EINVAL, G2C_ENOMSG, g2c_file, G2C_MAX_FILES, G2C_NOERROR, g2c_message_info::local_version, g2c_message_info::master_version, g2c_message_info::msg_num, MUTEX_LOCK, MUTEX_UNLOCK, g2c_message_info::next, g2c_message_info::num_fields, g2c_message_info::num_local, and g2c_message_info::subcenter.
Learn about the date/time information in a GRIB2 message.
Parameters
Returns
Author
Date
Definition at line 170 of file g2cinq.c.
References g2c_message_info::day, G2C_EBADID, G2C_EINVAL, G2C_ENOMSG, g2c_file, G2C_MAX_FILES, G2C_NOERROR, g2c_message_info::hour, g2c_message_info::minute, g2c_message_info::month, g2c_message_info::msg_num, MUTEX_LOCK, MUTEX_UNLOCK, g2c_message_info::next, g2c_message_info::second, g2c_message_info::sig_ref_time, and g2c_message_info::year.
Inquire about a product.
Parameters
Returns
Author
Date
Definition at line 247 of file g2cinq.c.
References G2C_EBADID, G2C_EINVAL, G2C_ENOMSG, G2C_ENOPRODUCT, G2C_ENOSECTION, g2c_file, G2C_MAX_FILES, G2C_NOERROR, g2c_message_info::msg_num, MUTEX_LOCK, MUTEX_UNLOCK, g2c_message_info::next, g2c_section_info::next, g2c_section_info::prev, g2c_message_info::sec, g2c_section_info::sec_info, g2c_section_info::sec_num, g2c_section_info::template, and g2c_section_info::template_len.
Global file information.
Definition at line 10 of file g2cfile.c.
Referenced by g2c_inq(), g2c_inq_dim(), g2c_inq_msg(), g2c_inq_msg_time(), and g2c_inq_prod().
Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.
Version 2.1.0 | NCEPLIBS-g2c |