cfgrib icon indicating copy to clipboard operation
cfgrib copied to clipboard

Problem with non standard param numbers

Open abakleriche opened this issue 4 years ago • 2 comments

When a parameter has a non-standard number (>127), cfgrib gives the name "unknown" and puts paramId to 0. Therefore, if a grib file contains 2 messages with 2 non-standard numbers, only one appears in the DataSet. The attached grib file illustrates the problem; it contains 2 messages with param numbers equal to 140 and 141. Most softwares (IDV, Panoply, ...) name the parameters with Productor ID, Table ID, and Param ID (something like unknown_85_0_1_140 and unknown_85_0_1_141 for the attached example).

non_std_numbers.zip

abakleriche avatar Jul 16 '21 12:07 abakleriche

You could use the GRIB edition 1 key "indicatorOfParameter" which is different for these 2 GRIB messages (Instead of "paramId")

shahramn avatar Jul 16 '21 12:07 shahramn

Hi, Thank you for your reply. But it seems that indicatorOfParameter is not an attribute of the DataArray provided by cfgrib. Furthermore, even if it was, there are 2 messages in my sample GRIB file (both with non-standard numbers) and only one DataArray is generated by cfgrib.

abakleriche avatar Jul 16 '21 14:07 abakleriche