-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathqsub_qsub_sum_swe.sh
executable file
·47 lines (40 loc) · 1.01 KB
/
qsub_qsub_sum_swe.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
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
#types="ensavg eachgcm"
#basins="cascades california northernrockies southernrockies whites"
#models="NorESM1-M CNRM-CM5 CSIRO-Mk3-6-0 CanESM2 MIROC5 bcc-csm1-1-m HadGEM2-CC365 HadGEM2-ES365 CCSM4 IPSL-CM5A-MR"
#scenarios="historical rcp45 rcp85"
types="eachgcm"
basins="california"
models="CanESM2"
scenarios="historical"
for type in $types
do
if [ "ensavg" = "$type" ]
then
### loop over basins
for basin in $basins
do
for scenario in $scenarios
do
echo "processing $type $basin $scenario"
qsub -v type=$type,basin=$basin,scenario=$scenario qsub_sum_swe.sh
done
done
elif [ "eachgcm" = "$type" ]
then
## loop over basins
for basin in $basins
do
## loop over models
for model in $models
do
## loop over scenarios
for scenario in $scenarios
do
echo "processing $type $basin $model $scenario"
qsub -v type=$type,basin=$basin,model=$model,scenario=$scenario qsub_sum_swe_gcms.sh
done
done
done
fi
done