Jeff Whitaker
Jeff Whitaker
@logi would you mind installing a binary wheel for 2.1.2 using pip install and see if you then can read a RAP grib file?
This doesn't make sense to me - and I can't reproduce it with the sample files I have. Can you post your grib file? (if it's small enough you can...
Not trivial since the work is being done in the C library and we have no direct way of passing a file pointer to the C lib.
I suspect that different versions of the grib_api are linked, and contain different grib table info. Probably the Ubuntu system has a newer version, with a corrected grib table.
libeecodes includes grib_api.h. You need to specify the path in setup.cfg On Tue, Jun 25, 2019 at 8:23 AM Saszalez wrote: > I installed libeccodes, but the installation of pygrib...
The code assumes that distinctLatitudes and distinctLongitudes are 1D arrays, and then uses numpy.meshgrid to create 2D arrays. This is apparently a bug - those arrays are flattened 2d arrays....
OK, here's my hypothesis. The pygrib code assumes that distinctLatitudes and distinctLongitudes are the 1D arrays of lats and lons in the rotated coordinate system. ecCodes (formerly grib_api) used to...
Potential fix in pull request #100 (branch `issue99`). Please give it a try and let me know if it solves it for you.
might have to do with the grib compression which is 'lossy'
You can modify the data in the grib file, get the binary string associated with the file and write it to a new file. Example at https://jswhit.github.io/pygrib/docs/index.html