-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubmit_rsofun_cwdx.sh
executable file
·35 lines (29 loc) · 1.09 KB
/
submit_rsofun_cwdx.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# jobs to run
njobs=50
# check dirs
pwd=`pwd`
base=`basename $pwd`
# check if we are in the project folder!
# jobs need to be executed in the main
# directory, not anywhere else to maintain
# relative paths
if [ ${pwd} -ne "mct" ]; then
echo "You are not executing the script in the main project directory, exiting!"
exit 1
fi
for ((n=1;n<=${njobs};n++)); do
echo "Submitting pixel $n ..."
# bsub -W 72:00 -u $USER -J "test whc obs chunk_${n}" -R "rusage[mem=48000]" "Rscript --vanilla ./rscript_rsofun_cwdx.R $n 9999"
Rscript --vanilla ./rscript_rsofun_cwdx.R $n 9999
done
for ((n=1;n<=${njobs};n++)); do
echo "Submitting pixel $n ..."
# bsub -W 72:00 -u $USER -J "test whc 200 chunk_${n}" -R "rusage[mem=48000]" "Rscript --vanilla ./rscript_rsofun_cwdx.R $n 200"
Rscript --vanilla ./rscript_rsofun_cwdx.R $n 200
done
for ((n=1;n<=${njobs};n++)); do
echo "Submitting pixel $n ..."
# bsub -W 72:00 -u $USER -J "test whc 100 chunk_${n}" -R "rusage[mem=48000]" "Rscript --vanilla ./rscript_rsofun_cwdx.R $n 100"
Rscript --vanilla ./rscript_rsofun_cwdx.R $n 100
done