From 253c4eaa670b6b4e498a94d483a06d162b2c9c38 Mon Sep 17 00:00:00 2001
From: Chuck Daniels <chuck@developmentseed.org>
Date: Tue, 15 Apr 2025 17:03:05 -0400
Subject: [PATCH] Call new scripts

---
 build.sh |  2 ++
 run.sh   | 10 ++++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/build.sh b/build.sh
index e25c16e..75d8632 100644
--- a/build.sh
+++ b/build.sh
@@ -3,3 +3,5 @@ set -euo pipefail
 
 # Install maap-py so we can use MAAP Secrets in run.sh
 conda run --no-capture-output --name mytobac python -m pip install maap-py
+
+wget https://www.hdfeos.org/software/h4cflib/bin/linux/v1.4/CentOS7/h4tonccf_nc4 -O "${HOME}/local/bin/h4tonccr_nc4"
diff --git a/run.sh b/run.sh
index c693d72..2740ed7 100644
--- a/run.sh
+++ b/run.sh
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -euo pipefail
+
 readarray -d " " -t credentials <<<"$(
     conda run --no-capture-output --name mytobac python -c '
 from maap.maap import MAAP
@@ -15,8 +17,12 @@ EARTHDATA_PASSWORD=$(echo -e "${credentials[1]}" | tr -d '[:space:]')
 export EARTHDATA_USERNAME
 export EARTHDATA_PASSWORD
 
-outputdir="${PWD}/output"
+# All of the scripts below will use AOS_WORKING_DIR as the root output directory.
+AOS_WORKING_DIR="${PWD}/output"
+export AOS_WORKING_DIR
 
 analysis_date=$1
 
-conda run --no-capture-output --name mytobac python /root/aos_test/src/Tracking_Paper_Plots-Lorenzo-aws.py "${analysis_date}"
+conda run --no-capture-output --name mytobac python /root/aos_test/src/acquire_and_convert_calipso.py "${analysis_date}"
+conda run --no-capture-output --name mytobac python /root/aos_test/src/acquire_goes.py "${analysis_date}"
+conda run --no-capture-output --name mytobac python /root/aos_test/src/process_object_tracking.py "${analysis_date}"
-- 
GitLab