-
Notifications
You must be signed in to change notification settings - Fork 0
/
updateIEOOS.sh
executable file
·51 lines (40 loc) · 1.34 KB
/
updateIEOOS.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
#! /bin/zsh
source $HOME/.zshrc
source $HOME/.env
## Settings based on computer
strval=$(uname -a)
if [[ $strval == *EemmMBP* ]];
then
analisisDir=$HOME/Dropbox/Oceanografia/Analisis/IEOOSWebPAge
pythonDir=$HOME/miniconda3/envs/ocean/bin/python
fi
if [[ $strval == *rossby* ]];
then
analisisDir=$HOME/Analisis/IEOOSWebPage
pythonDir=/opt/conda/envs/ocean/bin/python
fi
/bin/rm $analisisDir/updateSSTGlobal.log
/bin/touch $analisisDir/updateSSTGlobal.log
printf ">>>> Updating IEOOSWeb page \n"
printf " > $strval\n"
#------------------------------------
#Inicio
#------------------------------------
printf " > Directorio $analisisDir \n"
printf " > Download data from current year SSTs \n"
$pythonDir $analisisDir/downloadData.py
printf " > Update data SSTs \n"
/bin/rm $analisisDir/data/sst*.nc
$pythonDir $analisisDir/analysisData.py
printf " > Update data SSTs demarcaciones\n"
$pythonDir $analisisDir/analysisDataiDemarcaciones.py
printf " > Plots SSTs \n"
/bin/rm $analisisDir/images/*.png
$pythonDir $analisisDir/plotsTimeSeries.py
printf " > Plots Mapa anomalia \n"
$pythonDir $analisisDir/plotsMapAnomalies.py
$pythonDir $analisisDir/plotsMapAnomaliesDemarcaciones.py
printf " > Plots comparacionHS \n"
$pythonDir $analisisDir/plotsComparaHemispheres.py
printf " > Upload Plots \n"
$pythonDir $analisisDir/uploadImages.py