From 54ab26b58156ba8ac2ad39d1cda1e6c5e8445eb6 Mon Sep 17 00:00:00 2001
From: "Daniel.Frisinghelli" <daniel.frisinghelli@eurac.edu>
Date: Tue, 13 Jul 2021 14:43:04 +0000
Subject: [PATCH] Update bash script with new paths.

---
 Scripts/preprocess_CORDEX.sh | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/Scripts/preprocess_CORDEX.sh b/Scripts/preprocess_CORDEX.sh
index f39aa96..13cf2f9 100644
--- a/Scripts/preprocess_CORDEX.sh
+++ b/Scripts/preprocess_CORDEX.sh
@@ -1,5 +1,11 @@
 #!/bin/bash
 
+# activate conda environment
+conda activate climax
+
+# move to project directory
+cd ~/git/climax
+
 # source path: input data
 SOURCE_PATH='/mnt/CEPH_PROJECTS/SCENARIO/CLIMATEDATA/'
 
@@ -17,10 +23,10 @@ PR_INVENTORY='/mnt/CEPH_PROJECTS/FACT_CLIMAX/CORDEX/Inventory/pr/pr_inventory_se
 # preprocess EuroCordex simulations
 
 # tasmin
-time python climax/main/preprocess_CORDEX.py $TARGET_GRID $SOURCE_PATH $TARGET_PATH -f $TASMIN_INVENTORY -m 'bilinear' -rm -a -o
+time python climax/main/preprocess/preprocess_CORDEX.py $TARGET_GRID $SOURCE_PATH $TARGET_PATH -f $TASMIN_INVENTORY -m 'bilinear' -rm -a -o
 
 # tasmax
-time python climax/main/preprocess_CORDEX.py $TARGET_GRID $SOURCE_PATH $TARGET_PATH -f $TASMAX_INVENTORY -m 'bilinear' -rm -a -o
+time python climax/main/preprocess/preprocess_CORDEX.py $TARGET_GRID $SOURCE_PATH $TARGET_PATH -f $TASMAX_INVENTORY -m 'bilinear' -rm -a -o
 
 # pr
-time python climax/main/preprocess_CORDEX.py $TARGET_GRID $SOURCE_PATH $TARGET_PATH -f $PR_INVENTORY -m 'bilinear' -rm -a -o
\ No newline at end of file
+time python climax/main/preprocess/preprocess_CORDEX.py $TARGET_GRID $SOURCE_PATH $TARGET_PATH -f $PR_INVENTORY -m 'bilinear' -rm -a -o
-- 
GitLab