Pattern 12
Application Package Pattern 12¶
This patterns publishes all products generated by all steps
Inputs¶
Id | Type | Label | Doc |
---|---|---|---|
aoi |
https://raw.githubusercontent.com/eoap/schemas/main/ogc.yaml#BBox | area of interest | area of interest as a bounding box |
bands |
Array of string | bands used for the NDWI | bands used for the NDWI |
item |
Directory | Landsat-8/9 acquisition reference | Landsat-8/9 acquisition reference |
cropped-collection |
https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI | cropped reflectances STAC Collection | STAC Collection URL for the cropped reflectances |
ndwi-collection |
https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI | NDWI STAC Collection | STAC Collection URL for the NDWI |
water-bodies-collection |
https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI | Water bodies STAC Collection | STAC Collection URL for the water bodies |
Steps¶
Id | Runs | Label | Doc |
---|---|---|---|
node_crop |
file:///#crop | None | None |
node_normalized_difference |
file:///#norm_diff | None | None |
node_otsu |
file:///#otsu | None | None |
Outputs¶
Id | Type | Label | Doc |
---|---|---|---|
cropped |
Array of Directory | Cropped reflectances | Cropped reflectances |
ndwi |
Directory | Normalized Difference Water Index | Normalized Difference Water Index calculated from the input bands |
water_bodies |
Directory | Water bodies detected | Water bodies detected based on the NDWI and otsu threshold |
Data flow management¶
Loading CWL document from ../cwl-workflow/pattern-12.cwl... Raw CWL document successfully loaded from ../cwl-workflow/pattern-12.cwl! Now updating the model to v1.2... Raw CWL document successfully updated! Now converting to the CWL model...
Raw CWL document successfully updated! Now dereferencing the FQNs... Cleaning Workflow pattern-12... Cleaning CommandLineTool crop... Cleaning CommandLineTool norm_diff... Cleaning CommandLineTool otsu... CWL document successfully dereferenced! Loading CWL document from https://raw.githubusercontent.com/eoap/application-package-patterns/refs/heads/main/templates/stage-in.cwl... Raw CWL document successfully loaded from https://raw.githubusercontent.com/eoap/application-package-patterns/refs/heads/main/templates/stage-in.cwl! Now updating the model to v1.2... Raw CWL document successfully updated! Now converting to the CWL model... Raw CWL document successfully updated! Now dereferencing the FQNs... Cleaning CommandLineTool my-asthonishing-stage-in-directory... CWL document successfully dereferenced! Loading CWL document from https://raw.githubusercontent.com/eoap/application-package-patterns/refs/heads/main/templates/stage-in-file.cwl... Raw CWL document successfully loaded from https://raw.githubusercontent.com/eoap/application-package-patterns/refs/heads/main/templates/stage-in-file.cwl! Now updating the model to v1.2... Raw CWL document successfully updated! Now converting to the CWL model...
Raw CWL document successfully updated! Now dereferencing the FQNs... Cleaning CommandLineTool my-asthonishing-stage-in-file... CWL document successfully dereferenced! Loading CWL document from https://raw.githubusercontent.com/eoap/application-package-patterns/refs/heads/main/cwl-workflow/pattern-12.cwl... Raw CWL document successfully loaded from https://raw.githubusercontent.com/eoap/application-package-patterns/refs/heads/main/cwl-workflow/pattern-12.cwl! Now updating the model to v1.2... Raw CWL document successfully updated! Now converting to the CWL model...
Raw CWL document successfully updated! Now dereferencing the FQNs... Cleaning Workflow pattern-12... Cleaning CommandLineTool crop... Cleaning CommandLineTool norm_diff... Cleaning CommandLineTool otsu... CWL document successfully dereferenced! Loading CWL document from https://raw.githubusercontent.com/eoap/application-package-patterns/refs/heads/main/templates/stage-out.cwl... Raw CWL document successfully loaded from https://raw.githubusercontent.com/eoap/application-package-patterns/refs/heads/main/templates/stage-out.cwl! Now updating the model to v1.2... Raw CWL document successfully updated! Now converting to the CWL model... Raw CWL document successfully updated! Now dereferencing the FQNs... Cleaning CommandLineTool my-super-stage-out... CWL document successfully dereferenced! Validating stage-in 'my-asthonishing-stage-in-directory'... stage-in 'my-asthonishing-stage-in-directory' is valid Validating stage-in 'my-asthonishing-stage-in-file'... stage-in 'my-asthonishing-stage-in-file' is valid Validating stage-out 'my-super-stage-out'... stage-out 'my-super-stage-out' is valid Building the CWL Orchestrator Workflow... Analyzing pattern-12 inputs... * pattern-12/aoi: https://raw.githubusercontent.com/eoap/schemas/main/ogc.yaml#BBox * pattern-12/bands: string[] * pattern-12/item: Directory Directory type detected, creating a related 'directory_stage_in_0'... Converting Directory to URL-compatible type... Directory converted to https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI Connecting 'app/item' to 'directory_stage_in_0' output... * pattern-12/cropped-collection: https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI * pattern-12/ndwi-collection: https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI * pattern-12/water-bodies-collection: https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI Analyzing pattern-12 outputs... * pattern-12/cropped: Directory[] Directory type detected, creating a related 'stage_out_0'... Converting Directory[] to URL-compatible type... Directory[] converted to https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI[] Array detected, scatter required for stac_catalog:app/cropped Connecting 'app/cropped' to 'stage_out_0' output... * pattern-12/ndwi: Directory Directory type detected, creating a related 'stage_out_1'... Converting Directory to URL-compatible type... Directory converted to https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI Connecting 'app/ndwi' to 'stage_out_1' output... * pattern-12/water_bodies: Directory Directory type detected, creating a related 'stage_out_2'... Converting Directory to URL-compatible type... Directory converted to https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI Connecting 'app/water_bodies' to 'stage_out_2' output... Orchestrator Workflow built in 0.0031 seconds
Inputs¶
Id | Type | Label | Doc |
---|---|---|---|
aoi |
https://raw.githubusercontent.com/eoap/schemas/main/ogc.yaml#BBox | area of interest - pattern-12/aoi | area of interest as a bounding box - This parameter is derived from pattern-12/aoi |
bands |
Array of string | bands used for the NDWI - pattern-12/bands | bands used for the NDWI - This parameter is derived from pattern-12/bands |
another_input |
string | Another Input - my-asthonishing-stage-in-directory/another_input | An additional input for demonstration purposes - This parameter is derived from my-asthonishing-stage-in-directory/another_input |
item |
https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI | Landsat-8/9 acquisition reference - pattern-12/item | Landsat-8/9 acquisition reference - This parameter is derived from pattern-12/item |
cropped-collection |
https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI | cropped reflectances STAC Collection - pattern-12/cropped-collection | STAC Collection URL for the cropped reflectances - This parameter is derived from pattern-12/cropped-collection |
ndwi-collection |
https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI | NDWI STAC Collection - pattern-12/ndwi-collection | STAC Collection URL for the NDWI - This parameter is derived from pattern-12/ndwi-collection |
water-bodies-collection |
https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI | Water bodies STAC Collection - pattern-12/water-bodies-collection | STAC Collection URL for the water bodies - This parameter is derived from pattern-12/water-bodies-collection |
s3_bucket |
string | my-super-stage-out/s3_bucket | This parameter is derived from: my-super-stage-out/s3_bucket |
sub_path |
string | my-super-stage-out/sub_path | This parameter is derived from: my-super-stage-out/sub_path |
aws_access_key_id |
string | my-super-stage-out/aws_access_key_id | This parameter is derived from: my-super-stage-out/aws_access_key_id |
aws_secret_access_key |
string | my-super-stage-out/aws_secret_access_key | This parameter is derived from: my-super-stage-out/aws_secret_access_key |
region_name |
string | my-super-stage-out/region_name | This parameter is derived from: my-super-stage-out/region_name |
endpoint_url |
string | my-super-stage-out/endpoint_url | This parameter is derived from: my-super-stage-out/endpoint_url |
Steps¶
Id | Runs | Label | Doc |
---|---|---|---|
directory_stage_in_0 |
file:///#my-asthonishing-stage-in-directory | None | None |
app |
file:///#pattern-12 | None | None |
stage_out_0 |
file:///#my-super-stage-out | None | None |
stage_out_1 |
file:///#my-super-stage-out | None | None |
stage_out_2 |
file:///#my-super-stage-out | None | None |
Outputs¶
Id | Type | Label | Doc |
---|---|---|---|
cropped |
Array of https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI | Cropped reflectances | Cropped reflectances |
ndwi |
https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI | Normalized Difference Water Index | Normalized Difference Water Index calculated from the input bands |
water_bodies |
https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI | Water bodies detected | Water bodies detected based on the NDWI and otsu threshold |