Pattern 7
Application Package Pattern 7¶
The CWL includes:
- one optional input parameter of type
Directory?
- one output parameter of type
Directory
This scenario may take as input an acquisition, an optional input, applies an algorithm and generates an output
Implementation: detects water bodies using the Normalized Difference Water Index (NDWI) and Otsu thresholding.
Inputs¶
Id | Type | Label | Doc |
---|---|---|---|
aoi |
string |
area of interest | area of interest as a bounding box |
epsg |
string |
EPSG code | EPSG code |
bands |
string[] |
bands used for the NDWI | bands used for the NDWI |
item_1 |
Directory |
Mandatory Landsat-8/9 acquisition reference | Landsat-8/9 acquisition reference |
item_2 |
[ null, Directory ] |
Optional Landsat-8/9 acquisition reference | Optional Landsat-8/9 acquisition reference |
Steps¶
Id | Runs | Label | Doc |
---|---|---|---|
step |
#clt |
None | None |
Outputs¶
Id | Type | Label | Doc |
---|---|---|---|
water_bodies |
Directory |
Water bodies detected | Water bodies detected based on the NDWI and otsu threshold |
Data flow management¶
Workflow components diagram¶
Inputs¶
Id | Type | Label | Doc |
---|---|---|---|
aoi |
string |
area of interest - pattern-7/aoi | area of interest as a bounding box - This parameter is derived from pattern-7/aoi |
epsg |
string |
EPSG code - pattern-7/epsg | EPSG code - This parameter is derived from pattern-7/epsg |
bands |
string[] |
bands used for the NDWI - pattern-7/bands | bands used for the NDWI - This parameter is derived from pattern-7/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_1 |
https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI |
Mandatory Landsat-8/9 acquisition reference - pattern-7/item_1 | Landsat-8/9 acquisition reference - This parameter is derived from pattern-7/item_1 |
item_2 |
[ null, https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI ] |
Optional Landsat-8/9 acquisition reference - pattern-7/item_2 | Optional Landsat-8/9 acquisition reference - This parameter is derived from pattern-7/item_2 |
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 |
#my-asthonishing-stage-in-directory |
None | None |
directory_stage_in_1 |
#my-asthonishing-stage-in-directory |
None | None |
app |
#pattern-7 |
None | None |
stage_out_0 |
#my-super-stage-out |
None | None |
Outputs¶
Id | Type | Label | Doc |
---|---|---|---|
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 |
Execution¶
Inputs¶
{
"aoi": "-118.985,38.432,-118.183,38.938",
"epsg": "EPSG:4326",
"bands": [
"green",
"nir08"
],
"item_1": {
"class": "https://raw.githubusercontent.com/eoap/schemas/main/url.yaml#URL",
"value": "https://planetarycomputer.microsoft.com/api/stac/v1/collections/landsat-c2-l2/items/LC08_L2SP_042033_20231007_02_T1"
},
"item_2": {
"class": "https://raw.githubusercontent.com/eoap/schemas/main/url.yaml#URL",
"value": "https://planetarycomputer.microsoft.com/api/stac/v1/collections/landsat-c2-l2/items/LC09_L2SP_042033_20231015_02_T1"
}
}
Outputs¶
{
"water_bodies": {
"value": "s3://my-bucket/my/sub/path-z481uw/catalog.json",
"type": "https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI"
}
}