dtcenter / MET

Model Evaluation Tools
https://dtcenter.org/community-code/model-evaluation-tools-met
Apache License 2.0
78 stars 24 forks source link

Review GRIB table logic and make it consistent for GRIB1 and GRIB2. #800

Open dwfncar opened 7 years ago

dwfncar commented 7 years ago

In met-6.0, the VarInfoGrib2::set_dict() function executes a table lookup using the name and level information. This usually results in multiple GRIB2 table matches being found which results in a warning. In a patch for met-6.0 we changed those warnings to debug(3) messages. However, in 6.1 we need to make the GRIB2 logic consistent with that of GRIB1. Do not execute a table lookup in set_dict(). Instead, do it when we're actually parsing the GRIB records looking for data. Use the indexes of the current record to do the table lookup. [MET-800] created by johnhg

dwfncar commented 7 years ago

AOP2017 VX1 NCAR by jensen