source: src/param2Rwave.sh @ 193

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