You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

How can I filter GRIB data?

Step-by-step guide

You need to use the GRIB Filter icon, which is implemented as the read() function in script. The following Python example shows how to read a GRIB file and extract temperature fields on pressure levels out of it:

  1. import metview as mv
    f = mv.read(source='my_grib_file', param='t', levtype='pl')
  2. Alternatively the GRIB file can be read into a fieldset object and you can apply the filter on it:
  3. import metview as mv
    g = mv.read('my_grib_file')
    f = mv.read(data=g, param='t', levtype='pl')


There is no content with the specified labels



  • No labels