|
Last change
on this file since 176 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:executable set to
*
|
|
File size:
592 bytes
|
| Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | |
|---|
| 3 | if [ $# != 2 ] ; then |
|---|
| 4 | cat <<eod |
|---|
| 5 | Usage : param2Rwave.sh WAVEN RDATA_FILE |
|---|
| 6 | eod |
|---|
| 7 | exit |
|---|
| 8 | fi |
|---|
| 9 | |
|---|
| 10 | WAVEN=$1 |
|---|
| 11 | RDATA_FILE=$2 |
|---|
| 12 | |
|---|
| 13 | if [ ! -f $RDATA_FILE ] ; then echo fichier $RDATA_FILE inexistant ; exit ; fi |
|---|
| 14 | if [ ! $WAVEN -ge 2 ] ; then echo WAVEN should be '>=' 2 ; exit ; fi |
|---|
| 15 | |
|---|
| 16 | # Specify the number of wave that we are currently in. |
|---|
| 17 | sed -e 's/WAVEN=.*/WAVEN='$WAVEN'/' htune_convertDesign.R > htune_convertDesign$WAVEN.R |
|---|
| 18 | |
|---|
| 19 | cp WAVE1/ModelParam.R . |
|---|
| 20 | |
|---|
| 21 | Rscript htune_convertDesign$WAVEN.R |
|---|
| 22 | |
|---|
| 23 | mkdir WAVE$WAVEN |
|---|
| 24 | mv Wave$WAVEN.RData WAVE$WAVEN/ |
|---|
| 25 | mv Par1D_Wave$WAVEN.asc WAVE$WAVEN/ |
|---|
| 26 | mv ModelParam.R WAVE$WAVEN/ |
|---|
Note: See
TracBrowser
for help on using the repository browser.