intg2c_param_abbrev(intg2disc,intg2cat,intg2num,char*abbrev)
Get NOAA abbreviation for a GRIB2 parameter.
Parametersg2disc The GRIB2 discipline number.
g2cat The GRIB2 category number.
g2num The GRIB2 parameter number.
abbrev Pointer that gets the abbreviation. Ignored if NULL.
Returns
• G2C_NOERROR No error.
• G2C_EFILE Error reading CSV file.
• G2C_ENOPARAM Parameter not found.
Author
Ed Hartnett
Date
9/19/22
Definition at line 1091 of file g2cparams.c.
References G2C_MAX_NOAA_ABBREV_LEN, G2C_MAX_NOAA_PARAMS, G2C_NOERROR, LOG, and param.
Referenced by g2c_degrib2(), and g2c_log_section().
intg2c_param_all(intparam_idx,int*g1num,int*g1ver,int*g2disc,int*g2cat,int*g2num,char*abbrev)
Return all the information about a parameter.
Parametersparam_idx Parameter index between 0 and G2C_MAX_NOAA_PARAMS.
g1num Pointer that gets the GRIB1 parameter. Ignored if NULL.
g1ver Pointer that gets the GRIB1 parameter table version number. Ignored if NULL.
g2disc Pointer that gets the GRIB2 discipline number. Ignored if NULL.
g2cat Pointer that gets the GRIB2 category number. Ignored if NULL.
g2num Pointer that gets the GRIB2 parameter number. Ignored if NULL.
abbrev Pointer that gets the abbreviation.
Returns
• G2C_NOERROR No error.
• G2C_EINVAL Invalid input.
• G2C_EFILE Error reading CSV file.
• G2C_ENOPARAM Parameter not found.
Author
Ed Hartnett
Date
9/19/22
Definition at line 1185 of file g2cparams.c.
References g2c_param::g1num, g2c_param::g1ver, G2C_EINVAL, G2C_MAX_NOAA_ABBREV_LEN, G2C_MAX_NOAA_PARAMS,
G2C_NOERROR, g2c_param::g2cat, g2c_param::g2disc, g2c_param::g2num, and param.
intg2c_param_g1tog2(intg1num,intg1ver,int*g2disc,int*g2cat,int*g2num)
Translate GRIB1 parameter to GRIB2 parameter.
Parametersg1num The GRIB1 parameter.
g1ver The GRIB1 parameter table version number.
g2disc Pointer that gets the GRIB2 discipline number. Ignored if NULL.
g2cat Pointer that gets the GRIB2 category number. Ignored if NULL.
g2num Pointer that gets the GRIB2 parameter number. Ignored if NULL.
Returns
• G2C_NOERROR No error.
• G2C_EFILE Error reading CSV file.
• G2C_ENOPARAM Parameter not found.
Author
Ed Hartnett
Date
9/19/22
Definition at line 1051 of file g2cparams.c.
References G2C_ENOPARAM, G2C_MAX_NOAA_PARAMS, G2C_NOERROR, g2c_param::g2cat, g2c_param::g2disc,
g2c_param::g2num, and param.
intg2c_param_g2tog1(intg2disc,intg2cat,intg2num,int*g1num,int*g1ver)
Translate GRIB2 parameter to GRIB1 parameter.
Parametersg2disc The GRIB2 discipline number.
g2cat The GRIB2 category number.
g2num The GRIB2 parameter number.
g1num Pointer that gets the GRIB1 parameter. Ignored if NULL.
g1ver Pointer that gets the GRIB1 parameter table version number. Ignored if NULL.
Returns
• G2C_NOERROR No error.
• G2C_EFILE Error reading CSV file.
• G2C_ENOPARAM Parameter not found.
Author
Ed Hartnett
Date
9/19/22
Definition at line 1136 of file g2cparams.c.
References g2c_param::g1num, g2c_param::g1ver, G2C_ENOPARAM, G2C_MAX_NOAA_PARAMS, G2C_NOERROR, LOG, and
param.