Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
NearRealTimeCTDAS
CTDAS
Commits
e6696b16
Commit
e6696b16
authored
Jun 11, 2013
by
Peters, Wouter
Browse files
the start_ctdas script now makes a new folder and first copies all python files to it
parent
17ab84b8
Changes
3
Hide whitespace changes
Inline
Side-by-side
gridded/start_ctdas.sh
View file @
e6696b16
#! /bin/sh
echo
"New project to be started with name
$1
"
echo
"Copying jb file, py file, and rc-file"
sed
-e
"s/template/
$1
/g"
template.jb
>
$1
.jb
sed
-e
"s/template/
$1
/g"
template.py
>
$1
.py
sed
-e
"s/template/
$1
/g"
template.rc
>
$1
.rc
echo
"New project to be started in folder
$1
"
echo
" ...........with name
$2
"
chmod
u+x
$1
.jb
rootdir
=
$1
/
$2
rundir
=
$1
/
$2
/exec
mkdir
-p
${
rundir
}
rsync
-auvz
*
${
rundir
}
/
cd
${
rundir
}
echo
"Creating jb file, py file, and rc-file"
sed
-e
"s/template/
$2
/g"
template.jb
>
$2
.jb
sed
-e
"s/template/
$2
/g"
template.py
>
$2
.py
sed
-e
"s/template/
$2
/g"
template.rc
>
$2
.rc
chmod
u+x
$2
.jb
echo
"************* NOW USE ****************"
ls
-lrta
$
1
.
*
ls
-lrta
$
2
.
*
echo
"**************************************"
echo
"after cd
${
rundir
}
"
gridded/template.jb
View file @
e6696b16
...
...
@@ -10,6 +10,6 @@
echo ########################
module load
tm5/mpi
module load
ctdas
python template.py rc=template.rc $1
module load
intel/latest/tm5
module load
python/2.6
/opt/local/bin/
python template.py rc=template.rc $1
>& template.log &
gridded/template.rc
View file @
e6696b16
...
...
@@ -5,7 +5,7 @@ time.start : 2005-01-01 00:00:00
time.finish : 2011-01-01 00:00:00
time.cycle : 10
time.nlag : 3
dir.da_run :
/archive/peters/
template
dir.da_run : template
rundir
! Info on the DA system used
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment