Versions Compared

Key

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

You have a URL which contains GRIB/BUFR message(s) and you want to read them directly from the web without accessing the first saving to disk.

Step-by-step guide

Let's say you have a stream of in-memory bytes rather than a file which contains one or more GRIB or BUFR messages. You can of course save those bytes to a file and decode as usual but what if you have a slow filesystem, your disk is full or you just want to avoid the disk access overhead?
The following python script shows you how you can decode those messages:

...