#!/bin/csh

  # Set TABLE TYPE
  setenv TABLE_TYPE 

  # Specify the variable names used in your observation inputs
  # and model output files for each of the species you are analyzing below.
  #
  # variable format:
  #    Obs_expression, Obs_units, [Mod_expression], [Mod_unit], [Variable_name]
  #
  # The expression is in the form:
  #       [factor1]*Obs_name1 [+][-] [factor2]*Obs_name2 ...
## define model species
   setenv OZONE "1*O3,ppb"

## define obs species
  setenv OBS_SPECIES O3 

## indicate whether or not to check QA flag
  setenv QA_FLAG_CHECK N 

## Indicates whether the Lambert x/y information should be included in the output file
  setenv LAMBXY N 

## Number of 8hr values to use when computing daily maximum 8hr ozone.
## Allowed values are 24 (use all 8-hr averages with starting hours
## from 0 - 23 hr local time) and 17 (use only the 17 8-hr averages
## with starting hours from 7 - 23 hr local time)
  setenv HOURS_8HRMAX 24

## Ozone observation conversion factor
  setenv OBS_FACTOR "1"	
  ### End Species List ###

  ## define time window
  setenv START_DATE 2016001
  setenv END_DATE 2016366
  setenv START_TIME 0
  setenv END_TIME 230000

  ## define the PRECIP variable
  setenv PRECIP RT

  ## adjust for daylight savings
  setenv APPLY_DLS N

  ## set missing value string
  setenv MISSING '-999'

  ## Projection sphere type (use type #19 to match CMAQ)
  setenv IOAPI_ISPH 20

  ## Time Shift for dealing with aconc files ##
  setenv TIME_SHIFT 0

  #############################################################
  #  Input files
  #############################################################
  # ioapi input files containing VNAMES (max of 10)
  setenv M3_FILE_1 /root/RAID2/AMET_v14/tools_src/combine/ARDEQ_outputs/ARDEQ_MPE_combine_camxv7.10_cb6r5.cf2e.DMS.2016v2.2016year.grd01.nc


  #  SITE FILE containing site-id, longitude, latitude (tab delimited)
  setenv SITE_FILE /root/RAID2/AMET_v14/obs/AQ/site_metadata_files/AQS_full_site_list.csv

  # : input table (exported file from Excel)
  #   containing site-id, time-period, and data fields
  setenv IN_TABLE /root/RAID2/AMET_v14/obs/AQ/2016/AQS_hourly_data_2016.csv

  #############################################################
  #  Output files
  #############################################################

  #  output table (tab delimited text file importable to Excel)
  setenv OUT_TABLE /root/RAID2/AMET_v14/output/MPE_2016v2_US/sitex_output/AQS_Daily_O3_MPE_2016v2_US.csv

  /root/RAID2/AMET_v14/bin/sitecmp_dailyo3.exe
