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

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

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

//
// Output observation type to be written
//
obtype = "STAGE4";

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

//
// Verification grid
//
regrid = {
   to_grid    = FCST;
   method     = BUDGET;
   width      = 2;
   vld_thresh = 0.5;
   shape      = SQUARE;
}

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

//
// May be set separately in each "field" entry
//
censor_thresh       = [];
censor_val          = [];
mpr_column          = [];
mpr_thresh          = [];
cat_thresh          = [];
cnt_thresh          = [ NA ];
cnt_logic           = UNION;
wind_thresh         = [ NA ];
wind_logic          = UNION;
eclv_points         = 0.05;
nc_pairs_var_name   = "";
nc_pairs_var_suffix = "";
hss_ec_value        = NA;
rank_corr_flag      = FALSE;

//
// Forecast and observation fields to be verified
//
fcst = {
   field = [
      {
         name           = "PROB";
         level          = "A6";
         cat_thresh     = [ >=0.00, >=0.25, >=0.50, >=0.75, >=1.00 ];
         prob           = { name = "APCP"; thresh_lo = 1.27; }
      },
      {
         name           = "PROB";
         level          = "A6";
         cat_thresh     = [ >=0.4, >=0.5, >=0.6 ];
         prob           = { name = "APCP"; thresh_lo = 1.27; }
         prob_as_scalar = TRUE;
      }
   ];
}

obs = {
   field = [
      {
         name         = "APCP";
         level        = "A6";
         cat_thresh   = [ >1.27 ];
         desc         = "AS_PROB";
      },
      {
         name         = "APCP";
         level        = "A6";
         cat_thresh   = [ >1.27, >1.27, >1.27 ];
         desc         = "AS_SCALAR";
      }
   ];
}

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

//
// Verification masking regions
//
mask = {
   grid = [ "FULL" ];
   poly = [];
}

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

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

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

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

//
// Data smoothing methods
//
interp = {
   field      = BOTH;
   vld_thresh = 1.0;
   shape      = SQUARE;

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

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

//
// Neighborhood methods
//
nbrhd = {
   width      = [ 1, 3, 5, 7, 9, 11 ];
   cov_thresh = [ >=0.5 ];
   vld_thresh = 1.0;
   shape      = SQUARE;
}

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

//
// Fourier decomposition
//
fourier = {
   wave_1d_beg = [];
   wave_1d_end = [];
}

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

//
// Gradient statistics
// May be set separately in each "obs.field" entry
//
gradient = {
   dx = [ 1 ];
   dy = [ 1 ];
}

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

//
// Distance Map statistics
// May be set separately in each "obs.field" entry
//
distance_map = {
   baddeley_p        = 2;
   baddeley_max_dist = NA;
   fom_alpha         = 0.1;
   zhu_weight        = 0.5;
   beta_value(n)     = n * n / 2.0;
}

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

//
// Statistical output types
//
output_flag = {
   fho    = NONE;
   ctc    = STAT;
   cts    = NONE;
   mctc   = NONE;
   mcts   = NONE;
   cnt    = NONE;
   sl1l2  = NONE;
   sal1l2 = NONE;
   vl1l2  = NONE;
   val1l2 = NONE;
   vcnt   = NONE;
   pct    = STAT;
   pstd   = STAT;
   pjc    = STAT;
   prc    = STAT;
   eclv   = STAT;
   nbrctc = NONE;
   nbrcts = NONE;
   nbrcnt = STAT;
   grad   = NONE;
   dmap   = NONE;
   seeps  = NONE;
}

//
// NetCDF matched pairs output file
//
nc_pairs_flag = {
   latlon       = TRUE;
   raw          = TRUE;
   diff         = TRUE;
   climo        = TRUE;
   climo_cdp    = FALSE;
   weight       = FALSE;
   nbrhd        = TRUE;
   fourier      = FALSE;
   gradient     = FALSE;
   distance_map = FALSE;
   apply_mask   = TRUE;
}

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

seeps_p1_thresh = NA;

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

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

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