eval "$(pixi shell-hook --change-ps1 false)"6 Combined Hotspots and Materials Product
6.1 Introduction
The following sections demonstrate that the HEATWISE Combined Hotspots and Materials Software follows the OGC Best Practice for Earth Observation Application Package.
The order of demonstration is deliberately different from that given in the best practice document. This is done to make the demonstration easy to follow and group requirements that can be shown together. An effort is made to keep the requirements in order as much as possible to make it easy to find a specific requirement.
The demonstration proceeds in the following steps:
- Execute the software as docker container and as CWL document (the EOAP)
- Show that STAC inputs and outputs are handled by the application as required
- Show that the CWL document is structured as required
- Show that STAC inputs and outputs are declared in the CWL as required
After each step, the requirements shown are listed.
Chapter 2 contains an overview of all requirements in order and how they are demonstrated in this document. It furthermore shows all utility scripts used in this demonstration. For brevity, the content of utility scripts is only shown in the requirements overview and not in each demonstration.
6.2 Preparation
Activate the pixi environment to make validation tools and scripts available.
Set environment variables to software, cwl documents, inputs and outputs.
set -o pipefail
set -x
SOFTWARE_ROOT="$PIXI_PROJECT_ROOT"/software/lstm-wp3-products/products/ua
CWL_PATH="$PIXI_PROJECT_ROOT"/application-packages/heatwise-combined-hotspots-materials.cwl
INPUT_PATH="$PIXI_PROJECT_ROOT"/inputs/combined_hotspots_materials
DOCKER_IMAGE_ID=ghcr.io/esa-heatwise/lstm-wp3-products-ua:1.0.0
OUTPUT_PATH="$PIXI_PROJECT_ROOT"/outputs/combined_hotspots_materials/
ls -ltrAh --color=never "$SOFTWARE_ROOT"
set +x+ SOFTWARE_ROOT=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/software/lstm-wp3-products/products/ua
+ CWL_PATH=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/application-packages/heatwise-combined-hotspots-materials.cwl
+ INPUT_PATH=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/inputs/combined_hotspots_materials
+ DOCKER_IMAGE_ID=ghcr.io/esa-heatwise/lstm-wp3-products-ua:1.0.0
+ OUTPUT_PATH=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/
+ ls --color=auto -ltrAh --color=never /home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/software/lstm-wp3-products/products/ua
total 28K
-rw-r--r-- 1 runner runner 1.1K Nov 27 10:37 README.md
-rw-r--r-- 1 runner runner 136 Nov 27 10:37 environment.yml
-rwxr-xr-x 1 runner runner 257 Nov 27 10:37 build.sh
drwxr-xr-x 5 runner runner 4.0K Nov 27 10:37 inputs
-rw-r--r-- 1 runner runner 7.2K Nov 27 10:37 ua_attrs.ipynb
-rw-r--r-- 1 runner runner 154 Nov 27 10:37 run.sh
+ set +x
6.3 Running the software
The first set of requirements is concerned with how the software is executed. It shall be
- Runnable as a non-interactive script
- Bundled in (Docker) container
- Executable as a CWL Workflow containing at least one CWL CommandLineTool
6.3.1 Running as a docker container
We can run the (dockerized) software directly, without using the CWL machinery with docker run:
mkdir -p "$OUTPUT_PATH"
docker run --rm --user "$(id -u):$(id -g)" --workdir=/home/mambauser/wd -v $SOFTWARE_ROOT/data:/home/mambauser/data -v $SOFTWARE_ROOT/inputs:/home/mambauser/wd/inputs -v "$OUTPUT_PATH":/home/mambauser/wd $DOCKER_IMAGE_ID || { FAIL_REQ_1=1; FAIL_REQ_2=1; }
ls -ltrAh --color=never $OUTPUT_PATHINFO:pyogrio._io:Created 769 records
CWD /home/mambauser/wd
total 12K
drwxr-xr-x 2 root root 4.0K Nov 27 10:43 inputs
drwxr-xr-x 2 runner runner 4.0K Nov 27 10:43 datasets_saved
-rw-r--r-- 1 runner runner 367 Nov 27 10:43 catalog.json
The image should not only be available locally, but also in a container registry.
check-container-registry.sh $DOCKER_IMAGE_ID || FAIL_REQ_3=1SUCCESS: Image ghcr.io/esa-heatwise/lstm-wp3-products-ua:1.0.0 found on registry
6.3.1.1 Requirements Validated
req/app/cmd-line (Requirement 1)
The Application SHALL be a non-interactive executable as a command-line application.
req/app/container (Requirement 2)
The environment, libraries, binaries, executable and configuration files necessary to execute the Application SHALL be bundled in a container image.
req/app/registry (Requirement 3)
The Application container image SHALL be accessible in a container registry.
6.3.2 Running as an EOAP
First, we validate that the CWL document is valid.
cwltool --disable-color --validate "$CWL_PATH" | catINFO /home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/.pixi/envs/dev/bin/cwltool 3.2.20260413085819
INFO Resolved '/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/application-packages/heatwise-combined-hotspots-materials.cwl' to 'file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/application-packages/heatwise-combined-hotspots-materials.cwl'
WARNING:root:File contains $graph of multiple objects and no default process (#main). Validating all objects:
file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/application-packages/heatwise-combined-hotspots-materials.cwl#heatwise_combined is valid CWL.
file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/application-packages/heatwise-combined-hotspots-materials.cwl#xce_script is valid CWL.
/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/application-packages/heatwise-combined-hotspots-materials.cwl is valid CWL.
The CWL should contain a Workflow and at least one CommandLineTool object. We inspect the classes in the CWL graph to make sure.
show-cwl-graph-classes.sh "$CWL_PATH"class: Workflow
id: heatwise_combined
---
class: CommandLineTool
id: xce_script
The EOAP can be executed from its CWL description with cwltool.
cwltool \
--disable-color \
--outdir "$OUTPUT_PATH/cwlruns" \
"$CWL_PATH"#heatwise_combined \
\
--urban_atlas $INPUT_PATH/urban_atlas \
--hcspots $INPUT_PATH/hcspots \
--material_labels $INPUT_PATH/material_labels \
|| FAIL_REQ_7=1INFO /home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/.pixi/envs/dev/bin/cwltool 3.2.20260413085819
INFO Resolved '/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/application-packages/heatwise-combined-hotspots-materials.cwl#heatwise_combined' to 'file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/application-packages/heatwise-combined-hotspots-materials.cwl#heatwise_combined'
INFO [workflow ] start
INFO [workflow ] starting step run_script
INFO [step run_script] start
INFO [job run_script] /tmp/z8s8p7zv$ docker \
run \
-i \
--mount=type=bind,source=/tmp/z8s8p7zv,target=/BzRXmB \
--mount=type=bind,source=/tmp/ruoy1kdl,target=/tmp \
--mount=type=bind,source=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/inputs/combined_hotspots_materials/hcspots,target=/var/lib/cwl/stg2fd33655-11b9-47ba-91e7-f0de2a1ce511/hcspots,readonly \
--mount=type=bind,source=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/inputs/combined_hotspots_materials/material_labels,target=/var/lib/cwl/stgbe6f9ba8-c0d3-4616-b7dd-a98ea3243293/material_labels,readonly \
--mount=type=bind,source=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/inputs/combined_hotspots_materials/urban_atlas,target=/var/lib/cwl/stgd3cd385a-549f-48db-91c9-e15451ef9573/urban_atlas,readonly \
--workdir=/BzRXmB \
--read-only=true \
--user=1001:1001 \
--rm \
--cidfile=/tmp/c_7i2hp2/20261127104353-970514.cid \
--env=TMPDIR=/tmp \
--env=HOME=/BzRXmB \
ghcr.io/esa-heatwise/lstm-wp3-products-ua:1.0.0 \
/usr/local/bin/_entrypoint.sh \
python \
/home/mambauser/execute.py \
--batch \
--eoap \
--asset-id-hcspots \
hcspots \
--asset-id-mat \
mat \
--asset-id-ua \
ua \
--band-hotspot \
2 \
--hcspots \
/var/lib/cwl/stg2fd33655-11b9-47ba-91e7-f0de2a1ce511/hcspots \
--material-labels \
/var/lib/cwl/stgbe6f9ba8-c0d3-4616-b7dd-a98ea3243293/material_labels \
--material-legend \
asphalt,concrete,terracotta,vegetation,metal \
--material-ndv \
0 \
--savename \
hw_combined_sepolia.gpkg \
--urban-atlas \
/var/lib/cwl/stgd3cd385a-549f-48db-91c9-e15451ef9573/urban_atlas
INFO:pyogrio._io:Created 769 records
INFO:util:Saving ua to /BzRXmB/ua...
INFO:util:Saving df to /BzRXmB/df...
CWD /BzRXmB
INFO [job run_script] Max memory used: 1118MiB
INFO [job run_script] completed success
INFO [step run_script] completed success
INFO [workflow ] completed success
{
"stac_catalog": {
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv",
"basename": "z8s8p7zv",
"class": "Directory",
"listing": [
{
"class": "Directory",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv/ua",
"basename": "ua",
"listing": [
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv/ua/ua.csv",
"basename": "ua.csv",
"size": 1213836,
"checksum": "sha1$1c2b1261eec3a5f9f9fdf768ed670951ae836802",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv/ua/ua.csv"
}
],
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv/ua"
},
{
"class": "Directory",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv/df",
"basename": "df",
"listing": [
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv/df/df.csv",
"basename": "df.csv",
"size": 10037,
"checksum": "sha1$6cb85589e3aef34533221aeb7b421438ad686a43",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv/df/df.csv"
}
],
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv/df"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv/catalog.json",
"basename": "catalog.json",
"size": 367,
"checksum": "sha1$04d3a7537257da5e802e0875ee13fe2a21bdc435",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv/catalog.json"
},
{
"class": "Directory",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv/datasets_saved",
"basename": "datasets_saved",
"listing": [
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv/datasets_saved/hw_combined_sepolia.gpkg",
"basename": "hw_combined_sepolia.gpkg",
"size": 839680,
"checksum": "sha1$e3a3b4e81ca5db2fd2861f89344f1b343f4b59a0",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv/datasets_saved/hw_combined_sepolia.gpkg"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv/datasets_saved/urban_atlas_with_hotspots.json",
"basename": "urban_atlas_with_hotspots.json",
"size": 1654956,
"checksum": "sha1$b000e10df3350e47fb3848b59bfb3c58624fc8c0",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv/datasets_saved/urban_atlas_with_hotspots.json"
}
],
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv/datasets_saved"
}
],
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv"
}
}INFO Final process status is success
Cwltool creates a new output directory with a random name when it is run. We save the last run in a variable to access it later.
CWLRUN_PATH=$(find-newest-directory-entry.sh "$OUTPUT_PATH/cwlruns")
echo "Path to last cwl run: $CWLRUN_PATH"Path to last cwl run: /home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv
6.3.2.1 Requirements Validated
req/app-pck/cwl (Requirement 7)
The Application Package SHALL be a valid CWL document with a “Workflow” class and one or more “CommandLineTool” classes.
6.3.2.2 EOAP Output
tree -n $CWLRUN_PATH || :/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv
├── catalog.json
├── datasets_saved
│ ├── hw_combined_sepolia.gpkg
│ └── urban_atlas_with_hotspots.json
├── df
│ └── df.csv
└── ua
└── ua.csv
4 directories, 5 files
python -c "import geopandas as gpd; import matplotlib.pyplot as plt; gpd.read_file(\"$CWLRUN_PATH/datasets_saved/hw_combined_sepolia.gpkg\").plot(); plt.savefig('hw_combined_sepolia.png', dpi=300, bbox_inches='tight')" || :
6.4 STAC input / output
6.4.1 Inputs
The EO Products of the input are provided as directories with a catalog.json describing the products each:
ls -lAhX --color=never $INPUT_PATH/*/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/inputs/combined_hotspots_materials/hcspots:
total 16K
-rw-r--r-- 1 runner runner 338 Nov 27 10:37 catalog.json
-rw-r--r-- 1 runner runner 505 Nov 27 10:37 hcspots_item.json
-rw-r--r-- 1 runner runner 7.7K Nov 27 10:37 Sepolia_Thermopolis_LST-N_Clusters.tif
/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/inputs/combined_hotspots_materials/material_labels:
total 12K
-rw-r--r-- 1 runner runner 326 Nov 27 10:37 catalog.json
-rw-r--r-- 1 runner runner 592 Nov 27 10:37 mat_item.json
-rw-r--r-- 1 runner runner 2.4K Nov 27 10:37 Sepolia_material_label_dominant.tif
/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/inputs/combined_hotspots_materials/urban_atlas:
total 828K
-rw-r--r-- 1 runner runner 820K Nov 27 10:37 UA2021_Sepolia.gpkg
-rw-r--r-- 1 runner runner 323 Nov 27 10:37 catalog.json
-rw-r--r-- 1 runner runner 575 Nov 27 10:37 ua_item.json
These same inputs are classed as Directory in the workflow:
extract-directory-inputs-from.sh Workflow "$CWL_PATH" || FAIL_REQ_4=1Running
inputs_with_directory_type:
- label: hcspots
doc: hcspots
type: Directory
default:
class: Directory
location: null
- label: material_labels
doc: material_labels
type: Directory
default:
class: Directory
location: null
- label: urban_atlas
doc: urban_atlas
type: Directory
default:
class: Directory
location: null
6.4.2 Outputs
The output contains a single catalog.json and item, describing the output. Using the recursive validation, both the catalog and item are confirmed to be valid STAC.
(stac-validator validate --recursive $CWLRUN_PATH/catalog.json | cat) || FAIL_REQ_5=1
Thanks for using STAC version 1.1.0!
[
{
"version": "1.1.0",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv/catalog.json",
"schema": [
"https://schemas.stacspec.org/v1.1.0/catalog-spec/json-schema/catalog.json"
],
"valid_stac": true,
"asset_type": "CATALOG",
"validation_method": "recursive",
"validator_engine": "jsonschema"
},
{
"version": "1.1.0",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/combined_hotspots_materials/cwlruns/z8s8p7zv/./datasets_saved/urban_atlas_with_hotspots.json",
"schema": [
"https://schemas.stacspec.org/v1.1.0/item-spec/json-schema/item.json"
],
"valid_stac": true,
"asset_type": "ITEM",
"validation_method": "recursive",
"validator_engine": "jsonschema"
}
]
-- Recursive Validation Summary:
Stac objects passed: 2/2 (100.0%)
Breakdown by type:
Catalog: 1/1 (100.0%)
Item: 1/1 (100.0%)
Validation completed in 4.09s
The EOAP best practice mandates that the item contains at least geometry, bbox and datetime keys.
extract-output-keys-from-stac-item.sh $CWLRUN_PATH/datasets_saved/urban_atlas_with_hotspots.json || FAIL_REQ_6=1geometry:
type: MultiPolygon
coordinates: '[...truncated...]'
bbox:
- 23.69854677617415
- 37.9856945053099
- 23.728626346125544
- 38.014987032184855
properties:
datetime: '2026-11-27T10:43:57.701156Z'
start_datetime: null
end_datetime: null
Required keys present: true
6.4.3 Requirements Validated
req/app/stac-input (Requirement 4)
An Application input argument that requires staged EO product files SHALL be defined as an argument that points to a folder where a STAC Catalog, named catalog.json, contains a list of one or more STAC Items and associated STAC Assets referencing the files.
req/app/stac-out (Requirement 5)
An Application that creates EO product files to be stage-out SHALL generate a valid STAC Catalog, named catalog.json, and include the STAC Item(s) and corresponding STAC Assets pointing to the results of the processing.
rec/app/stac-out-metadata (Requirement 6)
The STAC Catalog created by the Application SHALL include metadata elements for each STAC Item with at least their spatial (geometry, box) and temporal (datetime) properties.
6.5 CWL
The fields id, baseCommand, inputs, requirements should be present in the CommandLineTool. One of the requirements should be DockerRequirement.
check-commandlinetool-fields.sh "$CWL_PATH" || FAIL_REQ_8=1id: xce_script
baseCommand:
- /usr/local/bin/_entrypoint.sh
- python
- /home/mambauser/execute.py
requirements:
DockerRequirement:
dockerPull: ghcr.io/esa-heatwise/lstm-wp3-products-ua:1.0.0
Required keys present: true
The fields id, label, and doc should be present in the Workflow.
check-workflow-fields.sh "$CWL_PATH" || FAIL_REQ_9=1id: heatwise_combined
label: xcengine notebook
doc: xcengine notebook
Required keys present: true
Each input of the Workflow should have fields id, label, and doc
check-workflow-input-fields.sh $CWL_PATH || FAIL_REQ_10=1inputs:
- id: asset_id_hcspots
label: asset_id_hcspots
doc: asset_id_hcspots
- id: asset_id_mat
label: asset_id_mat
doc: asset_id_mat
- id: asset_id_ua
label: asset_id_ua
doc: asset_id_ua
- id: band_hotspot
label: band_hotspot
doc: band_hotspot
- id: hcspots
label: hcspots
doc: hcspots
- id: material_labels
label: material_labels
doc: material_labels
- id: material_legend
label: material_legend
doc: material_legend
- id: material_ndv
label: material_ndv
doc: material_ndv
- id: savename
label: savename
doc: savename
- id: urban_atlas
label: urban_atlas
doc: urban_atlas
The CWL document should contain a version:
check-version.sh $CWL_PATH || FAIL_REQ_11=1s:version: 1.0.0
https://schema.org/version: null
Found version: true
6.5.1 Requirements Validated
req/app-pck/clt (Requirement 8)
The Application Package CWL CommandLineTool classes SHALL contain the following elements:
- Identifier (“id”)
- Command line name (“baseCommand”)
- Input parameters (“inputs”)
- Environment requirements (“requirements”)
- Docker information (“DockerRequirement”)
req/app-pck/wf (Requirement 9)
The Application Package CWL Workflow class SHALL contain the following elements:
- Identifier (“id”)
- Title (“label”)
- Abstract (“doc”)
req/app-pck/wf-inputs (Requirement 10)
The Application Package CWL Workflow class “inputs” fields SHALL contain the following elements:
- Identifier (“id”)
- Title (“label”)
- Abstract (“doc”)
req/app-pck/metadata (Requirement 11)
The Application Package CWL Workclass classes SHALL include additional metadata as defined in Table 1
Required in table 1: version
6.6 CWL STAC / IO
Inputs and outputs are staged in and out using STAC catalogs. Each input that is an “EO Product” like a vector or raster dataset is declared as type Directory and is described by a STAC catalog catalog.json and accompanying STAC item(s) placed in that directory.
Outputs are handled in much the same way, the application in the application package is responsible for generating a STAC catalog (also named catalog.json) and stage out all the contents of its working directory together with the STAC metadata describing the outputs.
6.6.1 Inputs
There are inputs of type directory in the CommandLineTool description.
extract-directory-inputs-from.sh CommandLineTool "$CWL_PATH" || FAIL_REQ_12=1Running
inputs_with_directory_type:
- label: hcspots
doc: hcspots
type: Directory
default:
class: Directory
location: null
inputBinding:
prefix: --hcspots
- label: material_labels
doc: material_labels
type: Directory
default:
class: Directory
location: null
inputBinding:
prefix: --material-labels
- label: urban_atlas
doc: urban_atlas
type: Directory
default:
class: Directory
location: null
inputBinding:
prefix: --urban-atlas
There are inputs of type directory in the Workflow description.
extract-directory-inputs-from.sh Workflow "$CWL_PATH" || FAIL_REQ_13=1Running
inputs_with_directory_type:
- label: hcspots
doc: hcspots
type: Directory
default:
class: Directory
location: null
- label: material_labels
doc: material_labels
type: Directory
default:
class: Directory
location: null
- label: urban_atlas
doc: urban_atlas
type: Directory
default:
class: Directory
location: null
6.6.2 Outputs
The CommandLineTool stages out all the contents of the working directory.
extract-commandlinetool-outputs.sh "$CWL_PATH" || FAIL_REQ_14=1results:
type: Directory
outputBinding:
glob: .
Extracts all items from Working directory: true
6.6.3 Requirements validated
req/app-pck-stage-in/clt-stac (Requirement 12)
All input parameters of the CWL ComandLineTool that require the staging of EO products SHALL be of type Directory.
req/app-pck-stage-in/wf-stac (Requirement 13)
Input parameters of the CWL Workflow that require the staging of EO products SHALL be of type Directory.
req/app-pck-stage-out/output-stac (Requirement 14)
The outputs field of the CommandLineTool that requires the stage-out of EO products SHALL retrieve all the files produced in the working directory.
6.7 Summary
for i in {1..14}; do
var="FAIL_REQ_$i"
req=${var#FAIL_}
if [[ "${!var:-}" == "1" ]]; then
#echo "$req: FAILED"
printf '%s\t\033[31mFAILED\033[0m\n' "$req"
else
printf '%s\t\033[32mPASSED\033[0m\n' "$req"
fi
doneREQ_1 PASSED REQ_2 PASSED REQ_3 PASSED REQ_4 PASSED REQ_5 PASSED REQ_6 PASSED REQ_7 PASSED REQ_8 PASSED REQ_9 PASSED REQ_10 PASSED REQ_11 PASSED REQ_12 PASSED REQ_13 PASSED REQ_14 PASSED
The Combined Hotspots and Materials Software software has been shown to be non-interactively executable from the command line and using a CWL runner (cwltool). Furthermore it follows the CWL structure and mandatory fields prescribed by the OGC Best Practice for Earth Observation Application Package (EOAP). Inputs and outputs are processed as CWL Directories and valid STAC metadata is generated for the output. It may therefore be concluded that the software behaves as expected by the EOAP best practice in the example scenario.
No conclusive judgment on the adherence to all requirements listed in Chapter 2 under all valid input conditions can be made without inspection of the source code. The demonstration evaluates the statically available information (the CWL document, and container image) as well as the outputs produced by a single example input dataset. It does not show how the validity and content of the generated output depends on the input dataset. While inputs are shown to be a directory containing STAC metadata, only inspection of the source code can establish whether the STAC is actually processed.
Furthermore, the demonstration purely evaluates the adherence of the software to the interoperability best practice and makes no attempt to judge the scientific validity of the data products produced.