METplus Practical Session Guide (Feb 2019) | Session 1: METplus Setup/Grid-to-Grid > METplus Use Case: Grid to Grid Anomaly

The Grid to Grid Anomaly use case utilizes the MET grid_stat tool.

Optional: Refer to section 4.1 and 7.3 of the MET Users Guide for a description of the MET tools used in this use case.
Optional: Refer to section 4.4 (A-Z Config Glossary) of the METplus 2.0.4 Users Guide for a reference to METplus variables used in this use case.

Setup

Edit Custom Configuration File

Define a unique directory under output that you will use for this use case.

Edit ${HOME}/METplus/parm/mycustom.conf

Change OUTPUT_BASE to contain a subdirectory specific to the Grid to Grid use case.

[dir]
... other entries ...
OUTPUT_BASE = {ENV[HOME]}/metplus_tutorial/output/grid_to_grid

Using your custom configuration file that you created in the METplus: CUSTOM Configuration File Settings section and the Grid to Grid use case configuration files that are distributed with METplus, you should be able to run the use case using the sample input data set without any other changes.

Review Use Case Configuration File: anom.conf

Open the file and look at all of the configuration variables that are defined.

less $HOME/METplus/parm/use_cases/grid_to_grid/examples/anom.conf

Note that variables in anom.conf reference other config variables that have been defined in your mycustom.conf configuration file. For example:

FCST_GRID_STAT_INPUT_DIR = {INPUT_BASE}/grid_to_grid/gfs/fcst

This references INPUT_BASE which is set in your custom config file. METplus config variables can reference other config variables even if they are defined in a config file that is read afterwards.

Run METplus

Run the following command:

master_metplus.py -c use_cases/grid_to_grid/examples/anom.conf -c mycustom.conf

METplus is finished running when control returns to your terminal console.

Review the Output Files

You should have output files in the following directories:

$HOME/metplus_tutorial/output/grid_to_grid/uswrp/met_out/GFS/anom/201706130000/grid_stat

  • grid_stat_GFS_vs_ANLYS_240000L_20170613_000000V.stat
  • grid_stat_GFS_vs_ANLYS_480000L_20170613_000000V.stat
$HOME/metplus_tutorial/output/grid_to_grid/uswrp/met_out/GFS/anom/201706130600/grid_stat

  • grid_stat_GFS_vs_ANLYS_240000L_20170613_060000V.stat
  • grid_stat_GFS_vs_ANLYS_480000L_20170613_060000V.stat

Take a look at some of the files to see what was generated.

less $HOME/metplus_tutorial/output/grid_to_grid/uswrp/met_out/GFS/anom/201706130000/grid_stat/grid_stat_GFS_vs_ANLYS_240000L_20170613_000000V.stat

Review the Log Files

Log files for this run are found in $HOME/metplus_tutorial/output/grid_to_grid/logs. The filename contains a timestamp of the current day.

less $HOME/metplus_tutorial/output/grid_to_grid/logs/master_metplus.log.`date +%Y%m%d`

NOTE: If you ran METplus on a different day than today, the log file will correspond to the day you ran. Remove the date command and replace it with the date you ran if that is the case.

Review the Final Configuration File

The final configuration file is $HOME/metplus_tutorial/output/grid_to_grid/metplus_final.conf. This contains all of the configuration variables used in the run.

less $HOME/metplus_tutorial/output/grid_to_grid/metplus_final.conf