...
| Method | Example |
|---|---|
| Named arguments | a = mv.retrieve(type = 'fc', date = -5) |
| Dictionary |
|
| Combination |
|
...
Metview's Python interface also provides a more object-oriented way of using the wrapper classes such as Fieldset. The following two snippets of code are equivalent:
| Function | Object method |
|---|---|
# find the locations where t is > 310K t fs = mv.retrieve(param = 't', grid = [1,1]) find( fshot, 273.15)1) | # find the locations where t is > 310K t fs = mv.retrieve(param = 't', grid = [1,1]) hot.find( 273.151) |