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

//
// The parameters listed below are used to summarize the MADIS data read in
//

//
// Mapping from GRIB code to the variable name and units.
// Each key is a GRIB code, and the corresponding value is a pair:
// the first element is the variable name, and the second is the unit
//
grib_var_map = [
   { key = "1"  ;   val =  "PRES,Pa"      ; },  // Station Pressure
   { key = "2"  ;   val = "PRMSL,Pa"      ; },  // Sea Level Pressure
   { key = "7"  ;   val =   "HGT,gpm"     ; },  // Height
   { key = "11" ;   val =   "TMP,K"       ; },  // Temperature
   { key = "15" ;   val =  "TMAX,K"       ; },  // Maximum Temperature
   { key = "16" ;   val =  "TMIN,K"       ; },  // Minimum Temperature
   { key = "17" ;   val =   "DPT,K"       ; },  // Dewpoint
   { key = "20" ;   val = "VISIB,W/m^2"   ; },  // Visibility
   { key = "31" ;   val =  "WDIR,deg"     ; },  // Wind Direction
   { key = "32" ;   val =  "WIND,m/s"     ; },  // Wind Speed
   { key = "33" ;   val =  "UGRD,m/s"     ; },  // Write U-component of wind
   { key = "34" ;   val =  "VGRD,m/s"     ; },  // Write V-component of wind
   { key = "52" ;   val =    "RH,%"       ; },  // Relative Humidity
   { key = "54" ;   val =  "PWAT,kg/m^2"  ; },  // Precipitable Water
   { key = "59" ;   val = "PRATE,kg/m^2/s"; },  // Precipitation Rate
   { key = "61" ;   val =  "APCP,kg/m^2"  ; },  // Precipitation
   { key = "66" ;   val =  "SNOD,m"       ; },  // Snow Cover
   { key = "80" ;   val =  "WTMP,K"       ; },  // Sea Surface Temperature
   { key = "85" ;   val = "TSOIL,K"       ; },  // Soil Temperature
   { key = "180";   val =  "GUST,m/s"     ; },  // Wind Gust
   { key = "250";   val =  "SWHR,K/s"     ; }   // Solar Radiation
];

//
// Time periods for the summarization
// obs_var (string array) is added and works like grib_code (int array)
// when the obs name is given instead of grib_code
//

time_summary = {
  flag = FALSE;
  raw_data = FALSE;
  beg = "000000";
  end = "235959";
  step = 300;
  width = 600;
  grib_code = [ 11, 204, 211 ];
  obs_var   = [];
  type = [ "min", "max", "range", "mean", "stdev", "median", "p80", "sum" ];
  vld_freq = 0;
  vld_thresh = 0.0;
}

//
// Indicate a version number for the contents of this configuration file.
// The value should generally not be modified.
//
version = "V12.2.0";
