Open Plantain opened 3 weeks ago
I was able to duplicate and fix the problem. If you are using x86_64 (i.e. intel or amd cpu), you can use "-import_bin file.bin" instead of "-little_endian -import_ieee file.bin". The import_bin is faster than import_ieee. Also works with any little-endian computer with 4-byte integers and ieee floats.
import_ieee seems to have started producing corrupted/invalid/nonsense gribs since 2.0.8.
Input data: repro.tgz Reproduction command: wgrib2 -append template.grb2 -little_endian -import_ieee myvar.bin -set_metadata myvar.inv -grib_out out.grb2
Any version after 2.0.8 seems to produce an invalid/wrong GRIB that is blank with occasional bands of values way higher than the data Should look like as below, as produced on 2.0.8:
diff'ing the grib_dump is interesting: