source: src/param2Rwave.sh @ 176

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