-
Notifications
You must be signed in to change notification settings - Fork 3
/
qsub_qsub_summer_sm_uplow_lands.sh
executable file
·63 lines (56 loc) · 2.04 KB
/
qsub_qsub_summer_sm_uplow_lands.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
#types="ensavg eachgcm"
#basins="cascades california northernrockies southernrockies whites nwinterior coastalnorth coastalsouth missouri lower_colorado great_basin"
basins="coastalnorth nwinterior coastalsouth missouri lower_colorado great_basin"
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"
#seasons="mam jja"
types="eachgcm"
#basins="coastalnorth"
#models="IPSL-CM5A-MR"
#scenarios="rcp45"
seasons="mam"
################################ SET VARIABLE ########################
## variables: TotalSoilMoist,pr,tasmin,tasmax
variable="pr"
######################################################################
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_summer_sm_uplow_lands.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
if [ "$variable" = "pr" ] || [ "$variable" = "tasmax" ] || [ "$variable" = "tasmin" ]
then
for season in $seasons
do
echo "processing $type $variable $basin $model $scenario $season"
qsub -v type=$type,variable=$variable,basin=$basin,model=$model,scenario=$scenario,season=$season qsub_summer_uplowlands_gcms.sh
done
else
echo "processing $type $variable $basin $model $scenario"
qsub -v type=$type,variable=$variable,basin=$basin,model=$model,scenario=$scenario qsub_summer_uplowlands_gcms.sh
fi
done
done
done
fi
done