1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/do_c-lamp_rewrite.bash Sun Sep 21 21:59:01 2008 -0400
1.3 @@ -0,0 +1,25 @@
1.4 +#!/bin/bash
1.5 +#
1.6 +# Rewrites C-LAMP Experiment 1 model output for distribution on the Earth
1.7 +# System Grid (ESG).
1.8 +#
1.9 +ESGROOT=/u3/forrest/ESG/c-lamp
1.10 +#
1.11 +echo "`date` -- Rewriting C-LAMP model output for distribution on ESG"
1.12 +for model in clm3_casa clm3_cn; do
1.13 + for exp in exp1_2 exp1_3 exp1_4 exp1_6 exp1_7; do
1.14 + for run in run1; do
1.15 + for stat in monthly_mean; do
1.16 + rm -rf ${ESGROOT}/${model}/${exp}/${run}/${stat}
1.17 + mkdir -p ${ESGROOT}/${model}/${exp}/${run}/${stat}
1.18 + chmod 755 ${ESGROOT}/${model}/${exp}/${run}/${stat}
1.19 + cp -p namelist.${model}.${exp}.${run}.${stat} namelist
1.20 + echo "`date` -- Rewriting output for ${model}.${exp}.${run}.${stat}"
1.21 + time ./c-lamp_rewrite >& c-lamp_rewrite.${model}.${exp}.${run}.${stat}.log
1.22 + echo "`date` -- Computing SHA1 checksums for ${model}.${exp}.${run}.${stat}"
1.23 + (cd ${ESGROOT}/${model}/${exp}/${run}/${stat} ; time sha1sum *.nc > SHA1SUM; chmod 644 *)
1.24 + done
1.25 + done
1.26 + done
1.27 +done
1.28 +echo "`date` -- Done"