...
Now visualise the result of the Observation Filter and drop the supplied icons symbol_plotting and coast_dark into the plot window.
Scriptify it
Filter, write and plot
Create a new Python Script icon, edit it and drop the Observation Filter (and rename the variable to t2m
), coast_dark and symbol_plotting icons into the editor. Add the following commands to the end of the script and run it:
Code Block | ||
---|---|---|
| ||
mv.plot(coast_dark, t2m, symbol_plotting)
mv.write('obs_t2m.gpt', t2m) |
Extract values and compute statistics
Create a copy of the script, remove the plotting commands and add the following lines. The first two return numpy arrays, the third line returns a pandas dataframe.
Code Block | ||
---|---|---|
| ||
print(mv.latitudes(t2m))
print(mv.values(t2m))
df = t2m.to_dataframe()
print(df)
print(df.describe()) |