From 60f7ef36ae5114469d4792d4c9d969addc14b6bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Wehrl=C3=A9?= Date: Wed, 14 Apr 2021 22:19:00 +0200 Subject: [PATCH] Activate virtual environment --- S3_NRT.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/S3_NRT.sh b/S3_NRT.sh index 39c00ce..7685705 100644 --- a/S3_NRT.sh +++ b/S3_NRT.sh @@ -12,6 +12,9 @@ export PATH=/path/to/snap/bin:${PATH} # activate SICE anaconda virtual environment . /path/to/anaconda/envs/SICE/bin/activate +source /path/to/anaconda/etc/profile.d/conda.sh +conda activate SICE + set -o errexit set -o nounset set -o pipefail @@ -53,7 +56,7 @@ for region in "${regions[@]}"; do -f ${region} -u -p # SNAP: Reproject, calculate reflectance, extract bands, etc. - ./S3_proc.sh -i ${SEN3_source}/${year}/${date} -o ${proc_root}/${date} -X S3.xml -t + ./S3_proc.sh -i ${SEN3_source}/${year}/${date} -o ${proc_root}/${date} -X S3_fast.xml -t # Run the Simple Cloud Detection Algorithm (SCDA) python ./SCDA.py ${proc_root}/${date}