|
Last change
on this file since 243 was
42,
checked in by htune, 8 years ago
|
|
added bench2waves.sh to test multiwave (in particular htune_convertDesign.R and param2Rwave.sh). Modified serie_LMDZ.sh and serie_ECRAD.sh scripts so that last argument in the call is WAVEN. The wavenumber is now in the name of the pdfs created. Also commented some of the prints and echos to shorten the logs. (Najda)
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
|
File size:
1.6 KB
|
| Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | |
|---|
| 3 | model=LMDZ |
|---|
| 4 | cas=ARMCU/REF |
|---|
| 5 | param=param_cldb |
|---|
| 6 | |
|---|
| 7 | if [ $# -eq 1 ] ; then |
|---|
| 8 | model=ECRAD |
|---|
| 9 | cas=ARMCU/008 |
|---|
| 10 | param=param |
|---|
| 11 | fi |
|---|
| 12 | |
|---|
| 13 | ./setup.sh $model BENCH$model |
|---|
| 14 | |
|---|
| 15 | cd WORK/BENCH$model |
|---|
| 16 | |
|---|
| 17 | ./param2R.sh 30 3 $param # generate first wave parameters |
|---|
| 18 | if [ $? -eq 0 ]; then |
|---|
| 19 | sed -i "s/WAVEN=.*/WAVEN=1/g" expe_setup.R # setup experiment |
|---|
| 20 | ./serie_$model.sh $cas 1 # run model with parameters |
|---|
| 21 | if [ $? -eq 0 ]; then |
|---|
| 22 | Rscript htune_ncdf2Rdata.R # read models outputs and compute metrics |
|---|
| 23 | Rscript htune_EmulatingSCM_CS2.R # emulate and history match |
|---|
| 24 | |
|---|
| 25 | pdfjam Rplots.pdf 2 |
|---|
| 26 | pdf2ps Rplots-2-pdfjam.pdf |
|---|
| 27 | ps2epsi Rplots-2-pdfjam.ps |
|---|
| 28 | epstopdf Rplots-2-pdfjam.epsi |
|---|
| 29 | pdfjam Rplots-2-pdfjam.pdf InputSpace_wave1.pdf --nup 2x1 --landscape --outfile result_wave1.pdf |
|---|
| 30 | evince result_wave1.pdf & |
|---|
| 31 | |
|---|
| 32 | ./param2Rwave.sh 2 Wave2.RData # generate new wave parameters |
|---|
| 33 | sed -i "s/WAVEN=.*/WAVEN=2/g" expe_setup.R # setup experiment |
|---|
| 34 | ./serie_$model.sh $cas 2 # run model with parameters |
|---|
| 35 | if [ $? -eq 0 ]; then |
|---|
| 36 | Rscript htune_ncdf2Rdata.R |
|---|
| 37 | Rscript htune_EmulatingSCM_CS2.R |
|---|
| 38 | |
|---|
| 39 | pdfjam Rplots.pdf 2 |
|---|
| 40 | pdf2ps Rplots-2-pdfjam.pdf |
|---|
| 41 | ps2epsi Rplots-2-pdfjam.ps |
|---|
| 42 | epstopdf Rplots-2-pdfjam.epsi |
|---|
| 43 | pdfjam Rplots-2-pdfjam.pdf InputSpace_wave2.pdf --nup 2x1 --landscape --outfile result_wave2.pdf |
|---|
| 44 | evince result_wave2.pdf & |
|---|
| 45 | |
|---|
| 46 | echo '##########################################################' |
|---|
| 47 | echo ' Next version will start heating water at tea time ' |
|---|
| 48 | echo '##########################################################' |
|---|
| 49 | |
|---|
| 50 | fi |
|---|
| 51 | fi |
|---|
| 52 | fi |
|---|
Note: See
TracBrowser
for help on using the repository browser.