Skip to content

Commit c7a56c5

Browse files
committed
Update L1A test script
1 parent 62fb1db commit c7a56c5

File tree

8 files changed

+20
-72
lines changed

8 files changed

+20
-72
lines changed

cwl/l1a_package.cwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ $graph:
6666

6767
requirements:
6868
DockerRequirement:
69-
dockerPull: unity-sds/sounder_sips_l1a_pge:r0.1.0
69+
dockerPull: unity-ads/sounder_sips_l1a_pge:r0.1.0
7070

7171
arguments: [
7272
"$(runtime.outdir)/processed_notebook.ipynb",

install/build_common.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ src_dir=$1
1313

1414
if [ -z "$src_dir" ]; then
1515
usage
16+
exit 1
1617
fi
1718

1819
# PGE common directories

test/common/copy_l1a_input.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

test/common/copy_l1b_input.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

test/launch_l1a_jupyter.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

test/launch_l1b_jupyter.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

test/run_l1a_test.sh

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
11
#!/bin/bash
22

3+
usage () {
4+
echo "Usage:"
5+
echo "$0 <l0_file_directory>"
6+
exit 1
7+
}
8+
9+
l0_in_dir=$1
10+
11+
if [ -z "$l0_in_dir" ]; then
12+
usage
13+
exit 1
14+
fi
15+
316
# Source common variables
4-
source $(dirname $0)/common/setup_env.sh $(dirname $0)
17+
source $(dirname $0)/setup_env.sh $(dirname $0)
518

619
# Copy input L0 files from SPSS source tree
7-
. $(dirname $0)/common/copy_l1a_input.sh
20+
cp -av $l0_in_dir/* $PGE_IN_DIR
821

922
cwl_path=$(realpath "$(dirname $0)"/../cwl)
1023

@@ -20,6 +33,6 @@ cwltool \
2033
--static_dir ${PGE_STATIC_DIR} \
2134
--start_datetime $(grep start_datetime ${cwl_path}/l1a_package.yml | awk '{print $2}' | sed 's/\"//g') \
2235
--end_datetime $(grep end_datetime ${cwl_path}/l1a_package.yml | awk '{print $2}' | sed 's/\"//g') \
23-
$* |& tee ${PGE_OUT_DIR}/cwltool.log
36+
|& tee ${PGE_OUT_DIR}/cwltool.log
2437

2538
echo "Output available at: $PGE_OUT_DIR"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ if [ -z "$use_temp" ]; then
4646
fi
4747

4848
# Include variables from .env file so we have $DOCKER_TAG available
49-
env_file=$(realpath $base_dir/../../.env)
49+
env_file=$(realpath $base_dir/../.env)
5050
. $env_file
5151

5252
# Find static files location
53-
lcl_static_dir=$(realpath $base_dir/../../static)
53+
lcl_static_dir=$(realpath $base_dir/../static)
5454
if [ -z "$PGE_STATIC_DIR" ] && [ -e "$lcl_static_dir" ]; then
5555
PGE_STATIC_DIR=$lcl_static_dir
5656
else

0 commit comments

Comments
 (0)