Skip to content
Snippets Groups Projects
run.sh 626 B
source activate osgeo-env

# Get current location of build script
basedir=$( cd "$(dirname "$0")" ; pwd -P )

# Create output directory to store outputs.
# The name is output as required by the DPS.
# Note how we dont provide an absolute path
# but instead a relative one as the DPS creates
# a temp working directory for our code.

mkdir -p output

# INPUT_FILES
L1B_URL=$1
L2A_URL=$2 # e.g. GEDI01_B or GEDI02_A

# Call the script using the absolute paths
# Any output written to the stdout and stderr streams will be automatically captured and placed in the output dir
python ${basedir}/main.py ${L1B_URL} ${L2A_URL} output