nilsmagnus / grib

Golang GRIB2 parser
Other
57 stars 19 forks source link

Template number not supported: 41 error #9

Open gocluster opened 6 years ago

gocluster commented 6 years ago

I downloaded the gribb file from weather.gov and I get this error when Input parameters : {"operation":"parse","discipline":-1,"dataExport":true,"category":-1,"filePath":"latest.grib2","reduceFilePath":"reduced.grib2","exportType":3,"maximumNumberOfMessages":2147483647,"geoFilter":{"minLat":0,"maxLat":36000000,"minLong":-9000000,"maxLong":9000000},"surfaceFilter":{"type":0,"scale":0,"value":0}} Error when parsing a message, Template number not supported: 41 [ ]

nilsmagnus commented 5 years ago

@gocluster , could you send me a link to a file where this is happening so that I can debug and fix this?

gocluster commented 5 years ago

Thank you. MRMS_PrecipFlag.latest.grib2.gz And this is where I got the data from http://mrms.ncep.noaa.gov/data/2D/

landru29 commented 5 years ago

http://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_temp5-41.shtml It seems that the data is encoded as a PNG. So we need to, first decode the PNG, and then treat as template 5.0 (http://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc/grib2_temp7-41.shtml)

@gocluster what kind of data should we get from this file?