Pattern 4
Application Package Pattern 4¶
The CWL includes:
- one input parameter of type
Directory
- two output parameters of type
Directory
This scenario takes as input an acquisition, applies two algorithms and generates two outputs.
Implementation: process the NDVI and NDWI taking as input a Landsat-8/9 acquisition. The output include two STAC Catalogs, each with a single STAC Item
Inputs¶
Id | Type | Label | Doc |
---|---|---|---|
aoi |
string |
area of interest | area of interest as a bounding box |
epsg |
string |
EPSG code | EPSG code |
item |
Directory |
Landsat-8/9 acquisition reference | Landsat-8/9 acquisition reference |
Steps¶
Id | Runs | Label | Doc |
---|---|---|---|
step |
#clt |
None | None |
Outputs¶
Id | Type | Label | Doc |
---|---|---|---|
ndvi |
Directory |
NDVI vegetation index | NDVI vegetation index |
ndwi |
Directory |
NDWI vegetation index | NDWI vegetation index |
Data flow management¶
Workflow components diagram¶
Inputs¶
Id | Type | Label | Doc |
---|---|---|---|
aoi |
string |
area of interest - pattern-4/aoi | area of interest as a bounding box - This parameter is derived from pattern-4/aoi |
epsg |
string |
EPSG code - pattern-4/epsg | EPSG code - This parameter is derived from pattern-4/epsg |
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-4/item | Landsat-8/9 acquisition reference - This parameter is derived from pattern-4/item |
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 |
app |
#pattern-4 |
None | None |
stage_out_0 |
#my-super-stage-out |
None | None |
stage_out_1 |
#my-super-stage-out |
None | None |
Outputs¶
Id | Type | Label | Doc |
---|---|---|---|
ndvi |
https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI |
NDVI vegetation index | NDVI vegetation index |
ndwi |
https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI |
NDWI vegetation index | NDWI vegetation index |
Execution¶
Inputs¶
{
"aoi": "-118.985,38.432,-118.183,38.938",
"epsg": "EPSG:4326",
"item": {
"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"
}
}
Outputs¶
{
"ndvi": {
"value": "s3://my-bucket/my/sub/path-47pa1i/catalog.json",
"type": "https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI"
},
"ndwi": {
"value": "s3://my-bucket/my/sub/path-no9orv/catalog.json",
"type": "https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI"
}
}