10  LCZ Patch Extraction

10.1 Introduction

The following sections demonstrate that the HEATWISE Local Climate Zones patch extraction 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.

10.2 Preparation

Activate the pixi environment to make validation tools and scripts available.

eval "$(pixi shell-hook --change-ps1 false)"

Set environment variables to software, cwl documents, inputs and outputs.

set -o pipefail
set -x
SOFTWARE_ROOT="$PIXI_PROJECT_ROOT"/software/heatwise-patch-extraction
CWL_PATH="$PIXI_PROJECT_ROOT"/application-packages/heatwise_patch_extraction.cwl
INPUT_PATH="$PIXI_PROJECT_ROOT"/inputs/patch-extraction

DOCKER_IMAGE_ID=ghcr.io/esa-heatwise/heatwise-patch-extraction:1.0.0
OUTPUT_PATH="$PIXI_PROJECT_ROOT"/outputs/patch-extraction

ls -ltrAh --color=never "$SOFTWARE_ROOT"
set +x
+ SOFTWARE_ROOT=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/software/heatwise-patch-extraction
+ CWL_PATH=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/application-packages/heatwise_patch_extraction.cwl
+ INPUT_PATH=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/inputs/patch-extraction
+ DOCKER_IMAGE_ID=ghcr.io/esa-heatwise/heatwise-patch-extraction:1.0.0
+ OUTPUT_PATH=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/patch-extraction
+ ls --color=auto -ltrAh --color=never /home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/software/heatwise-patch-extraction
total 60K
-rw-r--r-- 1 runner runner  159 Nov 27 10:37 .gitignore
-rw-r--r-- 1 runner runner 1.3K Nov 27 10:37 Dockerfile
-rw-r--r-- 1 runner runner 8.0K 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  261 Nov 27 10:37 .dockerignore
drwxr-xr-x 3 runner runner 4.0K Nov 27 10:37 data
drwxr-xr-x 2 runner runner 4.0K Nov 27 10:37 examples
-rw-r--r-- 1 runner runner 9.9K Nov 27 10:37 processor.py
-rw-r--r-- 1 runner runner   45 Nov 27 10:37 requirements.txt
-rw-r--r-- 1 runner runner 4.6K Nov 27 10:37 heatwise_patch_extraction.cwl
drwxr-xr-x 7 runner runner 4.0K Nov 27 10:37 .git
+ set +x

10.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

10.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/Berlin:/input:ro" \
    -v "$OUTPUT_PATH:/output" \
    --user "$(id -u):$(id -g)" \
    $DOCKER_IMAGE_ID \
    python /app/processor.py \
    --config /app/examples/sample_config_docker.yaml \
    --input-catalog /input/catalog.json \
    --output-h5 /output/Berlin_patches.h5 \
    || { FAIL_REQ_1=1; FAIL_REQ_2=1; }
[labels] Using existing Shapefile: /app/data/Berlin/Berlin_labels.shp
[labels] Polygons: 17 -> 15 after area filtering
[labels] Class distribution:
 Name
2     4
6     3
11    2
5     2
14    1
17    1
8     1
12    1
Name: count, dtype: int64
[processor] city=Berlin  bands  sen2=10  hsi=30  lst=on
[processor] Sample points: 719
[processor] Filtered: out_of_bounds=19 low_overlap=211 empty=0 unmapped=0
[processor] Valid candidate patches: 489
[geo_split] Super-blocks: 61 (edge 600.0 m) | geo-isolatable classes: [2, 5, 6, 11]
[geo_split] Classes falling back to random split (too few super-blocks): [(8, 2), (12, 2), (14, 1), (17, 2)]
[geo_split] Searched 20 seeds -> chose seed=12 (zero-coverage cells=3, min cell=0)
[geo_split] Patches dropped at split boundaries for geo-isolated classes: 243 (49.7%)
[processor] Kept patches: 246 / 489

[processor] Patch count per split x class:
  class 2: train=34 val=33 test=21
  class 5: train=9 val=0 test=13
  class 6: train=42 val=19 test=7
  class 8: train=17 val=6 test=6
  class 11: train=12 val=0 test=4
  class 12: train=9 val=3 test=3
  class 14: train=1 val=0 test=1
  class 17: train=4 val=1 test=1
[patch_io] Saved: /output/Berlin_patches.h5  sen2(246, 32, 32, 10)  hsi_bs(246, 32, 32, 30)  lst(246, 32, 32, 1)
[processor] Output H5: /output/Berlin_patches.h5
[processor] Output STAC catalog: /output/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=1
SUCCESS: Image ghcr.io/esa-heatwise/heatwise-patch-extraction:1.0.0 found on registry

10.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.

10.3.2 Running as an EOAP

First, we validate that the CWL document is valid.

cwltool --disable-color --validate "$CWL_PATH" | cat
INFO /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_patch_extraction.cwl' to 'file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/application-packages/heatwise_patch_extraction.cwl'
/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/application-packages/heatwise_patch_extraction.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: main
---
class: CommandLineTool
id: patch_extraction_processor

The EOAP can be executed from its CWL description with cwltool.

cwltool \
  --disable-color \
  --outdir "$OUTPUT_PATH/cwlruns" \
   $CWL_PATH \
  --input_catalog $INPUT_PATH/Berlin \
  --output_h5 Berlin_patches.h5 \
  --config $SOFTWARE_ROOT/examples/sample_config_docker.yaml \
  || FAIL_REQ_7=1
INFO /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_patch_extraction.cwl' to 'file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/application-packages/heatwise_patch_extraction.cwl'
INFO [workflow ] start
INFO [workflow ] starting step processor
INFO [step processor] start
INFO [job processor] /tmp/ra4nfv2n$ docker \
    run \
    -i \
    --mount=type=bind,source=/tmp/ra4nfv2n,target=/tiVCUg \
    --mount=type=bind,source=/tmp/suw71hcb,target=/tmp \
    --mount=type=bind,source=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/software/heatwise-patch-extraction/examples/sample_config_docker.yaml,target=/var/lib/cwl/stgb9a238db-84af-4b38-a660-9eb4e71aaeae/sample_config_docker.yaml,readonly \
    --mount=type=bind,source=/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/inputs/patch-extraction/Berlin,target=/var/lib/cwl/stg4d84fc05-424d-41e6-8090-683f63bef928/Berlin,readonly \
    --workdir=/tiVCUg \
    --read-only=true \
    --net=none \
    --user=1001:1001 \
    --rm \
    --cidfile=/tmp/jzmteyha/20261127104735-284002.cid \
    --env=TMPDIR=/tmp \
    --env=HOME=/tiVCUg \
    ghcr.io/esa-heatwise/heatwise-patch-extraction:1.0.0 \
    python \
    /app/processor.py \
    --config \
    /var/lib/cwl/stgb9a238db-84af-4b38-a660-9eb4e71aaeae/sample_config_docker.yaml \
    --input-catalog \
    /var/lib/cwl/stg4d84fc05-424d-41e6-8090-683f63bef928/Berlin/catalog.json \
    --output-h5 \
    Berlin_patches.h5
[labels] Using existing Shapefile: /app/data/Berlin/Berlin_labels.shp
[labels] Polygons: 17 -> 15 after area filtering
[labels] Class distribution:
 Name
2     4
6     3
11    2
5     2
14    1
17    1
8     1
12    1
Name: count, dtype: int64
[processor] city=Berlin  bands  sen2=10  hsi=30  lst=on
[processor] Sample points: 719
[processor] Filtered: out_of_bounds=19 low_overlap=211 empty=0 unmapped=0
[processor] Valid candidate patches: 489
[geo_split] Super-blocks: 61 (edge 600.0 m) | geo-isolatable classes: [2, 5, 6, 11]
[geo_split] Classes falling back to random split (too few super-blocks): [(8, 2), (12, 2), (14, 1), (17, 2)]
[geo_split] Searched 20 seeds -> chose seed=12 (zero-coverage cells=3, min cell=0)
[geo_split] Patches dropped at split boundaries for geo-isolated classes: 243 (49.7%)
[processor] Kept patches: 246 / 489

[processor] Patch count per split x class:
  class 2: train=34 val=33 test=21
  class 5: train=9 val=0 test=13
  class 6: train=42 val=19 test=7
  class 8: train=17 val=6 test=6
  class 11: train=12 val=0 test=4
  class 12: train=9 val=3 test=3
  class 14: train=1 val=0 test=1
  class 17: train=4 val=1 test=1
[patch_io] Saved: Berlin_patches.h5  sen2(246, 32, 32, 10)  hsi_bs(246, 32, 32, 30)  lst(246, 32, 32, 1)
[processor] Output H5: Berlin_patches.h5
[processor] Output STAC catalog: /tiVCUg/catalog.json
INFO [job processor] Max memory used: 1118MiB
INFO [job processor] completed success
INFO [step processor] completed success
INFO [workflow ] completed success
{
    "output": {
        "location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/patch-extraction/cwlruns/ra4nfv2n",
        "basename": "ra4nfv2n",
        "class": "Directory",
        "listing": [
            {
                "class": "File",
                "location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/patch-extraction/cwlruns/ra4nfv2n/Berlin_patches.h5",
                "basename": "Berlin_patches.h5",
                "size": 41341850,
                "checksum": "sha1$eca1904327dbba63eee1e9b838779409e97970c5",
                "path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/patch-extraction/cwlruns/ra4nfv2n/Berlin_patches.h5"
            },
            {
                "class": "File",
                "location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/patch-extraction/cwlruns/ra4nfv2n/Berlin-patches_item.json",
                "basename": "Berlin-patches_item.json",
                "size": 45436,
                "checksum": "sha1$8305b97bd1f0e68f2f275842349e6d4fd267f0e3",
                "path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/patch-extraction/cwlruns/ra4nfv2n/Berlin-patches_item.json"
            },
            {
                "class": "File",
                "location": "file:///home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/patch-extraction/cwlruns/ra4nfv2n/catalog.json",
                "basename": "catalog.json",
                "size": 302,
                "checksum": "sha1$c58fa347fff13ba8ad7101f9c377bdec2776916d",
                "path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/patch-extraction/cwlruns/ra4nfv2n/catalog.json"
            }
        ],
        "path": "/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/patch-extraction/cwlruns/ra4nfv2n"
    }
}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/patch-extraction/cwlruns/ra4nfv2n

10.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.

10.3.2.2 EOAP Output

tree -n $CWLRUN_PATH || :
/home/runner/work/heatwise-interoperability-demonstration/heatwise-interoperability-demonstration/outputs/patch-extraction/cwlruns/ra4nfv2n
├── Berlin-patches_item.json
├── Berlin_patches.h5
└── catalog.json

1 directory, 3 files

10.4 STAC input / output

10.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/*
total 56M
-rw-r--r-- 1 runner runner   10 Nov 27 10:37 Berlin_labels.cpg
-rw-r--r-- 1 runner runner 1.5K Nov 27 10:37 Berlin_labels.dbf
-rw-r--r-- 1 runner runner 1.2K Nov 27 10:37 Berlin_item.json
-rw-r--r-- 1 runner runner  329 Nov 27 10:37 catalog.json
-rw-r--r-- 1 runner runner  401 Nov 27 10:37 Berlin_labels.prj
-rw-r--r-- 1 runner runner 2.9K Nov 27 10:37 Berlin_labels.shp
-rw-r--r-- 1 runner runner  236 Nov 27 10:37 Berlin_labels.shx
-rw-r--r-- 1 runner runner 9.9M Nov 27 10:37 Berlin_S2.tif
-rw-r--r-- 1 runner runner  45M Nov 27 10:37 Berlin_hsi_bs.tif
-rw-r--r-- 1 runner runner 1.4M Nov 27 10:37 Berlin_lst_final.tif

These same inputs are classed as Directory in the workflow:

extract-directory-inputs-from.sh Workflow "$CWL_PATH" || FAIL_REQ_4=1
Running
inputs_with_directory_type:
  - id: input_catalog
    type: Directory
    label: input STAC catalog
    doc: 'Directory containing a STAC catalog named catalog.json referencing

      the staged Sentinel-2, hyperspectral, and optional LST/PCA input

      products required for patch extraction.

      '

10.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/patch-extraction/cwlruns/ra4nfv2n/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/patch-extraction/cwlruns/ra4nfv2n/Berlin-patches_item.json",
        "schema": [
            "https://stac-extensions.github.io/processing/v1.2.0/schema.json",
            "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 256.06ms

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/Berlin-patches_item.json || FAIL_REQ_6=1
geometry:
  type: MultiPolygon
  coordinates: '[...truncated...]'
bbox:
  - 13.258557775433335
  - 52.450607846758466
  - 13.327672153441092
  - 52.519622489722025
properties:
  datetime: '2026-11-27T10:47:36.751224+00:00'
  start_datetime: null
  end_datetime: null

Required keys present: true

10.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.

10.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=1
id: patch_extraction_processor
baseCommand: python
requirements:
  DockerRequirement:
    dockerPull: ghcr.io/esa-heatwise/heatwise-patch-extraction:1.0.0
  InlineJavascriptRequirement: {}
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=1
id: main
label: HEATWISE Geo-Isolated Patch Extraction Workflow
doc: 'EOAP-compatible HEATWISE patch extraction workflow.


  The workflow extracts geographically isolated training, validation,

  and test patches from aligned Sentinel-2, hyperspectral, and optional

  LST/PCA raster products using polygon-based LCZ labels.


  EO raster inputs are provided through a staged STAC catalog directory.

  The processor generates an HDF5 patch dataset and an output STAC catalog

  describing the generated product.

  '
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=1
inputs:
  - id: 0
    label: processing configuration
    doc: 'YAML configuration controlling patch sampling, LCZ labels,

      spatial train/validation/test splitting, optional LST/PCA use,

      and other extraction parameters.


      EO raster paths are not provided through this configuration in the

      EOAP workflow; they are resolved from the input STAC catalog.

      '
  - id: 1
    label: input STAC catalog
    doc: 'Directory containing a STAC catalog named catalog.json referencing

      the staged Sentinel-2, hyperspectral, and optional LST/PCA input

      products required for patch extraction.

      '
  - id: 2
    label: output HDF5 filename
    doc: 'Path for the generated geographically isolated HDF5 patch dataset,

      relative to the CWL working directory.

      '

The CWL document should contain a version:

check-version.sh $CWL_PATH || FAIL_REQ_11=1
s:version: 1.0.0
https://schema.org/version: null
Found version:  true

10.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

10.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.

10.6.1 Inputs

There are inputs of type directory in the CommandLineTool description.

extract-directory-inputs-from.sh CommandLineTool "$CWL_PATH" || FAIL_REQ_12=1
Running
inputs_with_directory_type:
  - type: Directory
    label: input STAC catalog
    doc: 'Directory containing catalog.json and the associated STAC Items

      and Assets for the staged Sentinel-2, hyperspectral, and optional

      LST/PCA EO products.


      The catalog.json path inside this directory is passed to the

      processor through the --input-catalog argument.

      '
    inputBinding:
      prefix: --input-catalog
      valueFrom: $(self.path + "/catalog.json")

There are inputs of type directory in the Workflow description.

extract-directory-inputs-from.sh Workflow "$CWL_PATH" || FAIL_REQ_13=1
Running
inputs_with_directory_type:
  - id: input_catalog
    type: Directory
    label: input STAC catalog
    doc: 'Directory containing a STAC catalog named catalog.json referencing

      the staged Sentinel-2, hyperspectral, and optional LST/PCA input

      products required for patch extraction.

      '

10.6.2 Outputs

The CommandLineTool stages out all the contents of the working directory.

extract-commandlinetool-outputs.sh "$CWL_PATH" || FAIL_REQ_14=1
output:
  type: Directory
  doc: 'Complete CWL working directory containing all files produced by

    the processor, including the HDF5 patch dataset and generated

    STAC catalog.

    '
  outputBinding:
    glob: .
Extracts all items from Working directory: true

10.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.

10.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
done
REQ_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 patch extraction step of the Local Climate Zone classification 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.