#! /bin/csh -f

#BSUB -oo logs/hr2day.EPA-R6-2016.TX-BART.CAMxRun4.36-12.PiG-PSAT.2002001-2002365.sa.grd01-grd02.davg.log
#BSUB -J hr2day_sa_grd02_Run4
#BSUB -P EPA-R6-RH
#BSUB -q week

# ====================== HR2DAYv5.1 Run Script ======================
# Usage: run.hr2day >&! hr2day_V51.log &
#
# To report problems or request help with this script/program:
#             http://www.cmascenter.org
# ===================================================================

#> Source the config.cmaq file to set the run environment
 source ./config.cmaq.pgi

#> Check that M3DATA is set: 
 if ( ! -e $M3DATA ) then
    echo "   $M3DATA path does not exist"
    exit 1
    endif
 echo " "; echo " Input data path, M3DATA set to $M3DATA"; echo " "

 set APPL = DonaAna 
 set MECH = cb05e51_ae6_aq 
 set EXEC = HR2DAY_${APPL}_$EXEC_ID

#> Set the working directory
 set BASE  = $cwd      
#set BASE  = $M3HOME/scripts/combine
 set BLD   = ${BASE}/BLD_$APPL

 cd $BASE; date; set timestamp; cat $BASE/cfg.${APPL}; echo " "; set echo

 setenv IOAPI_ISPH 20

set SDATE  = 2002001
set ENDATE = 2002365
set file   = sa

#> set to use local time (default is GMT)
 setenv USELOCAL Y

#> set to use daylight savings time (default is N)
 setenv USEDST Y

#> location of time zone data file, tz.csv (this is a required input file)
 setenv TZFILE tz.csv

#> partial day calculation (computes value for last day)
 setenv PARTIAL_DAY Y

#> constant hour offset between desired time zone and GMT (default is 0)
#setenv HROFFSET 6

#> starting hour for daily metrics (default is 0)
 setenv START_HOUR 0

#> ending hour for daily metrics (default is 23)
 setenv END_HOUR 23

#> define species (format: "Name, units, From_species, Operation")
#>  operations : {SUM, AVG, MIN, MAX, @MAXT, MAXDIF, 8HRMAX, SUM06}
 setenv SPECIES_1   "RGN001001,ug/m3,RGN001001,AVG"
 setenv SPECIES_2   "RGN001002,ug/m3,RGN001002,AVG"
 setenv SPECIES_3   "RGN001003,ug/m3,RGN001003,AVG"
 setenv SPECIES_4   "RGN001004,ug/m3,RGN001004,AVG"
 setenv SPECIES_5   "RGN001005,ug/m3,RGN001005,AVG"
 setenv SPECIES_6   "RGN001006,ug/m3,RGN001006,AVG"
 setenv SPECIES_7   "RGN001007,ug/m3,RGN001007,AVG"
 setenv SPECIES_8   "RGN001008,ug/m3,RGN001008,AVG"
 setenv SPECIES_9   "RGN001009,ug/m3,RGN001009,AVG"
 setenv SPECIES_10  "RGN001010,ug/m3,RGN001010,AVG"
 setenv SPECIES_11  "RGN001011,ug/m3,RGN001011,AVG"
 setenv SPECIES_12  "RGN001012,ug/m3,RGN001012,AVG"
 setenv SPECIES_13  "RGN001013,ug/m3,RGN001013,AVG"
 setenv SPECIES_14  "RGN001014,ug/m3,RGN001014,AVG"
 setenv SPECIES_15  "RGN001015,ug/m3,RGN001015,AVG"
 setenv SPECIES_16  "RGN001016,ug/m3,RGN001016,AVG"
 setenv SPECIES_17  "RGN001017,ug/m3,RGN001017,AVG"
 setenv SPECIES_18  "RGN001018,ug/m3,RGN001018,AVG"
 setenv SPECIES_19  "RGN001019,ug/m3,RGN001019,AVG"
 setenv SPECIES_20  "RGN001020,ug/m3,RGN001020,AVG"
 setenv SPECIES_21  "RGN001021,ug/m3,RGN001021,AVG"
 setenv SPECIES_22  "RGN001022,ug/m3,RGN001022,AVG"
 setenv SPECIES_23  "RGN001023,ug/m3,RGN001023,AVG"
 setenv SPECIES_24  "RGN001024,ug/m3,RGN001024,AVG"
 setenv SPECIES_25  "RGN001025,ug/m3,RGN001025,AVG"
 setenv SPECIES_26  "RGN001026,ug/m3,RGN001026,AVG"
 setenv SPECIES_27  "RGN001027,ug/m3,RGN001027,AVG"
 setenv SPECIES_28  "RGN001028,ug/m3,RGN001028,AVG"
 setenv SPECIES_29  "RGN001029,ug/m3,RGN001029,AVG"
 setenv SPECIES_30  "RGN001030,ug/m3,RGN001030,AVG"
 
 setenv SPECIES_31  "PS4001001,ug/m3,PS4001001,AVG"
 setenv SPECIES_32  "PS4001002,ug/m3,PS4001002,AVG"
 setenv SPECIES_33  "PS4001003,ug/m3,PS4001003,AVG"
 setenv SPECIES_34  "PS4001004,ug/m3,PS4001004,AVG"
 setenv SPECIES_35  "PS4001005,ug/m3,PS4001005,AVG"
 setenv SPECIES_36  "PS4001006,ug/m3,PS4001006,AVG"
 setenv SPECIES_37  "PS4001007,ug/m3,PS4001007,AVG"
 setenv SPECIES_38  "PS4001008,ug/m3,PS4001008,AVG"
 setenv SPECIES_39  "PS4001009,ug/m3,PS4001009,AVG"
 setenv SPECIES_40  "PS4001010,ug/m3,PS4001010,AVG"
 setenv SPECIES_41  "PS4001011,ug/m3,PS4001011,AVG"
 setenv SPECIES_42  "PS4001012,ug/m3,PS4001012,AVG"
 setenv SPECIES_43  "PS4001013,ug/m3,PS4001013,AVG"
 setenv SPECIES_44  "PS4001014,ug/m3,PS4001014,AVG"
 setenv SPECIES_45  "PS4001015,ug/m3,PS4001015,AVG"
 setenv SPECIES_46  "PS4001016,ug/m3,PS4001016,AVG"
 setenv SPECIES_47  "PS4001017,ug/m3,PS4001017,AVG"
 setenv SPECIES_48  "PS4001018,ug/m3,PS4001018,AVG"
 setenv SPECIES_49  "PS4001019,ug/m3,PS4001019,AVG"
 setenv SPECIES_50  "PS4001020,ug/m3,PS4001020,AVG"
 setenv SPECIES_51  "PS4001021,ug/m3,PS4001021,AVG"
 setenv SPECIES_52  "PS4001022,ug/m3,PS4001022,AVG"
 setenv SPECIES_53  "PS4001023,ug/m3,PS4001023,AVG"
 setenv SPECIES_54  "PS4001024,ug/m3,PS4001024,AVG"
 setenv SPECIES_55  "PS4001025,ug/m3,PS4001025,AVG"
 setenv SPECIES_56  "PS4001026,ug/m3,PS4001026,AVG"
 setenv SPECIES_57  "PS4001027,ug/m3,PS4001027,AVG"
 setenv SPECIES_58  "PS4001028,ug/m3,PS4001028,AVG"
 setenv SPECIES_59  "PS4001029,ug/m3,PS4001029,AVG"
 setenv SPECIES_60  "PS4001030,ug/m3,PS4001030,AVG"
 
 setenv SPECIES_61  "PN3001001,ug/m3,PN3001001,AVG"
 setenv SPECIES_62  "PN3001002,ug/m3,PN3001002,AVG"
 setenv SPECIES_63  "PN3001003,ug/m3,PN3001003,AVG"
 setenv SPECIES_64  "PN3001004,ug/m3,PN3001004,AVG"
 setenv SPECIES_65  "PN3001005,ug/m3,PN3001005,AVG"
 setenv SPECIES_66  "PN3001006,ug/m3,PN3001006,AVG"
 setenv SPECIES_67  "PN3001007,ug/m3,PN3001007,AVG"
 setenv SPECIES_68  "PN3001008,ug/m3,PN3001008,AVG"
 setenv SPECIES_69  "PN3001009,ug/m3,PN3001009,AVG"
 setenv SPECIES_70  "PN3001010,ug/m3,PN3001010,AVG"
 setenv SPECIES_71  "PN3001011,ug/m3,PN3001011,AVG"
 setenv SPECIES_72  "PN3001012,ug/m3,PN3001012,AVG"
 setenv SPECIES_73  "PN3001013,ug/m3,PN3001013,AVG"
 setenv SPECIES_74  "PN3001014,ug/m3,PN3001014,AVG"
 setenv SPECIES_75  "PN3001015,ug/m3,PN3001015,AVG"
 setenv SPECIES_76  "PN3001016,ug/m3,PN3001016,AVG"
 setenv SPECIES_77  "PN3001017,ug/m3,PN3001017,AVG"
 setenv SPECIES_78  "PN3001018,ug/m3,PN3001018,AVG"
 setenv SPECIES_79  "PN3001019,ug/m3,PN3001019,AVG"
 setenv SPECIES_80  "PN3001020,ug/m3,PN3001020,AVG"
 setenv SPECIES_81  "PN3001021,ug/m3,PN3001021,AVG"
 setenv SPECIES_82  "PN3001022,ug/m3,PN3001022,AVG"
 setenv SPECIES_83  "PN3001023,ug/m3,PN3001023,AVG"
 setenv SPECIES_84  "PN3001024,ug/m3,PN3001024,AVG"
 setenv SPECIES_85  "PN3001025,ug/m3,PN3001025,AVG"
 setenv SPECIES_86  "PN3001026,ug/m3,PN3001026,AVG"
 setenv SPECIES_87  "PN3001027,ug/m3,PN3001027,AVG"
 setenv SPECIES_88  "PN3001028,ug/m3,PN3001028,AVG"
 setenv SPECIES_89  "PN3001029,ug/m3,PN3001029,AVG"
 setenv SPECIES_90  "PN3001030,ug/m3,PN3001030,AVG"
 
 setenv SPECIES_91  "PEC001001,ug/m3,PEC001001,AVG"
 setenv SPECIES_92  "PEC001002,ug/m3,PEC001002,AVG"
 setenv SPECIES_93  "PEC001003,ug/m3,PEC001003,AVG"
 setenv SPECIES_94  "PEC001004,ug/m3,PEC001004,AVG"
 setenv SPECIES_95  "PEC001005,ug/m3,PEC001005,AVG"
 setenv SPECIES_96  "PEC001006,ug/m3,PEC001006,AVG"
 setenv SPECIES_97  "PEC001007,ug/m3,PEC001007,AVG"
 setenv SPECIES_98  "PEC001008,ug/m3,PEC001008,AVG"
 setenv SPECIES_99  "PEC001009,ug/m3,PEC001009,AVG"
 setenv SPECIES_100 "PEC001010,ug/m3,PEC001010,AVG"
 setenv SPECIES_101 "PEC001011,ug/m3,PEC001011,AVG"
 setenv SPECIES_102 "PEC001012,ug/m3,PEC001012,AVG"
 setenv SPECIES_103 "PEC001013,ug/m3,PEC001013,AVG"
 setenv SPECIES_104 "PEC001014,ug/m3,PEC001014,AVG"
 setenv SPECIES_105 "PEC001015,ug/m3,PEC001015,AVG"
 setenv SPECIES_106 "PEC001016,ug/m3,PEC001016,AVG"
 setenv SPECIES_107 "PEC001017,ug/m3,PEC001017,AVG"
 setenv SPECIES_108 "PEC001018,ug/m3,PEC001018,AVG"
 setenv SPECIES_109 "PEC001019,ug/m3,PEC001019,AVG"
 setenv SPECIES_110 "PEC001020,ug/m3,PEC001020,AVG"
 setenv SPECIES_111 "PEC001021,ug/m3,PEC001021,AVG"
 setenv SPECIES_112 "PEC001022,ug/m3,PEC001022,AVG"
 setenv SPECIES_113 "PEC001023,ug/m3,PEC001023,AVG"
 setenv SPECIES_114 "PEC001024,ug/m3,PEC001024,AVG"
 setenv SPECIES_115 "PEC001025,ug/m3,PEC001025,AVG"
 setenv SPECIES_116 "PEC001026,ug/m3,PEC001026,AVG"
 setenv SPECIES_117 "PEC001027,ug/m3,PEC001027,AVG"
 setenv SPECIES_118 "PEC001028,ug/m3,PEC001028,AVG"
 setenv SPECIES_119 "PEC001029,ug/m3,PEC001029,AVG"
 setenv SPECIES_120 "PEC001030,ug/m3,PEC001030,AVG"
 
 setenv SPECIES_121 "POA001001,ug/m3,POA001001,AVG"
 setenv SPECIES_122 "POA001002,ug/m3,POA001002,AVG"
 setenv SPECIES_123 "POA001003,ug/m3,POA001003,AVG"
 setenv SPECIES_124 "POA001004,ug/m3,POA001004,AVG"
 setenv SPECIES_125 "POA001005,ug/m3,POA001005,AVG"
 setenv SPECIES_126 "POA001006,ug/m3,POA001006,AVG"
 setenv SPECIES_127 "POA001007,ug/m3,POA001007,AVG"
 setenv SPECIES_128 "POA001008,ug/m3,POA001008,AVG"
 setenv SPECIES_129 "POA001009,ug/m3,POA001009,AVG"
 setenv SPECIES_130 "POA001010,ug/m3,POA001010,AVG"
 setenv SPECIES_131 "POA001011,ug/m3,POA001011,AVG"
 setenv SPECIES_132 "POA001012,ug/m3,POA001012,AVG"
 setenv SPECIES_133 "POA001013,ug/m3,POA001013,AVG"
 setenv SPECIES_134 "POA001014,ug/m3,POA001014,AVG"
 setenv SPECIES_135 "POA001015,ug/m3,POA001015,AVG"
 setenv SPECIES_136 "POA001016,ug/m3,POA001016,AVG"
 setenv SPECIES_137 "POA001017,ug/m3,POA001017,AVG"
 setenv SPECIES_138 "POA001018,ug/m3,POA001018,AVG"
 setenv SPECIES_139 "POA001019,ug/m3,POA001019,AVG"
 setenv SPECIES_140 "POA001020,ug/m3,POA001020,AVG"
 setenv SPECIES_141 "POA001021,ug/m3,POA001021,AVG"
 setenv SPECIES_142 "POA001022,ug/m3,POA001022,AVG"
 setenv SPECIES_143 "POA001023,ug/m3,POA001023,AVG"
 setenv SPECIES_144 "POA001024,ug/m3,POA001024,AVG"
 setenv SPECIES_145 "POA001025,ug/m3,POA001025,AVG"
 setenv SPECIES_146 "POA001026,ug/m3,POA001026,AVG"
 setenv SPECIES_147 "POA001027,ug/m3,POA001027,AVG"
 setenv SPECIES_148 "POA001028,ug/m3,POA001028,AVG"
 setenv SPECIES_149 "POA001029,ug/m3,POA001029,AVG"
 setenv SPECIES_150 "POA001030,ug/m3,POA001030,AVG"
 
 setenv SPECIES_151 "PFC001001,ug/m3,PFC001001,AVG"
 setenv SPECIES_152 "PFC001002,ug/m3,PFC001002,AVG"
 setenv SPECIES_153 "PFC001003,ug/m3,PFC001003,AVG"
 setenv SPECIES_154 "PFC001004,ug/m3,PFC001004,AVG"
 setenv SPECIES_155 "PFC001005,ug/m3,PFC001005,AVG"
 setenv SPECIES_156 "PFC001006,ug/m3,PFC001006,AVG"
 setenv SPECIES_157 "PFC001007,ug/m3,PFC001007,AVG"
 setenv SPECIES_158 "PFC001008,ug/m3,PFC001008,AVG"
 setenv SPECIES_159 "PFC001009,ug/m3,PFC001009,AVG"
 setenv SPECIES_160 "PFC001010,ug/m3,PFC001010,AVG"
 setenv SPECIES_161 "PFC001011,ug/m3,PFC001011,AVG"
 setenv SPECIES_162 "PFC001012,ug/m3,PFC001012,AVG"
 setenv SPECIES_163 "PFC001013,ug/m3,PFC001013,AVG"
 setenv SPECIES_164 "PFC001014,ug/m3,PFC001014,AVG"
 setenv SPECIES_165 "PFC001015,ug/m3,PFC001015,AVG"
 setenv SPECIES_166 "PFC001016,ug/m3,PFC001016,AVG"
 setenv SPECIES_167 "PFC001017,ug/m3,PFC001017,AVG"
 setenv SPECIES_168 "PFC001018,ug/m3,PFC001018,AVG"
 setenv SPECIES_169 "PFC001019,ug/m3,PFC001019,AVG"
 setenv SPECIES_170 "PFC001020,ug/m3,PFC001020,AVG"
 setenv SPECIES_171 "PFC001021,ug/m3,PFC001021,AVG"
 setenv SPECIES_172 "PFC001022,ug/m3,PFC001022,AVG"
 setenv SPECIES_173 "PFC001023,ug/m3,PFC001023,AVG"
 setenv SPECIES_174 "PFC001024,ug/m3,PFC001024,AVG"
 setenv SPECIES_175 "PFC001025,ug/m3,PFC001025,AVG"
 setenv SPECIES_176 "PFC001026,ug/m3,PFC001026,AVG"
 setenv SPECIES_177 "PFC001027,ug/m3,PFC001027,AVG"
 setenv SPECIES_178 "PFC001028,ug/m3,PFC001028,AVG"
 setenv SPECIES_179 "PFC001029,ug/m3,PFC001029,AVG"
 setenv SPECIES_180 "PFC001030,ug/m3,PFC001030,AVG"
 
 setenv SPECIES_181 "PFN001001,ug/m3,PFN001001,AVG"
 setenv SPECIES_182 "PFN001002,ug/m3,PFN001002,AVG"
 setenv SPECIES_183 "PFN001003,ug/m3,PFN001003,AVG"
 setenv SPECIES_184 "PFN001004,ug/m3,PFN001004,AVG"
 setenv SPECIES_185 "PFN001005,ug/m3,PFN001005,AVG"
 setenv SPECIES_186 "PFN001006,ug/m3,PFN001006,AVG"
 setenv SPECIES_187 "PFN001007,ug/m3,PFN001007,AVG"
 setenv SPECIES_188 "PFN001008,ug/m3,PFN001008,AVG"
 setenv SPECIES_189 "PFN001009,ug/m3,PFN001009,AVG"
 setenv SPECIES_190 "PFN001010,ug/m3,PFN001010,AVG"
 setenv SPECIES_191 "PFN001011,ug/m3,PFN001011,AVG"
 setenv SPECIES_192 "PFN001012,ug/m3,PFN001012,AVG"
 setenv SPECIES_193 "PFN001013,ug/m3,PFN001013,AVG"
 setenv SPECIES_194 "PFN001014,ug/m3,PFN001014,AVG"
 setenv SPECIES_195 "PFN001015,ug/m3,PFN001015,AVG"
 setenv SPECIES_196 "PFN001016,ug/m3,PFN001016,AVG"
 setenv SPECIES_197 "PFN001017,ug/m3,PFN001017,AVG"
 setenv SPECIES_198 "PFN001018,ug/m3,PFN001018,AVG"
 setenv SPECIES_199 "PFN001019,ug/m3,PFN001019,AVG"
 setenv SPECIES_200 "PFN001020,ug/m3,PFN001020,AVG"
 setenv SPECIES_201 "PFN001021,ug/m3,PFN001021,AVG"
 setenv SPECIES_202 "PFN001022,ug/m3,PFN001022,AVG"
 setenv SPECIES_203 "PFN001023,ug/m3,PFN001023,AVG"
 setenv SPECIES_204 "PFN001024,ug/m3,PFN001024,AVG"
 setenv SPECIES_205 "PFN001025,ug/m3,PFN001025,AVG"
 setenv SPECIES_206 "PFN001026,ug/m3,PFN001026,AVG"
 setenv SPECIES_207 "PFN001027,ug/m3,PFN001027,AVG"
 setenv SPECIES_208 "PFN001028,ug/m3,PFN001028,AVG"
 setenv SPECIES_209 "PFN001029,ug/m3,PFN001029,AVG"
 setenv SPECIES_210 "PFN001030,ug/m3,PFN001030,AVG"
 
 setenv SPECIES_211 "PCC001001,ug/m3,PCC001001,AVG"
 setenv SPECIES_212 "PCC001002,ug/m3,PCC001002,AVG"
 setenv SPECIES_213 "PCC001003,ug/m3,PCC001003,AVG"
 setenv SPECIES_214 "PCC001004,ug/m3,PCC001004,AVG"
 setenv SPECIES_215 "PCC001005,ug/m3,PCC001005,AVG"
 setenv SPECIES_216 "PCC001006,ug/m3,PCC001006,AVG"
 setenv SPECIES_217 "PCC001007,ug/m3,PCC001007,AVG"
 setenv SPECIES_218 "PCC001008,ug/m3,PCC001008,AVG"
 setenv SPECIES_219 "PCC001009,ug/m3,PCC001009,AVG"
 setenv SPECIES_220 "PCC001010,ug/m3,PCC001010,AVG"
 setenv SPECIES_221 "PCC001011,ug/m3,PCC001011,AVG"
 setenv SPECIES_222 "PCC001012,ug/m3,PCC001012,AVG"
 setenv SPECIES_223 "PCC001013,ug/m3,PCC001013,AVG"
 setenv SPECIES_224 "PCC001014,ug/m3,PCC001014,AVG"
 setenv SPECIES_225 "PCC001015,ug/m3,PCC001015,AVG"
 setenv SPECIES_226 "PCC001016,ug/m3,PCC001016,AVG"
 setenv SPECIES_227 "PCC001017,ug/m3,PCC001017,AVG"
 setenv SPECIES_228 "PCC001018,ug/m3,PCC001018,AVG"
 setenv SPECIES_229 "PCC001019,ug/m3,PCC001019,AVG"
 setenv SPECIES_230 "PCC001020,ug/m3,PCC001020,AVG"
 setenv SPECIES_231 "PCC001021,ug/m3,PCC001021,AVG"
 setenv SPECIES_232 "PCC001022,ug/m3,PCC001022,AVG"
 setenv SPECIES_233 "PCC001023,ug/m3,PCC001023,AVG"
 setenv SPECIES_234 "PCC001024,ug/m3,PCC001024,AVG"
 setenv SPECIES_235 "PCC001025,ug/m3,PCC001025,AVG"
 setenv SPECIES_236 "PCC001026,ug/m3,PCC001026,AVG"
 setenv SPECIES_237 "PCC001027,ug/m3,PCC001027,AVG"
 setenv SPECIES_238 "PCC001028,ug/m3,PCC001028,AVG"
 setenv SPECIES_239 "PCC001029,ug/m3,PCC001029,AVG"
 setenv SPECIES_240 "PCC001030,ug/m3,PCC001030,AVG"

 setenv SPECIES_241 "PCS001001,ug/m3,PCS001001,AVG"
 setenv SPECIES_242 "PCS001002,ug/m3,PCS001002,AVG"
 setenv SPECIES_243 "PCS001003,ug/m3,PCS001003,AVG"
 setenv SPECIES_244 "PCS001004,ug/m3,PCS001004,AVG"
 setenv SPECIES_245 "PCS001005,ug/m3,PCS001005,AVG"
 setenv SPECIES_246 "PCS001006,ug/m3,PCS001006,AVG"
 setenv SPECIES_247 "PCS001007,ug/m3,PCS001007,AVG"
 setenv SPECIES_248 "PCS001008,ug/m3,PCS001008,AVG"
 setenv SPECIES_249 "PCS001009,ug/m3,PCS001009,AVG"
 setenv SPECIES_250 "PCS001010,ug/m3,PCS001010,AVG"
 setenv SPECIES_251 "PCS001011,ug/m3,PCS001011,AVG"
 setenv SPECIES_252 "PCS001012,ug/m3,PCS001012,AVG"
 setenv SPECIES_253 "PCS001013,ug/m3,PCS001013,AVG"
 setenv SPECIES_254 "PCS001014,ug/m3,PCS001014,AVG"
 setenv SPECIES_255 "PCS001015,ug/m3,PCS001015,AVG"
 setenv SPECIES_256 "PCS001016,ug/m3,PCS001016,AVG"
 setenv SPECIES_257 "PCS001017,ug/m3,PCS001017,AVG"
 setenv SPECIES_258 "PCS001018,ug/m3,PCS001018,AVG"
 setenv SPECIES_259 "PCS001019,ug/m3,PCS001019,AVG"
 setenv SPECIES_260 "PCS001020,ug/m3,PCS001020,AVG"
 setenv SPECIES_261 "PCS001021,ug/m3,PCS001021,AVG"
 setenv SPECIES_262 "PCS001022,ug/m3,PCS001022,AVG"
 setenv SPECIES_263 "PCS001023,ug/m3,PCS001023,AVG"
 setenv SPECIES_264 "PCS001024,ug/m3,PCS001024,AVG"
 setenv SPECIES_265 "PCS001025,ug/m3,PCS001025,AVG"
 setenv SPECIES_266 "PCS001026,ug/m3,PCS001026,AVG"
 setenv SPECIES_267 "PCS001027,ug/m3,PCS001027,AVG"
 setenv SPECIES_268 "PCS001028,ug/m3,PCS001028,AVG"
 setenv SPECIES_269 "PCS001029,ug/m3,PCS001029,AVG"
 setenv SPECIES_270 "PCS001030,ug/m3,PCS001030,AVG"

 setenv INDIR  /nas01/depts/ie/cempd/EPA-R6-CAMx/CAMx/EPA-R6-2016/CAMxRun4/outputs_ncf/concat
 setenv OUTDIR /nas01/depts/ie/cempd/EPA-R6-CAMx/CAMx/EPA-R6-2016/CAMxRun4/post-proc/vis/output/test
 foreach grd ( 02 ) # (01 02)
#> set input and output files
   setenv INFILE $INDIR/camx_v630.EPA-R6-2016.TX-BART.CAMxRun4.36-12.PiG-PSAT.${SDATE}-${ENDATE}.${file}.grd${grd}.ncf
   setenv OUTFILE $OUTDIR/camx_v630.EPA-R6-2016.TX-BART.CAMxRun4.36-12.PiG-PSAT.${SDATE}-${ENDATE}.${file}.grd${grd}.ncf.hr2day.davg
#> Executable call:
  /usr/bin/time $BLD/$EXEC

 end
 date
 exit()
