Output

Output cindyhg Thu, 04/25/2019 - 13:15

Display the output PostScript file, which was generated on the previous page using Plot-Data-Plane, by running the following command:

gv $MET_TUTORIAL_DATA/output/python/crain.ps

Close this file.

On the previous page, Grid-Stat was run. It produced an output NetCDF file containing difference fields. Now dump the header using the ncdump utility (if available on your machine):

ncdump -h $MET_TUTORIAL_DATA/output/python/grid_stat_python_120000L_20050807_120000V_pairs.nc

Users can view the NetCDF header to see how the variable names are defined.

Use the ncview utility (if avaliable on your machine) to view the NetCDF output of Grid-Stat:

ncview $MET_TUTORIAL_DATA/output/python/grid_stat_python_120000L_20050807_120000V_pairs.nc &

Click through the variable names in the ncview window to see plots of the forecast, observation, and difference fields for each masking region. Note that in this example the FCST_FCST_Surface_FULL field represents the text "FCST" as opposed to actual forecast values, the OBS_OBS_Surface_FULL field represents the text "OBS" as opposed to actual observation values, and the DIFF_FCST_Surface_OBS_Surface_FULL field represents where the differences lie between the text "FCST" and "OBS".

To see other examples of using Python to pass data (ASCII, NetCDF, and Binary) to MET's plot_data_plane utility please see the "Python Scripts" section on our Sample MET Analysis Scripts page.