forked from johannesro/waveverification
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwaveverification_lastmonth.job
More file actions
52 lines (37 loc) · 1.14 KB
/
waveverification_lastmonth.job
File metadata and controls
52 lines (37 loc) · 1.14 KB
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
#!/bin/bash -f
#$ -N waveverif_lm
#$ -l h_rt=10:00:00
#$ -S /bin/bash
#$ -pe mpi 1
#$ -l h_vmem=1000M
#$ -q ded-parallelx.q
#$ -M johannesro@met.no
#$ -m abe
#$ -o /lustre/storeA/project/fou/hi/waveverification/logs/
#$ -cwd
#$ -j y
# ---------------------------
echo "Got $NSLOTS slots."
#export R_LIBS=/modules/trusty/R/3.2.1/lib/R
# get current month
printf -v year %2.2i `date +%Y`
printf -v month %2.2i `date +%m`
# calculate which is the previous month:
lmonth=`date -d "${year}/${month}/01-1 days" +"%m"`
lyear=`date -d "${year}/${month}/01-1 days" +"%Y"`
echo waveverification for ${lyear} ${lmonth}
cd /home/johannesro/waveverification
# gather data
./collectdata.py ${lyear} ${lmonth} > /home/johannesro/waveverification/collectdata_lastmonth.log
# make plots
./validate.py ${lyear} ${lmonth}
# make quarterly Arc-MFC report file
#./quarterly_arcmfc_report.py ${lyear} ${lmonth}
# update webpage
cd /lustre/storeA/project/fou/hi/waveverification/website
./makepage.sh ${lyear} ${lmonth}
./makepage_DD.sh ${lyear} ${lmonth}
./makeindex.sh ${lyear} ${lmonth}
# upload webpage
cd /lustre/storeA/project/fou/hi/waveverification
./upload.sh