MET Online Tutorial for METv8.0 | MODE > Configure

The behavior of MODE is controlled by the contents of the configuration file passed to it on the command line. The default MODE configuration file may be found in the met-8.0/share/met/config/MODEConfig_default file. The configurations used by the test scripts may be found in the $MET_BASE/config/MODEConfig* files. Prior to modifying the configuration file, users are advised to make a copy of the default:

cp $MET_BASE/config/MODEConfig_default $MET_TUTORIAL_DATA/config/MODEConfig_tutorial

The configuration items for MODE are used to specify how the object-based verification approach is to be performed. Whereas in Point-Stat and Grid-Stat you may only compare the same type of forecast and observation fields, in MODE you may compare any two fields. When necessary, the items in the configuration file are specified separately for the forecast and observation fields. In most cases though, users will be comparing the same forecast and observation fields. The configurable items include specifications for the following:

  • The verification domain.
  • The forecast and observation fields and vertical levels or accumulation intervals to be compared.
  • Options to censor a portion of or threshold the raw fields.
  • The forecast and observation object definition parameters.
  • Options to filter out objects that don't meet a size or intensity criteria.
  • Flags to control the logic for matching/merging.
  • Weights to be applied for the fuzzy engine matching/merging algorithm.
  • Interest functions to be used for the fuzzy engine matching/merging algorithm.
  • Total interest threshold for matching/merging.
  • Various plotting options.

While the MODE configuration file contains many options, beginning users will typically only need to modify a few of them. You may find a complete description of the configurable items in the MET Users Guide or in the $MET_BASE/config/README file. Please take some time to review them.

For this tutorial, we'll configure MODE to verify the same 12-hour accumulated precipitation output of PCP-Combine that we used for Grid-Stat. Whereas Grid-Stat and Point-Stat may be used to compare multiple fields in one run, MODE compares a single forecast field to a single observation field.

Open up the $MET_TUTORIAL_DATA/config/MODEConfig_tutorial file for editing with the text editor of your choice and edit it as follows:

  • Set grid_res = 40;
    To set the nominal grid spacing to 40km for this grid. The grid_res parameter is used further down in the config file in defining interest functions.
  • In the fcst dictionary, set
       field = {
           name  = "APCP_12";
           level = "(*,*)";
         };

    To select the forecast field of 12-hour rainfall total accumulation from the input NetCDF file.

  • In the fcst dictionary, set conv_radius = 5;
    To specify a convolution smoothing radius of 5 grid units. This parameters may be set explicitly, as we're doing now, or relative to another value, like the grid_res parameter which was set above.
  • In the fcst dictionary, set conv_thresh = >=5.0;
    To threshold the convolved field and define objects.
  • In the fcst dictionary, set merge_flag = NONE;
    To disable the additional forecast and observation merging methods.
  • Set obs = fcst;
    To use the settings from the fcst dictionary above.
  • Set match_flag = MERGE_BOTH;
    To use the one-step matching/merging method.

Save and close this file.