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

//
// Filter input track data lines.
//

//
// Model
//
model = [];

//
// Storm identifier
//
storm_id = "";

//
// Basin
//
basin = "";

//
// Cyclone number
//
cyclone = "";

//
// Model initialization time
//
init_inc = "";

//
// Subset by the valid time
//
valid_beg = "";
valid_end = "";
valid_inc = [];
valid_exc = [];

//
// Subset by the valid hour and lead time.
// By default, compute diagnostics every 6 hours out to 126 hours.
//
valid_hour = [];
lead       = [   "0",   "6",  "12",  "18",  "24",
                "30",  "36",  "42",  "48",  "54",
                "60",  "66",  "72",  "78",  "84",
                "90",  "96", "102", "108", "114",
               "120", "126" ];

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

//
// Domain-specific cylindrical coordinate transformation
//
domain_info = [
   {
      domain         = "parent";
      n_range        = 150;
      n_azimuth      = 8;
      delta_range_km = 10.0;
      diag_script    = [ "MET_BASE/python/tc_diag/compute_tc_diag.py MET_BASE/python/tc_diag/config/post_resample.yml MET_BASE/tc_data/v2023-04-07_gdland_table.dat" ];
      override_diags = [];
   },
   {
      domain         = "nest";
      n_range        = 150;
      n_azimuth      = 8;
      delta_range_km = 2.0;
      diag_script    = [ "MET_BASE/python/tc_diag/compute_tc_diag.py MET_BASE/python/tc_diag/config/post_resample_nest.yml MET_BASE/tc_data/v2023-04-07_gdland_table.dat" ];
      override_diags = [ "RMW", "SST" ]; 
   }
];

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

//
// Cylindrical coordinate transformation regridding options
// May be set separately in each data "field" array entry
//
regrid = {
   method     = BILIN;
   width      = 2;
   vld_thresh = 0.5;
   shape      = SQUARE;
}

//
// Data fields
// censor_thresh, censor_val, and convert(x) may be set separately
// in each data "field" array entry
//
data = {

   // If empty, the field is processed for all domains
   domain = [];

   // Pressure levels to be used, unless overridden below
   level = [ "P1000", "P925", "P850", "P700", "P500",
             "P400", "P300", "P250", "P200", "P150",
             "P100" ];

   field = [
      { name = "TMP";                  },
      { name = "UGRD";                 },
      { name = "VGRD";                 },
      { name = "RH";                   },
      { name = "HGT";                  },
      { name = "PRMSL"; level = "Z0";  },
      { name = "PWAT";  level = "L0";  },
      { name = "TMP";   level = "Z0";  },
      { name = "TMP";   level = "Z2";  },
      { name = "RH";    level = "Z2";  },
      { name = "UGRD";  level = "Z10"; },
      { name = "VGRD";  level = "Z10"; }
   ];
}

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

//
// Vortex removal flag
//
vortex_removal = FALSE;

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

//
// Flag to control input files
//
one_time_per_file_flag = TRUE;

//
// Flags to control output files
//
nc_cyl_grid_flag = TRUE; // ends with "_cyl_grid_{domain}.nc"
nc_diag_flag     = TRUE; // ends with "_diag.nc"
cira_diag_flag   = TRUE; // ends with "_diag.dat"

//
// Output base file naming convention
//
output_base_format = "s{storm_id}_{technique}_doper_{init_ymdh}";

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

tmp_dir = "/tmp";
version = "V12.2.0";

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