|
Last change
on this file since 193 was
193,
checked in by htune, 6 years ago
|
|
Introducing a env.sh file to allow activating particular environment.
Needed on the jean-zay supercomputer.
Fredho
|
-
Property svn:executable set to
*
|
|
File size:
602 bytes
|
| Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | |
|---|
| 3 | . env.sh |
|---|
| 4 | |
|---|
| 5 | if [ $# != 2 ] ; then |
|---|
| 6 | cat <<eod |
|---|
| 7 | Usage : param2Rwave.sh WAVEN RDATA_FILE |
|---|
| 8 | eod |
|---|
| 9 | exit |
|---|
| 10 | fi |
|---|
| 11 | |
|---|
| 12 | WAVEN=$1 |
|---|
| 13 | RDATA_FILE=$2 |
|---|
| 14 | |
|---|
| 15 | if [ ! -f $RDATA_FILE ] ; then echo fichier $RDATA_FILE inexistant ; exit ; fi |
|---|
| 16 | if [ ! $WAVEN -ge 2 ] ; then echo WAVEN should be '>=' 2 ; exit ; fi |
|---|
| 17 | |
|---|
| 18 | # Specify the number of wave that we are currently in. |
|---|
| 19 | sed -e 's/WAVEN=.*/WAVEN='$WAVEN'/' htune_convertDesign.R > htune_convertDesign$WAVEN.R |
|---|
| 20 | |
|---|
| 21 | cp WAVE1/ModelParam.R . |
|---|
| 22 | |
|---|
| 23 | Rscript htune_convertDesign$WAVEN.R |
|---|
| 24 | |
|---|
| 25 | mkdir WAVE$WAVEN |
|---|
| 26 | mv Wave$WAVEN.RData WAVE$WAVEN/ |
|---|
| 27 | mv Par1D_Wave$WAVEN.asc WAVE$WAVEN/ |
|---|
| 28 | mv ModelParam.R WAVE$WAVEN/ |
|---|
Note: See
TracBrowser
for help on using the repository browser.