Jeff Whitaker

Results 495 comments of Jeff Whitaker

If it works, each string should start with 'GRIB' and end with '7777'.

Note that you'll have to add the 7777 back to each string, since the split will remove it.

I could not get the string split method to work - turns out grib messages sometimes have '7777' in the body of the message and not just at the end....

Here's a version that works for both GRIB1 and GRIB2: ``` python import pygrib, sys, struct filename = sys.argv[1] f = open(filename,'rb') msgs = [] while 1: # find next...

those template files are part of the eccodes library - they exist in /usr/local/share/eccodes/definitions/grib2 (if eccodes is installed in /usr/local). If you can create the correct template file (based on...

I added a `template.3.32769.def` file containing this ``` # (C) Copyright 2005- ECMWF. # TEMPLATE 3.32769, Rotated Latitude/longitude (Arakawa Non-E Staggered) include "grib2/template.3.shape_of_the_earth.def"; include "grib2/template.3.latlon.def"; ``` and added this line...

If you don't have permission to add those files, you can copy the directory somewhere can write to, add the files there and then use `ECCODES_DEFINITION_PATH` to tell eccodes where...

Sent an email to [email protected] about adding support for this grid in [eccodes](https://github.com/ecmwf/eccodes). Will post here if I receive a reply. Note that pull request #35 is no longer helpful...

version 2.1.2 (PR #169) will have this workaround included (if you install a binary wheel with pip)