#!/bin/csh -fx
# Sample script to run aggwndw to aggregate BELD5 1km landuse to a coarser resolution
# with same map projection as BELD5
# J Vukovich USEPA   Vukovich.Jeffrey@epa.gov
#
#  BELD5 1km file
setenv INFILE BELD5_1US3_FIA6.1_2017CLD_Canada.ncf
# See SMOKE Users Guide for info on GRIDDESC file
setenv GRIDDESC GRIDDESC_test
#  Must be set to N when aggregating land use percentages (BELD)
setenv AGGREGATE_EMIS_YN  N
 
# Output grid name is IOAPI_GRIDNAME_1
# The definition of this output grid must be in the GRIDDESC file
#
setenv IOAPI_GRIDNAME_1  12US1_459X299
setenv OUTFILE beld5.aggwndw_v48.12US1.ncf 

# SMK_BIN is path to the aggwndw executable
#
$SMK_BIN/aggwndw

exit
