forked from petres/energy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.sh
executable file
·35 lines (26 loc) · 887 Bytes
/
update.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
#!/usr/bin/env bash
# - WRITE TIME -----------------------------------------------------------------
echo `date -Iseconds` > web/data/update.txt
# - UPDATE DATA ----------------------------------------------------------------
cd prep
# - TEMP/HEATING DAYS
python3 load/era5/downloadExtractFull.py
Rscript calc/hdd.r
Rscript calc/prediction-gas-consumption/linearModel1.r
# - GAS
# Obsolete, gas consumption is now obtained from AGGM
# Rscript load/econtrol-gas-consumption.r
Rscript load/aggm/gas-consumption.r
Rscript load/gie/detailed.r
# - ELECTRICITY
Rscript load/entsoe/load.r
Rscript load/entsoe/load-int.r
Rscript load/entsoe/generation.r
Rscript load/entsoe/generation-hourly.r
Rscript load/entsoe/generation-facets.r
Rscript load/entsoe/generation-gas.r
cd ..
# - UPLOAD DATA ----------------------------------------------------------------
cd web
./sync-data.sh
cd ..