logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

g2cprod.c - Product functions for the g2c library.

Author

       Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.

NCEPLIBS-g2c                                      Version 2.1.0                                     g2cprod.c(3)

Detailed Description

       Product functions for the g2c library.

       Author
           Ed Hartnett

       Date
           Oct 1, 2022

       Definition in file g2cprod.c.

Function Documentation

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.

       ReturnsG2C_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().

Name

       g2cprod.c - Product functions for the g2c library.

Synopsis

       #include 'grib2_int.h'

   FunctionsEXTERN_MUTEX (m)
           If pthreads are enabled, use externally-defined mutex for thread-safety.
       int g2c_get_prod (int g2cid, int msg_num, int prod_num, int *num_data_points, float *data)
           Read the data for a product.

   VariablesG2C_FILE_INFO_Tg2c_file [G2C_MAX_FILES+1]
           Global file information.

Variable Documentation

G2C_FILE_INFO_Tg2c_file[G2C_MAX_FILES+1][extern]
       Global file information.

       Definition at line 10 of file g2cfile.c.

       Referenced by g2c_get_prod().

See Also