Version 4 (modified by pesei, 2 years ago) (diff)

Py3 version


Obtaining informtion about a GRIB file

You can get basic information about the content of a GRIB file from the command line using the grib/eccodes utilities, for example by applying grib_ls. You may also use the grib library called from code in Fortran, Python, or whatever you prefer.

The attached python script will give an overview of the the content and provide a compact information about the extent of the grid, with an optional plot.

Usage: ./ <gribfile> [map]

The map will only be shown if the map keyword is present.

v3 is the Python3 version.

Usage: ./ <gribfile> [map]

It requires python3-grib and python3-mpltoolkits.basemap (Debian packages) or equivalent packages of your OS / Python installation, together with their dependencies.

Attachments (2)

Download all attachments as: .zip

hosted by ZAMG