-
Notifications
You must be signed in to change notification settings - Fork 0
/
experiment_dirs
executable file
·76 lines (65 loc) · 2 KB
/
experiment_dirs
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/bash
EXPT_DIRS=()
for group in $*; do
case $group in
"ik11")
ROOT="/g/data/ik11"
WOA18="${ROOT}/observations/woa18"
EXPT_DIRS+=($WOA18)
OUTPUTS="${ROOT}/outputs"
for d in $(find $OUTPUTS -mindepth 2 -maxdepth 2 -type d)
do
EXPT_DIRS+=($d)
done
JRA55="${ROOT}/inputs/JRA-55"
JRA55_do="${JRA55}/MRI-JRA55-do"
for d in ${JRA55_do}/*
do
EXPT_DIRS+=($d)
done
JRA55_RYF="${JRA55}/RYF/indexing"
for d in ${JRA55_RYF}/*
do
EXPT_DIRS+=($d)
done
;;
"hh5")
GMD_PAPER="/g/data/hh5/tmp/cosima"
for d in access-om2/1deg_jra55v13_iaf_spinup1_B1 access-om2-025/025deg_jra55v13_iaf_gmredi6 access-om2-01/01deg_jra55v13_iaf
do
d=${GMD_PAPER}/${d}
EXPT_DIRS+=($d)
done
;;
"cj50")
CJ50="/g/data/cj50/access-om2"
CJ50_CF="${CJ50}/cf-compliant"
for d in $(find ${CJ50_CF} -mindepth 3 -maxdepth 3 -type d)
do
EXPT_DIRS+=($d)
done
CJ50_RAW="${CJ50}/raw-output"
for d in $(find ${CJ50_RAW} -mindepth 2 -maxdepth 2 -type d)
do
EXPT_DIRS+=($d)
done
;;
"jk72")
ROOT="/g/data/jk72/pas561/access-om2/"
for d in 025deg_jra55_iaf_omip2_cycle6_ext 025deg_jra55_iaf_omip2_cycle6_14to17 025deg_jra55_iaf_omip2_cycle6_78to08
do
d=${ROOT}/${d}
EXPT_DIRS+=($d)
done
;;
*)
echo "Error: unknown group $group"
exit 1
;;
esac
done
EXCLUSIONS=(/g/data/ik11/outputs/access-om2-01/basal_melt_outputs)
for exclude in ${EXCLUSIONS[@]}; do
EXPT_DIRS=("${EXPT_DIRS[@]/$exclude}")
done
echo "${EXPT_DIRS[@]}"