-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paths_run_py_mv_plotting_deode.sh
executable file
·85 lines (66 loc) · 2.21 KB
/
s_run_py_mv_plotting_deode.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/bin/bash
# change here to submit with sbatch
# mem > 8000 can be necessary for high reslution domains
##SBATCH --job-name=py_mv_plotting
##SBATCH --qos=nf
##SBATCH --time=00:30:00
##SBATCH --nodes=1
##SBATCH --ntasks=1
##SBATCH --mem=12000
module load python3/3.8.8-01 #3.10.10-01
module load ecmwf-toolbox/2021.08.3.0 #2023.04.1.0
# ecType: needed to identify location of grib files
# ecType: ec, ectmp --> search in 'ec:/'+userId+'/deode'
# ecType: none --> search in '/ec/res4/scratch/'+userId+'/deode'
ecType=none
# userId: needed to identify location of grib files
# your user id on atos; otherwise specify other user id
userId=miag
# List name of experiment and the corresponding domain
# necessary to pick up location and grib file name
#expNames=(arome_2500 arome_1500 arome_750 harmonie_DK_2500 harmonie_DK_1500 harmonie_DK_750)
expNames=(DK1500_20190614)
#domNames=(DK_300x300_2500m DK_500x500_1500m DK_1000x1000_750m DK_300x300_2500m DK_500x500_1500m DK_1000x1000_750m)
domNames=(DK_500x500_1500m)
# List of AN times
hours=(00)
# --> Adjust dates/time (YEAR, MONTH, DAY, FC STEP) in loops below
# Before running, check/configure the yml file for your plotting
myYmlFile=py_mv_config.yml
# name of python script to run
myPyFile=py_mv_plotting_deode.py
#######################################
nE=${#expNames[@]}
nHH=${#hours[@]}
# Loop over experimets
for (( i=0; i<${nE}; i++ ));
do
expID=${expNames[$i]}
domID=${domNames[$i]}
# Set --> YEAR
for YYYY in {2019..2019}; do
# Set --> MONTH
for MM in {06..06}; do
# Set --> DAY
for DD in {14..14}; do
# Loop over AN times
for (( j=0; j<${nHH}; j++ ));
do
anHH=${hours[$j]}
if [[ ${anHH} == "06" ]] || [[ ${anHH} == "18" ]] ; then
# Set --> FC STEP
for fcHHH in {012..020}; do
python3 ${myPyFile} $YYYY $MM $DD $anHH $fcHHH $expID $ecType $domID $userId $myYmlFile
done
fi
if [[ ${anHH} == "00" ]] || [[ ${anHH} == "12" ]] ; then
# Set --> FC STEP
for fcHHH in {012..020}; do
python3 ${myPyFile} $YYYY $MM $DD $anHH $fcHHH $expID $ecType $domID $userId $myYmlFile
done
fi
done #AN
done #DAY
done #MONTH
done #YEAR
done # EXP