[3684] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | |
---|
| 4 | sim=NPv3.1ada_1982_1991 |
---|
| 5 | sim=NPv5.17h_1982_1989 |
---|
| 6 | sim=CLOS2_2001_2002 |
---|
| 7 | sim=CTRL_2001_2002 |
---|
| 8 | sim=BREEZE_2001_2002 |
---|
| 9 | sim=SPLITTH1_2001_2002 |
---|
| 10 | sim=MIX1_2001_2002 |
---|
| 11 | |
---|
| 12 | sims="NPv5.3_1982_1989 NPv5.3Mix_1982_1989 NPv5.3Th_1982_1989 NPv5.3Ice_1982_1989 NPv5.3Sto_1982_1989 NPv5.3Tune_1982_1989 AR4.0ada_1982_1991 NPv3.1ada_1982_1991" |
---|
| 13 | sims="NPv5.3_1982_1989" |
---|
| 14 | |
---|
| 15 | for sim in $sims ; do |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | module load python/2.7.5 nco ncview ncl |
---|
| 20 | module load ncl/6.3.0 |
---|
| 21 | ulimit -s unlimited |
---|
| 22 | export PYTHONPATH=$PYTHONPATH:~ssenesi/climaf |
---|
| 23 | export PATH=$PATH:~ssenesi/climaf/bin |
---|
| 24 | |
---|
| 25 | vars1="pr,hurs,rstt,rlut,rtt,crelt,crest,crett,hfns,hfss,hfls,tas,tasc,tauu,tauv,pslhPa,zg500" |
---|
| 26 | vars2="rsah,rsahcs,rsahcre,rlah,rlahcs,rlahcre,rah,rahcs,rahcre,cress,rsts,rsut,rlutcs,albs,albt,cress,crels,crets,rts,crelt" |
---|
| 27 | vars3="cltcalipso,clhcalipso,clmcalipso,cllcalipso" |
---|
| 28 | |
---|
| 29 | for pas in 1 2 3 ; do |
---|
| 30 | |
---|
| 31 | \rm -f index_example.html |
---|
| 32 | |
---|
| 33 | case $pas in |
---|
| 34 | 3) vars_SE=pr,tas,hfls,hurs,rldscs,rlds,rlus,rsdscs,psl,rsds,rsuscs,rsus,rsutcs,rsut,rlut,rlutcs,tas,tauu,tauv,psl,zg500,crest,crelt,crett,cress,crels,crets ;; |
---|
| 35 | 2) vars_SE=pr,tas,hfls,hurs,rldscs,rlds,rlus,rsdscs,psl,rsds,rsuscs,rsus,rsutcs,rsut,rlut,rlutcs ;; |
---|
| 36 | 1) vars_SE=pr,tas,hfls,hurs,rldscs,rlds,rlus,rsdscs,psl,rsds ;; |
---|
| 37 | esac |
---|
| 38 | |
---|
| 39 | vars="$vars_SE" |
---|
| 40 | echo python ./atlas.py -f -v $vars -s $sim |
---|
| 41 | python ./atlas.py -f -v $vars -s $sim |
---|
| 42 | |
---|
| 43 | done |
---|
| 44 | |
---|
| 45 | echo pdfjam \\ >| jam.sh |
---|
| 46 | grep pdf index_example.html | sed -e "1,2d" -e 's/^.*.HREF..//' -e 's/pdf.*.$/pdf \\/' >> jam.sh |
---|
| 47 | echo --landscape --outfile $sim.pdf >> jam.sh ; chmod +x jam.sh ; ./jam.sh |
---|
| 48 | |
---|
| 49 | done |
---|