#!/bin/csh -f
#Aggregate values from two netcdf files or window the data to a smaller domain

# Domain info
#setenv GRIDDESC /other/bczader/temp/GRIDDESC
#setenv IOAPI_GRIDNAME_1 US12NC_16X12

# notwork
setenv GRIDDESC $SMK_HOME/data/ge_dat/GRIDDESC
setenv IOAPI_GRIDNAME_1 NA_12KM


# Input/output file
setenv INFILE $SMK_HOME/data/inventory/txo3.epab41_in/biog/BELD5_1US3_FIA6.1_2017CLD_Canada.ncf4
#setenv INFILE /other/smoke/v4.8/data/run_nctox/output/cmaq_cb05_soa/b3gts_s.20050710.1.us12-nc.nctox.ncf

setenv OUTFILE ./outfile_${IOAPI_GRIDNAME_1}.ncf
setenv REPFILE ./log_${IOAPI_GRIDNAME_1}.txt

# Other parameters
setenv AGGREGATE_EMIS_YN N  # Y-aggregate, N-use when only windowing domain
setenv PROMPTFLAG N

#Directory with the program
setenv PROG_DIR /other/smoke/v4.8/subsys/smoke/Linux2_x86_64pg_pgcc_nomp-pgi18.10

$PROG_DIR/aggwndw
