diff --git a/build.sh b/build.sh index e25c16e59c09d5f0de31353794a1e5e491c17b78..75d86329bae08645305195dd2bdff4044ef4001d 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 c693d725a786a598eb28864e93e5c78d3035835e..2740ed73365d06719d92155c008d5b0d993c8811 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}"