Open DusanJovic-NOAA opened 2 years ago
Can you tell me what this code does?
I know that it relates to the ASCII table we have, called params_grib2_tbl_new.text, which contains this kind of thing:
!
!Table History Log:
!2010-01-21 V. Krishna Kumar/NCO/SIB
!2011-09-25 V. Krishna Kumar updated the parameters since
! the 2010 implemenation
!2012-01-25 J. WANG updated table 4.2-0-20
!2013-08-08 B. VUONG Added more parameters
!2015-08-26 B. VUONG Added more parameters and
! updated table 4.2-0-20
!2017-02-28 B. VUONG Added more parameters and
! new tables 4.2-3-2,3,4,and 6
!2019-07-02 B. VUONG Added more parameters
!2021-04-20 B. VUONG Added more parameters
!
!GRIB2 parameter table for all disciplines and categories
!The fields in order are grib2_discipline grib2_category
!grib2_parameter_number grib2_table_information (0 for the parameter
!from the WMO table and 1 for the parameter from the NCEP local table)
!grib2_NCEP_mnemonic (locally defined at NCEP). WMO parameters have values
!ranging from 0 to 191 and NCEP local table parameters have values from 192
!to 254 and the parameter value 255 is a missing or undefined.
!Comment cards with the ! will not be read by the program
!
!
! GRIB2 - TABLE 4.2-0-0 PARAMETERS FOR DISCIPLINE 0 CATEGORY 0
!
0 0 0 0 TMP
0 0 1 0 VTMP
0 0 2 0 POT
0 0 3 0 EPOT
What do we use this table for? Why do we process it?
Any answers would be most helpful, and will be added to the documentation for this poorly-documented code.
Some of my questions above are answered here: https://github.com/NOAA-EMC/NCEPLIBS-g2tmpl/issues/40
Others are answered in recent additions to the doxygen docs for this project.
The following test program segfaults: