EXTERN_MUTEX(m)
If pthreads are enabled, use externally-defined mutex for thread-safety.
intg2c_get_prod(intg2cid,intmsg_num,intprod_num,int*num_data_points,float*data)
Read the data for a product.
Parametersg2cid File ID.
msg_num Message number in file (first message in file is message 0).
prod_num Product number in message (first product in message is product 0).
num_data_points Pointer that gets the number of data points in the product. Ignored if NULL.
data Pointer that gets the data. Ignored if NULL.
Returns
• G2C_NOERROR No error.
Author
Ed Hartnett
Date
Sep 28, 2022
Definition at line 32 of file g2cprod.c.
References g2c_message_info::bytes_to_msg, g2c_section_info::bytes_to_sec, g2c_section5_info::data_def,
g2c_file_info::f, G2C_EBADID, G2C_EFILE, G2C_EINVAL, G2C_ENOMEM, G2C_ENOMSG, G2C_ENOPRODUCT,
G2C_ENOSECTION, G2C_ERROR, g2c_file, G2C_MAX_FILES, G2C_NOERROR, g2c_unpack7(),
g2c_section3_info::grid_def, g2c_section_info::msg, g2c_message_info::msg_num, MUTEX_LOCK, MUTEX_UNLOCK,
g2c_message_info::next, g2c_section_info::next, g2c_section5_info::num_data_points,
g2c_section_info::prev, g2c_message_info::sec, g2c_section_info::sec_info, g2c_section_info::sec_len,
g2c_section_info::sec_num, g2c_section_info::template, and g2c_section_info::template_len.
Referenced by g2c_degrib2().