////////////////////////////////////////////////////////////////////////////////
//
// Point-Stat configuration file.
//
// For additional information, please see the MET User's Guide.
//
////////////////////////////////////////////////////////////////////////////////

//
// Output model name to be written
//
model = "GFS";

//
// Output description to be written
// May be set separately in each "obs.field" entry
//
desc = "WMO_CLIMO";

////////////////////////////////////////////////////////////////////////////////

//
// Verification grid
//
regrid = {
   to_grid    = "${CLIMO_DIR}/mslp_mean.grib";
   method     = BILIN;
   width      = 2;
   vld_thresh = 0.5;
}

////////////////////////////////////////////////////////////////////////////////

mpr_column   = [];
mpr_thresh   = [];
cat_thresh   = [];
cnt_thresh   = [ NA ];
cnt_logic    = UNION;
wind_thresh  = [ NA ];
wind_logic   = UNION;
eclv_points  = 0.05;
message_type = [ "ADPUPA" ];
sid_inc      = [];
sid_exc      = [];
obs_quality_inc = [];
obs_quality_exc = [];

//
// Forecast and observation fields to be verified
//
fcst = {

   field = [
      { name = "TMP";  level = [ "P500" ]; },
      { name = "UGRD"; level = [ "P500" ]; },
      { name = "VGRD"; level = [ "P500" ]; },
      { name = "WIND"; level = [ "P500" ]; },
      { name = "TMP";  level = [ "P850" ]; cat_thresh = [ >CDP90 ]; },
      { name = "UGRD"; level = [ "P850" ]; cat_thresh = [ >CDP90 ]; },
      { name = "VGRD"; level = [ "P850" ]; cat_thresh = [ >CDP90 ]; },
      { name = "WIND"; level = [ "P850" ]; cat_thresh = [ >CDP90 ]; }
   ];
}
obs = {

   cnt_thresh = [ NA, <CDP50, >=CDP50, ==CDP25 ];

   field = [
      { name = "TMP";  level = [ "P500" ]; cnt_thresh = [ NA ]; wind_thresh = [ NA ]; },
      { name = "UGRD"; level = [ "P500" ]; cnt_thresh = [ NA ]; wind_thresh = [ NA ]; },
      { name = "VGRD"; level = [ "P500" ]; cnt_thresh = [ NA ]; wind_thresh = [ NA ]; },
      { name = "WIND"; level = [ "P500" ]; cnt_thresh = [ NA ]; wind_thresh = [ NA ]; },
      { name = "TMP";  level = [ "P850" ]; cat_thresh = [ >CDP90 ]; },
      { name = "UGRD"; level = [ "P850" ]; cat_thresh = [ >CDP90 ]; },
      { name = "VGRD"; level = [ "P850" ]; cat_thresh = [ >CDP90 ]; },
      { name = "WIND"; level = [ "P850" ]; cat_thresh = [ >CDP90 ]; }
   ];
}

////////////////////////////////////////////////////////////////////////////////

//
// Climatology data
//
climo_mean = fcst;
climo_mean = {

   file_name = [ "${CLIMO_DIR}/t500hPa_mean.grib",
                 "${CLIMO_DIR}/t850hPa_mean.grib",
                 "${CLIMO_DIR}/u500hPa_mean.grib",
                 "${CLIMO_DIR}/u850hPa_mean.grib",
                 "${CLIMO_DIR}/v500hPa_mean.grib",
                 "${CLIMO_DIR}/v850hPa_mean.grib",
                 "${CLIMO_DIR}/ws500hPa_mean.grib",
                 "${CLIMO_DIR}/ws850hPa_mean.grib" ];

   regrid = {
      method     = NONE;
      width      = 1;
      vld_thresh = 0.5;
   }

   time_interp_method = DW_MEAN;
   day_interval       = 1;
   hour_interval      = 12;
}

climo_stdev = climo_mean;
climo_stdev = {

   file_name = [ "${CLIMO_DIR}/t850hPa_stdev.grib",
                 "${CLIMO_DIR}/u850hPa_stdev.grib",
                 "${CLIMO_DIR}/v850hPa_stdev.grib",
                 "${CLIMO_DIR}/ws850hPa_stdev.grib" ];
}

//
// May be set separately in each "obs.field" entry
//
climo_cdf = {
   cdf_bins    = 3;
   center_bins = TRUE;
   write_bins  = TRUE;
   direct_prob = FALSE;
}

////////////////////////////////////////////////////////////////////////////////

//
// Point observation time window
//
obs_window = {
   beg = -5400;
   end =  5400;
}

////////////////////////////////////////////////////////////////////////////////

//
// Verification masking regions
//
mask = {
   grid  = [];
   poly  = [ "MET_BASE/poly/CONUS.poly" ];
   sid   = [];
   llpnt = [];
}

////////////////////////////////////////////////////////////////////////////////

//
// Confidence interval settings
//
ci_alpha  = [ 0.05 ];

boot = {
   interval = PCTILE;
   rep_prop = 1.0;
   n_rep    = 1000;
   rng      = "mt19937";
   seed     = "1";
}

////////////////////////////////////////////////////////////////////////////////

//
// Interpolation methods
//
interp = {
   vld_thresh = 1.0;

   type = [
      {
         method = NEAREST;
         width  = 1;
      }
   ];
}

////////////////////////////////////////////////////////////////////////////////

//
// HiRA verification method
//
hira = {
   flag            = TRUE;
   width           = [ 2, 3, 4, 5 ];
   vld_thresh      = 1.0;
   cov_thresh      = [ ==0.25 ];
   shape           = SQUARE;
   prob_cat_thresh = [];
}

////////////////////////////////////////////////////////////////////////////////

//
// Statistical output types
//
output_flag = {
   fho    = NONE;
   ctc    = BOTH;
   cts    = NONE;
   mctc   = NONE;
   mcts   = NONE;
   cnt    = BOTH;
   sl1l2  = BOTH;
   sal1l2 = BOTH;
   vl1l2  = BOTH;
   val1l2 = BOTH;
   vcnt   = BOTH;
   pct    = BOTH;
   pstd   = BOTH;
   pjc    = NONE;
   prc    = NONE;
   ecnt   = BOTH;
   orank  = NONE;
   rps    = BOTH;
   eclv   = NONE;
   mpr    = BOTH;
   seeps  = NONE;
   seeps_mpr = NONE;
}

////////////////////////////////////////////////////////////////////////////////
// Threshold for SEEPS p1 (Probability of being dry)

seeps_p1_thresh = NA;

////////////////////////////////////////////////////////////////////////////////

duplicate_flag = NONE;
rank_corr_flag = TRUE;
tmp_dir        = "/tmp";
output_prefix  = "${OUTPUT_PREFIX}";
version        = "V11.1.0";

////////////////////////////////////////////////////////////////////////////////
