eval "$(pixi shell-hook --change-ps1 false)"8 Class Guided Urban Material Mapping
8.1 Introduction
The following sections demonstrate that the HEATWISE Class-guided Urban Material Mapping 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.
8.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/heatwise-class-guided
CWL_PATH="$PIXI_PROJECT_ROOT"/application-packages/heatwise_class_guided.cwl
INPUT_PATH="$PIXI_PROJECT_ROOT"/inputs/class-guided
DOCKER_IMAGE_ID=ghcr.io/esa-heatwise/heatwise-class-guided:0.3.3
OUTPUT_PATH="$PIXI_PROJECT_ROOT"/outputs/class-guided
ls -ltrAh --color=never "$SOFTWARE_ROOT"
set +x+ SOFTWARE_ROOT=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/software/heatwise-class-guided
+ CWL_PATH=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/application-packages/heatwise_class_guided.cwl
+ INPUT_PATH=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/inputs/class-guided
+ DOCKER_IMAGE_ID=ghcr.io/esa-heatwise/heatwise-class-guided:0.3.3
+ OUTPUT_PATH=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided
+ ls --color=auto -ltrAh --color=never /home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/software/heatwise-class-guided
total 164K
-rw-r--r-- 1 runner runner 668 Nov 27 10:37 .gitignore
-rw-r--r-- 1 runner runner 65 Nov 27 10:37 .gitattributes
-rw-r--r-- 1 runner runner 908 Nov 27 10:37 Dockerfile
-rw-r--r-- 1 runner runner 6.3K Nov 27 10:37 README.md
-rw-r--r-- 1 runner runner 1.1K Nov 27 10:37 LICENSE
-rw-r--r-- 1 runner runner 1.6K Nov 27 10:37 NOTICE.md
-rw-r--r-- 1 runner runner 4.8K Nov 27 10:37 MANIFEST_SHA256.json
-rw-r--r-- 1 runner runner 61 Nov 27 10:37 .dockerignore
-rw-r--r-- 1 runner runner 2.1K Nov 27 10:37 VALIDATION_REPORT.md
-rw-r--r-- 1 runner runner 2.4K Nov 27 10:37 config.json
-rw-r--r-- 1 runner runner 103K Nov 27 10:37 class_guided_processor.py
drwxr-xr-x 4 runner runner 4.0K Nov 27 10:37 examples
-rw-r--r-- 1 runner runner 2.0K Nov 27 10:37 requirements.txt
drwxr-xr-x 7 runner runner 4.0K Nov 27 10:37 .git
+ set +x
8.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
8.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 \
-v "$INPUT_PATH:/data" \
-v "$SOFTWARE_ROOT/examples:/auxdata" \
-v "$OUTPUT_PATH:/results" \
--user "$(id -u):$(id -g)" \
$DOCKER_IMAGE_ID \
python /app/class_guided_processor.py \
--input-catalog /data \
--gusl "/auxdata/resources/GUSL_spectra_by_material_headers.xlsx" \
--output-dir /results/sepolia \
--config "/auxdata/config_sepolia_report.json" \
|| { FAIL_REQ_1=1; FAIL_REQ_2=1; }[INFO] GAPS_UM = [[0.996, 1.9714]]
[INFO] Bandas en gap: 116 / 250
[INFO] finite_frac (sin gaps) -> min=0.0000, median=0.5123, max=0.5123
[INFO] Umbral adaptativo para bandas usables = 0.1025
[INFO] Bandas usables (sin gaps): 124 / 250
[INFO] Bandas excluidas totales: 126
Primeras 10 wl excluidas: [0.4042 0.4126 0.421 0.4294 0.4378 1.0006 1.009 1.0174 1.0258 1.0342]
[INFO] Brightness thresholds base: low=0.19353, high=0.45383
[INFO] Píxeles válidos base: 4794 / 9570
[INFO] NDVI bands -> red target=0.675 selected=0.6730 | nir target=0.846 selected=0.8494
[INFO] NDVI_URBAN_MAX = 0.300
[INFO] Píxeles urbanos tras NDVI: 4578
[INFO] Urban brightness thresholds: low=0.22699, high=0.40420
[INFO] Píxeles urbanos finales: 4440 / 9570
[INFO] Estratos urbanos por brillo: q33=0.31725, q67=0.35039
[INFO] Urban stratum 'dark': 1480 pix
[INFO] Urban stratum 'mid': 1480 pix
[INFO] Urban stratum 'bright': 1480 pix
[INFO] [dark] PCA components usadas: 16
[INFO] [dark] Varianza explicada acumulada: 0.9988
[INFO] [dark] Candidatos PPI-like iniciales: 1000
[INFO] [dark] Candidatos aceptados tras pruning local: 1000
[INFO] [mid] PCA components usadas: 16
[INFO] [mid] Varianza explicada acumulada: 0.9986
[INFO] [mid] Candidatos PPI-like iniciales: 1000
[INFO] [mid] Candidatos aceptados tras pruning local: 1000
[INFO] [bright] PCA components usadas: 16
[INFO] [bright] Varianza explicada acumulada: 0.9982
[INFO] [bright] Candidatos PPI-like iniciales: 1000
[INFO] [bright] Candidatos aceptados tras pruning local: 1000
[INFO] [vegetation] PCA components usadas: 16
[INFO] [vegetation] Varianza explicada acumulada: 0.9995
[INFO] [vegetation] Candidatos PPI-like iniciales: 216
[INFO] [vegetation] Candidatos aceptados tras pruning local: 216
[INFO] [dark] seleccionados tras dedup local: 12 / cuota 12
[INFO] [mid] seleccionados tras dedup local: 12 / cuota 12
[INFO] [bright] seleccionados tras dedup local: 16 / cuota 16
[INFO] Candidatos finales tras fusión global: 247
WARNING:root:FULL provisional fallback for metal: candidate=CAND_028, SAM=4.156 degrees; original winner=concrete; independent validation required.
WARNING:root:MASK3 provisional fallback for metal: candidate=CAND_028, SAM=3.413 degrees; original winner=concrete; independent validation required.
{
"version": "0.3.3",
"status": "success",
"input_sha256": {
"image": "33f916bd1daf39b00bcfc67bb00baacc6bfe99164ba72c69b7a8dcec45ca46d8",
"gusl": "540ed8985f06b447c494895525eb687f07650f6c87baf374373aa0ae36ad2006"
},
"versions": {
"numpy": "2.2.6",
"scipy": "1.15.3",
"pandas": "2.2.3",
"rasterio": "1.4.3",
"scikit-learn": "1.6.1",
"openpyxl": "3.1.5",
"pystac": "1.15.2"
},
"python": "3.11.18 (main, Nov 24 2026, 05:04:59) [GCC 12.2.0]",
"gdal": "3.9.3",
"input_band_count": 250,
"usable_image_bands": 124,
"full_metric_bands": 103,
"mask3_metric_bands": 15,
"endmember_spectral_bands": 124,
"candidate_count": 277,
"final_endmembers": [
"asphalt_road_1",
"asphalt_road_2",
"asphalt_road_3",
"concrete_1",
"concrete_2",
"concrete_3",
"terracota",
"vegetation",
"metal"
],
"missing_target_classes": [],
"selected_bands": 15,
"endmember_selection": "FULL+MASK3",
"endmember_selection_modes": [
"FULL",
"MASK3"
],
"endmembers_by_mode": {
"FULL": [
"asphalt_road_1",
"asphalt_road_2",
"asphalt_road_3",
"concrete_1",
"concrete_2",
"concrete_3",
"terracota",
"vegetation",
"metal"
],
"MASK3": [
"asphalt_road_1",
"asphalt_road_2",
"asphalt_road_3",
"concrete_1",
"concrete_2",
"concrete_3",
"terracota",
"vegetation",
"metal"
]
},
"missing_target_classes_by_mode": {
"FULL": [],
"MASK3": []
},
"fallback_enabled": true,
"fallback_selected_classes": [
"metal"
],
"fallback_unresolved_classes": [],
"fallback_selections": [
{
"class_name": "metal",
"candidate": "CAND_028",
"gusl_match": "Metal_59__BRUSSELS_APEX_GENLIB",
"sam_deg": 4.156002044677734,
"mbdsa": 0.10290340334177017,
"max_accepted_sam_deg": 8.0,
"best_competing_gusl_match": "Concrete_59__BRUSSELS_APEX_GENLIB",
"best_competing_sam_deg": 3.4977002143859863,
"sam_margin_to_best_competitor_deg": -0.658301830291748,
"original_best_target_class": "concrete",
"original_accepted_by_thresholds": true,
"selection_method": "FULL_CLASS_CONDITIONAL_FALLBACK",
"quality_flag": "PROVISIONAL_REQUIRES_INDEPENDENT_VALIDATION"
}
],
"fallback_by_mode": {
"FULL": {
"enabled": true,
"mode": "FULL",
"selection_policy": "MAXIMIZE_RECOVERED_CLASSES_THEN_MINIMIZE_TOTAL_SAM",
"missing_classes_before_fallback": [
"metal"
],
"sam_thresholds_deg": {
"metal": 8.0
},
"reserved_candidate_count": 13,
"selected": [
{
"class_name": "metal",
"candidate": "CAND_028",
"gusl_match": "Metal_59__BRUSSELS_APEX_GENLIB",
"sam_deg": 4.156002044677734,
"mbdsa": 0.10290340334177017,
"max_accepted_sam_deg": 8.0,
"best_competing_gusl_match": "Concrete_59__BRUSSELS_APEX_GENLIB",
"best_competing_sam_deg": 3.4977002143859863,
"sam_margin_to_best_competitor_deg": -0.658301830291748,
"original_best_target_class": "concrete",
"original_accepted_by_thresholds": true,
"selection_method": "FULL_CLASS_CONDITIONAL_FALLBACK",
"quality_flag": "PROVISIONAL_REQUIRES_INDEPENDENT_VALIDATION"
}
],
"unresolved": [],
"provisional_class_identity": true,
"note": "Fallback endmembers are tentative scene signatures; a low SAM does not validate material identity."
},
"MASK3": {
"enabled": true,
"mode": "MASK3",
"selection_policy": "MAXIMIZE_RECOVERED_CLASSES_THEN_MINIMIZE_TOTAL_SAM",
"missing_classes_before_fallback": [
"metal"
],
"sam_thresholds_deg": {
"metal": 8.0
},
"reserved_candidate_count": 15,
"selected": [
{
"class_name": "metal",
"candidate": "CAND_028",
"gusl_match": "Metal_59__BRUSSELS_APEX_GENLIB",
"sam_deg": 3.4125237464904785,
"mbdsa": 0.092609703540802,
"max_accepted_sam_deg": 8.0,
"best_competing_gusl_match": "Concrete_59__BRUSSELS_APEX_GENLIB",
"best_competing_sam_deg": 3.3296163082122803,
"sam_margin_to_best_competitor_deg": -0.08290743827819824,
"original_best_target_class": "concrete",
"original_accepted_by_thresholds": true,
"selection_method": "MASK3_CLASS_CONDITIONAL_FALLBACK",
"quality_flag": "PROVISIONAL_REQUIRES_INDEPENDENT_VALIDATION"
}
],
"unresolved": [],
"provisional_class_identity": true,
"note": "Fallback endmembers are tentative scene signatures; a low SAM does not validate material identity."
}
},
"mask3_matching": {
"source": "auto",
"requested_wavelengths_um": [
0.463,
0.505,
0.5638,
0.6226,
0.7318,
0.7822,
0.8326,
0.8746,
0.9166,
0.9922,
2.059,
2.101,
2.1682,
2.2102,
2.269
],
"actual_wavelengths_um": [
0.463,
0.505,
0.5638,
0.6226,
0.7318,
0.7822,
0.8326,
0.8746,
0.9166,
0.9922,
2.059,
2.101,
2.1682,
2.2102,
2.269
],
"matching_grid_indices_base0": [
2,
7,
14,
21,
34,
40,
46,
51,
56,
65,
76,
81,
89,
94,
101
],
"absolute_deviation_um": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"number_of_matching_bands": 15,
"output_endmember_wavelength_count": 124,
"note": "MASK3 is used for matching/assignment/ranking only; final spectra retain all usable image bands.",
"original_band_indices_base0": [
7,
12,
19,
26,
39,
45,
51,
56,
61,
70,
197,
202,
210,
215,
222
],
"original_band_indices_base1": [
8,
13,
20,
27,
40,
46,
52,
57,
62,
71,
198,
203,
211,
216,
223
]
},
"mask3_reselection": true,
"mask3_selection_does_not_truncate_endmembers": true,
"band_selection_independent": true,
"endmember_spectra_validated": true,
"band_selection_method": "standardized_euclidean_proxy",
"unmixing_executed": false,
"scientific_accuracy_validated": false
}
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/heatwise-class-guided:0.3.3 found on registry
8.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.
8.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_class_guided.cwl' to 'file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/application-packages/heatwise_class_guided.cwl'
/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/application-packages/heatwise_class_guided.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: CommandLineTool
id: '#preprocess.cwl'
---
class: Workflow
id: '#main'
The EOAP can be executed from its CWL description with cwltool.
cwltool \
--disable-color \
--outdir "$OUTPUT_PATH/cwlruns" \
$CWL_PATH \
--input_catalog "$INPUT_PATH" \
--gusl "$SOFTWARE_ROOT/examples/resources/GUSL_spectra_by_material_headers.xlsx" \
--config "$SOFTWARE_ROOT/examples/config_sepolia_report.json" \
|| 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_class_guided.cwl' to 'file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/application-packages/heatwise_class_guided.cwl'
INFO [workflow ] start
INFO [workflow ] starting step prepare
INFO [step prepare] start
INFO [job prepare] /tmp/fb_sxgt4$ docker \
run \
-i \
--mount=type=bind,source=/tmp/fb_sxgt4,target=/NEMLIb \
--mount=type=bind,source=/tmp/1x5knkr6,target=/tmp \
--mount=type=bind,source=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/inputs/class-guided,target=/var/lib/cwl/stg3ae70de9-58f3-48a1-8dc0-58f03238eb86/class-guided,readonly \
--mount=type=bind,source=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/software/heatwise-class-guided/examples/resources/GUSL_spectra_by_material_headers.xlsx,target=/var/lib/cwl/stg8df844f2-1678-4ce9-a50a-26bafac3fb6d/GUSL_spectra_by_material_headers.xlsx,readonly \
--mount=type=bind,source=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/software/heatwise-class-guided/examples/config_sepolia_report.json,target=/var/lib/cwl/stg3cea62f1-0582-4c0f-b8f9-b6051380f180/config_sepolia_report.json,readonly \
--workdir=/NEMLIb \
--read-only=true \
--net=none \
--user=1001:1001 \
--rm \
--cidfile=/tmp/dmr5a8cr/20261127104541-779731.cid \
--env=TMPDIR=/tmp \
--env=HOME=/NEMLIb \
ghcr.io/esa-heatwise/heatwise-class-guided:0.3.3 \
python3 \
/app/class_guided_processor.py \
--output-dir \
. \
--config \
/var/lib/cwl/stg3cea62f1-0582-4c0f-b8f9-b6051380f180/config_sepolia_report.json \
--gusl \
/var/lib/cwl/stg8df844f2-1678-4ce9-a50a-26bafac3fb6d/GUSL_spectra_by_material_headers.xlsx \
--input-catalog \
/var/lib/cwl/stg3ae70de9-58f3-48a1-8dc0-58f03238eb86/class-guided
[INFO] GAPS_UM = [[0.996, 1.9714]]
[INFO] Bandas en gap: 116 / 250
[INFO] finite_frac (sin gaps) -> min=0.0000, median=0.5123, max=0.5123
[INFO] Umbral adaptativo para bandas usables = 0.1025
[INFO] Bandas usables (sin gaps): 124 / 250
[INFO] Bandas excluidas totales: 126
Primeras 10 wl excluidas: [0.4042 0.4126 0.421 0.4294 0.4378 1.0006 1.009 1.0174 1.0258 1.0342]
[INFO] Brightness thresholds base: low=0.19353, high=0.45383
[INFO] Píxeles válidos base: 4794 / 9570
[INFO] NDVI bands -> red target=0.675 selected=0.6730 | nir target=0.846 selected=0.8494
[INFO] NDVI_URBAN_MAX = 0.300
[INFO] Píxeles urbanos tras NDVI: 4578
[INFO] Urban brightness thresholds: low=0.22699, high=0.40420
[INFO] Píxeles urbanos finales: 4440 / 9570
[INFO] Estratos urbanos por brillo: q33=0.31725, q67=0.35039
[INFO] Urban stratum 'dark': 1480 pix
[INFO] Urban stratum 'mid': 1480 pix
[INFO] Urban stratum 'bright': 1480 pix
[INFO] [dark] PCA components usadas: 16
[INFO] [dark] Varianza explicada acumulada: 0.9988
[INFO] [dark] Candidatos PPI-like iniciales: 1000
[INFO] [dark] Candidatos aceptados tras pruning local: 1000
[INFO] [mid] PCA components usadas: 16
[INFO] [mid] Varianza explicada acumulada: 0.9986
[INFO] [mid] Candidatos PPI-like iniciales: 1000
[INFO] [mid] Candidatos aceptados tras pruning local: 1000
[INFO] [bright] PCA components usadas: 16
[INFO] [bright] Varianza explicada acumulada: 0.9982
[INFO] [bright] Candidatos PPI-like iniciales: 1000
[INFO] [bright] Candidatos aceptados tras pruning local: 1000
[INFO] [vegetation] PCA components usadas: 16
[INFO] [vegetation] Varianza explicada acumulada: 0.9995
[INFO] [vegetation] Candidatos PPI-like iniciales: 216
[INFO] [vegetation] Candidatos aceptados tras pruning local: 216
[INFO] [dark] seleccionados tras dedup local: 12 / cuota 12
[INFO] [mid] seleccionados tras dedup local: 12 / cuota 12
[INFO] [bright] seleccionados tras dedup local: 16 / cuota 16
[INFO] Candidatos finales tras fusión global: 247
WARNING:root:FULL provisional fallback for metal: candidate=CAND_028, SAM=4.156 degrees; original winner=concrete; independent validation required.
WARNING:root:MASK3 provisional fallback for metal: candidate=CAND_028, SAM=3.413 degrees; original winner=concrete; independent validation required.
{
"version": "0.3.3",
"status": "success",
"input_sha256": {
"image": "33f916bd1daf39b00bcfc67bb00baacc6bfe99164ba72c69b7a8dcec45ca46d8",
"gusl": "540ed8985f06b447c494895525eb687f07650f6c87baf374373aa0ae36ad2006"
},
"versions": {
"numpy": "2.2.6",
"scipy": "1.15.3",
"pandas": "2.2.3",
"rasterio": "1.4.3",
"scikit-learn": "1.6.1",
"openpyxl": "3.1.5",
"pystac": "1.15.2"
},
"python": "3.11.18 (main, Nov 24 2026, 05:04:59) [GCC 12.2.0]",
"gdal": "3.9.3",
"input_band_count": 250,
"usable_image_bands": 124,
"full_metric_bands": 103,
"mask3_metric_bands": 15,
"endmember_spectral_bands": 124,
"candidate_count": 277,
"final_endmembers": [
"asphalt_road_1",
"asphalt_road_2",
"asphalt_road_3",
"concrete_1",
"concrete_2",
"concrete_3",
"terracota",
"vegetation",
"metal"
],
"missing_target_classes": [],
"selected_bands": 15,
"endmember_selection": "FULL+MASK3",
"endmember_selection_modes": [
"FULL",
"MASK3"
],
"endmembers_by_mode": {
"FULL": [
"asphalt_road_1",
"asphalt_road_2",
"asphalt_road_3",
"concrete_1",
"concrete_2",
"concrete_3",
"terracota",
"vegetation",
"metal"
],
"MASK3": [
"asphalt_road_1",
"asphalt_road_2",
"asphalt_road_3",
"concrete_1",
"concrete_2",
"concrete_3",
"terracota",
"vegetation",
"metal"
]
},
"missing_target_classes_by_mode": {
"FULL": [],
"MASK3": []
},
"fallback_enabled": true,
"fallback_selected_classes": [
"metal"
],
"fallback_unresolved_classes": [],
"fallback_selections": [
{
"class_name": "metal",
"candidate": "CAND_028",
"gusl_match": "Metal_59__BRUSSELS_APEX_GENLIB",
"sam_deg": 4.156002044677734,
"mbdsa": 0.10290340334177017,
"max_accepted_sam_deg": 8.0,
"best_competing_gusl_match": "Concrete_59__BRUSSELS_APEX_GENLIB",
"best_competing_sam_deg": 3.4977002143859863,
"sam_margin_to_best_competitor_deg": -0.658301830291748,
"original_best_target_class": "concrete",
"original_accepted_by_thresholds": true,
"selection_method": "FULL_CLASS_CONDITIONAL_FALLBACK",
"quality_flag": "PROVISIONAL_REQUIRES_INDEPENDENT_VALIDATION"
}
],
"fallback_by_mode": {
"FULL": {
"enabled": true,
"mode": "FULL",
"selection_policy": "MAXIMIZE_RECOVERED_CLASSES_THEN_MINIMIZE_TOTAL_SAM",
"missing_classes_before_fallback": [
"metal"
],
"sam_thresholds_deg": {
"metal": 8.0
},
"reserved_candidate_count": 13,
"selected": [
{
"class_name": "metal",
"candidate": "CAND_028",
"gusl_match": "Metal_59__BRUSSELS_APEX_GENLIB",
"sam_deg": 4.156002044677734,
"mbdsa": 0.10290340334177017,
"max_accepted_sam_deg": 8.0,
"best_competing_gusl_match": "Concrete_59__BRUSSELS_APEX_GENLIB",
"best_competing_sam_deg": 3.4977002143859863,
"sam_margin_to_best_competitor_deg": -0.658301830291748,
"original_best_target_class": "concrete",
"original_accepted_by_thresholds": true,
"selection_method": "FULL_CLASS_CONDITIONAL_FALLBACK",
"quality_flag": "PROVISIONAL_REQUIRES_INDEPENDENT_VALIDATION"
}
],
"unresolved": [],
"provisional_class_identity": true,
"note": "Fallback endmembers are tentative scene signatures; a low SAM does not validate material identity."
},
"MASK3": {
"enabled": true,
"mode": "MASK3",
"selection_policy": "MAXIMIZE_RECOVERED_CLASSES_THEN_MINIMIZE_TOTAL_SAM",
"missing_classes_before_fallback": [
"metal"
],
"sam_thresholds_deg": {
"metal": 8.0
},
"reserved_candidate_count": 15,
"selected": [
{
"class_name": "metal",
"candidate": "CAND_028",
"gusl_match": "Metal_59__BRUSSELS_APEX_GENLIB",
"sam_deg": 3.4125237464904785,
"mbdsa": 0.092609703540802,
"max_accepted_sam_deg": 8.0,
"best_competing_gusl_match": "Concrete_59__BRUSSELS_APEX_GENLIB",
"best_competing_sam_deg": 3.3296163082122803,
"sam_margin_to_best_competitor_deg": -0.08290743827819824,
"original_best_target_class": "concrete",
"original_accepted_by_thresholds": true,
"selection_method": "MASK3_CLASS_CONDITIONAL_FALLBACK",
"quality_flag": "PROVISIONAL_REQUIRES_INDEPENDENT_VALIDATION"
}
],
"unresolved": [],
"provisional_class_identity": true,
"note": "Fallback endmembers are tentative scene signatures; a low SAM does not validate material identity."
}
},
"mask3_matching": {
"source": "auto",
"requested_wavelengths_um": [
0.463,
0.505,
0.5638,
0.6226,
0.7318,
0.7822,
0.8326,
0.8746,
0.9166,
0.9922,
2.059,
2.101,
2.1682,
2.2102,
2.269
],
"actual_wavelengths_um": [
0.463,
0.505,
0.5638,
0.6226,
0.7318,
0.7822,
0.8326,
0.8746,
0.9166,
0.9922,
2.059,
2.101,
2.1682,
2.2102,
2.269
],
"matching_grid_indices_base0": [
2,
7,
14,
21,
34,
40,
46,
51,
56,
65,
76,
81,
89,
94,
101
],
"absolute_deviation_um": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"number_of_matching_bands": 15,
"output_endmember_wavelength_count": 124,
"note": "MASK3 is used for matching/assignment/ranking only; final spectra retain all usable image bands.",
"original_band_indices_base0": [
7,
12,
19,
26,
39,
45,
51,
56,
61,
70,
197,
202,
210,
215,
222
],
"original_band_indices_base1": [
8,
13,
20,
27,
40,
46,
52,
57,
62,
71,
198,
203,
211,
216,
223
]
},
"mask3_reselection": true,
"mask3_selection_does_not_truncate_endmembers": true,
"band_selection_independent": true,
"endmember_spectra_validated": true,
"band_selection_method": "standardized_euclidean_proxy",
"unmixing_executed": false,
"scientific_accuracy_validated": false
}
INFO [job prepare] Max memory used: 1438MiB
INFO [job prepare] completed success
INFO [step prepare] completed success
INFO [workflow ] completed success
{
"products": {
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4",
"basename": "fb_sxgt4",
"class": "Directory",
"listing": [
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/item.json",
"basename": "item.json",
"size": 5559,
"checksum": "sha1$b76b99483a6466c889d9ae6a83581be2c2763802",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/item.json"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/run_summary.json",
"basename": "run_summary.json",
"size": 6638,
"checksum": "sha1$03c583f0bcd069e549f5ebcb9469cf9867e9bfbd",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/run_summary.json"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/selected_bands.json",
"basename": "selected_bands.json",
"size": 7339,
"checksum": "sha1$808b498e562c45dc63fe3538f9fb3fc18544725d",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/selected_bands.json"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/selected_endmembers.xlsx",
"basename": "selected_endmembers.xlsx",
"size": 20167,
"checksum": "sha1$9397045692be207d1d6a77b77ba8b73f1613830e",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/selected_endmembers.xlsx"
},
{
"class": "Directory",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics",
"basename": "diagnostics",
"listing": [
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/MASK3_candidates_used.csv",
"basename": "MASK3_candidates_used.csv",
"size": 3671,
"checksum": "sha1$45beb96af2ebdbec7bcc73f9213eeb9bfd7b7b8d",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/MASK3_candidates_used.csv"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/candidates.npz",
"basename": "candidates.npz",
"size": 123784,
"checksum": "sha1$8eda85ee5647cc756021b2cd531c104cf189d143",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/candidates.npz"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/FULL_metrics.npz",
"basename": "FULL_metrics.npz",
"size": 10980039,
"checksum": "sha1$27f4e01287e22acaf65edeb53771a26f2f327253",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/FULL_metrics.npz"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/MASK3_fallback_report.json",
"basename": "MASK3_fallback_report.json",
"size": 1092,
"checksum": "sha1$74fc05e8d5777a508137b0a42bc5c0a3b85b1c3c",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/MASK3_fallback_report.json"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/FULL_average_summary.csv",
"basename": "FULL_average_summary.csv",
"size": 1477,
"checksum": "sha1$0a758ee5076db63a31fdd4f3e2f1b6b47a7040e8",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/FULL_average_summary.csv"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/FULL_fallback_report.json",
"basename": "FULL_fallback_report.json",
"size": 1089,
"checksum": "sha1$ae67beb07b742b0f79d4812fdd7257ba8ddac5f8",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/FULL_fallback_report.json"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/FULL_class_assignments.csv",
"basename": "FULL_class_assignments.csv",
"size": 150532,
"checksum": "sha1$135cee3dbe9eb342c64117a330990420d823a476",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/FULL_class_assignments.csv"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/band_selection.xlsx",
"basename": "band_selection.xlsx",
"size": 25433,
"checksum": "sha1$915d826521bfd3e5e93a5c99c355e73d215b38b2",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/band_selection.xlsx"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/MASK3_metrics.npz",
"basename": "MASK3_metrics.npz",
"size": 10988584,
"checksum": "sha1$b532980e8e92f6aed80f619943b584c73f61bed6",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/MASK3_metrics.npz"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/candidates.csv",
"basename": "candidates.csv",
"size": 31052,
"checksum": "sha1$eb88e179d64a255901bf61ff02370a7706c29904",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/candidates.csv"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/MASK3_class_assignments.csv",
"basename": "MASK3_class_assignments.csv",
"size": 152607,
"checksum": "sha1$a226e7bf43db21c914267a0971a264cf9b817128",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/MASK3_class_assignments.csv"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/FULL_bundle_selection.csv",
"basename": "FULL_bundle_selection.csv",
"size": 2236,
"checksum": "sha1$580706399d6f7ad2dd598da828f80b4bca237b0f",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/FULL_bundle_selection.csv"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/MASK3_bundle_selection.csv",
"basename": "MASK3_bundle_selection.csv",
"size": 2496,
"checksum": "sha1$8a039431cff5ed466a1d1f5186c0c952fa865d78",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/MASK3_bundle_selection.csv"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/FULL_candidates_used.csv",
"basename": "FULL_candidates_used.csv",
"size": 3665,
"checksum": "sha1$dd604c9b35e35b7cf3881a3574dd559671dd97d1",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/FULL_candidates_used.csv"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/endmember_classes.json",
"basename": "endmember_classes.json",
"size": 1169,
"checksum": "sha1$fb54283a93ca65ceca2b33b7ca29c08e1ddc263c",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/endmember_classes.json"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/MASK3_average_summary.csv",
"basename": "MASK3_average_summary.csv",
"size": 1491,
"checksum": "sha1$39035bb328c9c0048005a531ac11bba99e240022",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics/MASK3_average_summary.csv"
}
],
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/diagnostics"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/catalog.json",
"basename": "catalog.json",
"size": 410,
"checksum": "sha1$b52668c5b48d84a393990ae614ef6e56b3ba0501",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/catalog.json"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/selected_endmembers_FULL.xlsx",
"basename": "selected_endmembers_FULL.xlsx",
"size": 20167,
"checksum": "sha1$9397045692be207d1d6a77b77ba8b73f1613830e",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/selected_endmembers_FULL.xlsx"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/effective_config.json",
"basename": "effective_config.json",
"size": 2699,
"checksum": "sha1$ede82b507f91d826cfa79e926cc220ec9743f3d3",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/effective_config.json"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/mask3_matching_bands.json",
"basename": "mask3_matching_bands.json",
"size": 1282,
"checksum": "sha1$8eaf981ba7805e6206983c67418fc35bdb67d60e",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/mask3_matching_bands.json"
},
{
"class": "File",
"location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/selected_endmembers_MASK3.xlsx",
"basename": "selected_endmembers_MASK3.xlsx",
"size": 20239,
"checksum": "sha1$5d378bb96d1e056028a1dc4b604563f53c03bb49",
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4/selected_endmembers_MASK3.xlsx"
}
],
"path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4"
}
}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/class-guided/cwlruns/fb_sxgt4
8.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.
8.3.2.2 EOAP Output
tree -n $CWLRUN_PATH || :/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/class-guided/cwlruns/fb_sxgt4
├── catalog.json
├── diagnostics
│ ├── FULL_average_summary.csv
│ ├── FULL_bundle_selection.csv
│ ├── FULL_candidates_used.csv
│ ├── FULL_class_assignments.csv
│ ├── FULL_fallback_report.json
│ ├── FULL_metrics.npz
│ ├── MASK3_average_summary.csv
│ ├── MASK3_bundle_selection.csv
│ ├── MASK3_candidates_used.csv
│ ├── MASK3_class_assignments.csv
│ ├── MASK3_fallback_report.json
│ ├── MASK3_metrics.npz
│ ├── band_selection.xlsx
│ ├── candidates.csv
│ ├── candidates.npz
│ └── endmember_classes.json
├── effective_config.json
├── item.json
├── mask3_matching_bands.json
├── run_summary.json
├── selected_bands.json
├── selected_endmembers.xlsx
├── selected_endmembers_FULL.xlsx
└── selected_endmembers_MASK3.xlsx
2 directories, 25 files
8.4 STAC input / output
8.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/*-rw-r--r-- 1 runner runner 388 Nov 27 10:37 /home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/inputs/class-guided/catalog.json
-rw-r--r-- 1 runner runner 1.5K Nov 27 10:37 /home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/inputs/class-guided/item.json
-rw-r--r-- 1 runner runner 2.5M Nov 27 10:37 /home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/inputs/class-guided/Sepolia_CHIME_Thermopolis_v2_COG.tif
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:
- id: '#main/input_catalog'
type: Directory
label: Input STAC catalog
doc: Locally staged single-item STAC catalog with one COG asset.
8.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/class-guided/cwlruns/fb_sxgt4/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/class-guided/cwlruns/fb_sxgt4/./item.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 243.83ms
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/item.json || FAIL_REQ_6=1geometry:
type: Polygon
coordinates: '[...truncated...]'
bbox:
- 23.69822602923648
- 37.98515943601646
- 23.7290158923408
- 38.01555423573789
properties:
datetime: null
start_datetime: '2009-07-18T00:00:00Z'
end_datetime: '2009-07-18T23:59:59.999999Z'
Required keys present: true
8.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.
8.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: '#preprocess.cwl'
baseCommand:
- python3
- /app/class_guided_processor.py
requirements:
- dockerPull: ghcr.io/esa-heatwise/heatwise-class-guided:0.3.3
class: DockerRequirement
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: '#main'
label: HEATWISE class-guided FULL + MASK3 endmember and band selection
doc: 'EOAP-style workflow. Extract scene-derived candidates and match against GUSL
using FULL spectral information. Select 15 bands from FULL endmembers; independently
re-match the same candidates on those bands (MASK3). Export full-length endmember
libraries for both modes, a FULL compatibility alias, optimized-band metadata, diagnostics
and STAC output. No FCLS unmixing, reduced raster or ground-truth validation.
'
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: 0
label: Input STAC catalog
doc: Locally staged single-item STAC catalog with one COG asset.
- id: 1
label: GUSL spectral library
doc: XLSX with configured Brussels and DLR sheets; no ground truth.
- id: 2
label: Configuration
doc: Processing JSON or YAML configuration.
- id: 3
label: Input wavelengths
doc: Optional original image-band centers in micrometers.
The CWL document should contain a version:
check-version.sh $CWL_PATH || FAIL_REQ_11=1s:version: null
https://schema.org/version: 0.3.3
Found version: true
8.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
8.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.
8.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:
- id: '#preprocess.cwl/class_guided/input_catalog'
type: Directory
label: Input STAC catalog
doc: Locally staged single-item STAC catalog containing one COG asset.
inputBinding:
prefix: --input-catalog
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:
- id: '#main/input_catalog'
type: Directory
label: Input STAC catalog
doc: Locally staged single-item STAC catalog with one COG asset.
8.6.2 Outputs
The CommandLineTool stages out all the contents of the working directory.
extract-commandlinetool-outputs.sh "$CWL_PATH" || FAIL_REQ_14=1- type: Directory
outputBinding:
glob: .
id: '#preprocess.cwl/class_guided/products'
Extracts all items from Working directory: true
8.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.
8.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