Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When opening any BUFR or GRIB files please ensure this happens in binary mode. For example, to open a GRIB file for reading:




Code Block
languagepy
f = open(

...

'myfields.grib', 'rb')




And for writing:

Code Block
languagepy
f = open("'myfields.grib', 'rbwb')



This change in your programs will also work in Python 2, so you can keep the same code regardless of the Python version used. All the examples on the documentation have been updated to reflect this change.

...