go-grib2 icon indicating copy to clipboard operation
go-grib2 copied to clipboard

read the .grib2 data failed

Open jayhuang75 opened this issue 7 years ago • 6 comments

Hello,

I try to open test.grib2 file and get this error message: Failed to unpack data: packing type [40] not supported

Please advise.

Thank you.

jayhuang75 avatar Aug 28 '18 02:08 jayhuang75

Hi,

go-grib2 does not support all packing type. I recommend you try another my lib: https://github.com/amsokol/go-eccodes

amsokol avatar Aug 28 '18 05:08 amsokol

@amsokol Thank you so much much appreciated.

jayhuang75 avatar Aug 28 '18 20:08 jayhuang75

Hello @amsokol, I just test this go-eccodes you mentioned. however when i run i get to this issues: ../github.com/amsokol/go-eccodes/io/file.go:8:2: invalid input file name "+linux_amd64.go"

Anything i miss here? thank you.

jayhuang75 avatar Aug 28 '18 20:08 jayhuang75

Hi,

I am out of office now. I come back at end of this week and try to help. Sorry.

amsokol avatar Sep 03 '18 18:09 amsokol

Hi I have the same issue. @jayhuang75 how did u resolve this. I got the Failed to unpack data: packing type [41] not supported

gocluster avatar Oct 30 '18 19:10 gocluster

@gocluster @jayhuang75 you should rename the file +linux_amd64.go to c_linux_amd64.go. I did it in my fork

mtfelian avatar Jan 14 '19 14:01 mtfelian