...
Excerpt |
---|
|
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 |
---|
|
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') |
Related articles
Content by Label |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | ~usa |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label = "kb-how-to-article" metview-faqs" and label in ("grib","filter") and type = "page" and space = "~usaUDOC" |
---|
labels | kb-how-to-article |
---|
|