Versions Compared

Key

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

...

Excerpt
hiddentrue

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

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:

Code Block
languagepy
import metview as mv
f = mv.read(source='my_grib_file', param='t', levtype='pl')

Alternatively the GRIB file can be read into a fieldset object and you can apply the filter on it:

Code Block
import metview as mv
g = mv.read('my_grib_file')
f = mv.read(data=g, param='t', levtype='pl')


Content by Label
showLabelsfalse
max5
spaces~usa
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" metview-faqs" and label in ("grib","filter") and type = "page" and space = "UDOC"
labelskb-how-to-article

...