diff --git a/anthro_emiss_scripts/Combining_SAFAR_EDGAR_HTAP/copy_SAFAR_and_merge_EDGAR_emissions.sh b/anthro_emiss_scripts/Combining_SAFAR_EDGAR_HTAP/copy_SAFAR_and_merge_EDGAR_emissions.sh index 8b4ef25..0539d78 100755 --- a/anthro_emiss_scripts/Combining_SAFAR_EDGAR_HTAP/copy_SAFAR_and_merge_EDGAR_emissions.sh +++ b/anthro_emiss_scripts/Combining_SAFAR_EDGAR_HTAP/copy_SAFAR_and_merge_EDGAR_emissions.sh @@ -3,7 +3,7 @@ SRCDIR='../SAFAR/' fileroot='wrfchemi_' times=( '00z' '12z' ) -domains=( 'd04' ) +domains=( 'd01' 'd02' 'd03' 'd04' ) year='2015' months=( '01' '02' '03' '04' '05' '06' '07' '08' '09' '10' '11' '12' ) @@ -18,23 +18,15 @@ for MONTH in ${months[@]}; do # copy the SAFAR emission file cp ${SRCDIR}${filename} ${filename} - if [[ "$DOM" = "d01" || "$DOM" = "d02" || "$DOM" = "d03" ]] - then # simply add the EDGAR emissions for domains 1, 2, and 3 into the file (replacing SAFAR data) - - echo running ncks on $DOM - ncks -A -a ${EDGARDIR}${filename} ${filename} - - else # copy the SAFAR emissions for domain 4, and then merge in EDGAR data - echo running merge script on $DOM - # merge the emissions data from EDGAR into these files - # we use | instead of / as delimiter, in order to avoid problems with '/' in filepaths - sed "s|%%file%%|${filename}|g" merge_emissions_template.ncl > merge_emiss.temp1.ncl # set the filename - sed "s|%%edgar%%|"${EDGARDIR}"${filename}|g" merge_emiss.temp1.ncl > merge_emiss.temp2.ncl # set the month + echo running merge script on $DOM + # merge the emissions data from EDGAR into these files + # we use | instead of / as delimiter, in order to avoid problems with '/' in filepaths + sed "s|%%file%%|${filename}|g" merge_emissions_template.ncl > merge_emiss.temp1.ncl # set the filename + sed "s|%%edgar%%|"${EDGARDIR}"${filename}|g" merge_emiss.temp1.ncl > merge_emiss.temp2.ncl # set the month - ncl merge_emiss.temp2.ncl &> log_merge_${TIME}_${DOM}_${MONTH}.txt + ncl merge_emiss.temp2.ncl &> log_merge_${TIME}_${DOM}_${MONTH}.txt - fi done done