Pattern 5
Application Package Pattern 5¶
The CWL includes:
- one input parameter of type
Directory - scatter on an output parameter of type
Directory[]
This scenario takes as input an acquisition, applies an algorithm and generates several outputs
Implementation: process the NDVI and NDWI taking as input a Landsat-8/9 acquisition and generating a stack of STAC Catalogs
Inputs¶
| Id | Type | Label | Doc |
|---|---|---|---|
aoi |
string |
area of interest | area of interest as a bounding box |
epsg |
string |
EPSG code | EPSG code |
indexes |
string[] |
indexes | indexes to compute |
item |
Directory |
Landsat-8/9 acquisition reference | Landsat-8/9 acquisition reference |
Steps¶
| Id | Runs | Label | Doc |
|---|---|---|---|
step |
#clt |
Compute vegetation indexes | Compute NDVI and NDWI vegetation indexes from the Landsat-8/9 acquisition |
Outputs¶
| Id | Type | Label | Doc |
|---|---|---|---|
vegetation_indexes |
Directory[] |
Vegetation indexes | Vegetation indexes from Landsat-8/9 acquisitions |
Data flow management¶
Workflow sequence diagram¶
Inputs¶
| Id | Type | Label | Doc |
|---|---|---|---|
aoi |
string |
area of interest - pattern-5/aoi | area of interest as a bounding box - This parameter is derived from pattern-5/aoi |
epsg |
string |
EPSG code - pattern-5/epsg | EPSG code - This parameter is derived from pattern-5/epsg |
indexes |
string[] |
indexes - pattern-5/indexes | indexes to compute - This parameter is derived from pattern-5/indexes |
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-5/item | Landsat-8/9 acquisition reference - This parameter is derived from pattern-5/item |
s3_bucket |
string |
S3 Bucket name - my-super-stage-out/s3_bucket | The name of the S3 bucket to stage out to - This parameter is derived from my-super-stage-out/s3_bucket |
sub_path |
string |
Sub-path in S3 bucket - my-super-stage-out/sub_path | The sub-path within the S3 bucket to stage out to - This parameter is derived from my-super-stage-out/sub_path |
aws_access_key_id |
string |
AWS Access Key ID - my-super-stage-out/aws_access_key_id | The AWS Access Key ID - This parameter is derived from my-super-stage-out/aws_access_key_id |
aws_secret_access_key |
string |
AWS Secret Access Key - my-super-stage-out/aws_secret_access_key | The AWS Secret Access Key - This parameter is derived from my-super-stage-out/aws_secret_access_key |
region_name |
string |
AWS Region Name - my-super-stage-out/region_name | The AWS Region Name - This parameter is derived from my-super-stage-out/region_name |
endpoint_url |
string |
AWS Endpoint URL - my-super-stage-out/endpoint_url | The AWS 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-5 |
None | None |
stage_out_0 |
#my-super-stage-out |
None | None |
Outputs¶
| Id | Type | Label | Doc |
|---|---|---|---|
vegetation_indexes |
https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI[] |
Vegetation indexes | Vegetation indexes from Landsat-8/9 acquisitions |
Execution¶
Inputs¶
{
"aoi": "-118.985,38.432,-118.183,38.938",
"epsg": "EPSG:4326",
"indexes": [
"ndvi",
"ndwi"
],
"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"
},
"another_input": "some_value",
"s3_bucket": "my-bucket",
"sub_path": "my/sub/path",
"aws_access_key_id": "test",
"aws_secret_access_key": "test",
"region_name": "us-west-1",
"endpoint_url": "https://s3.us-west-1.amazonaws.com"
}
Outputs¶
{
"vegetation_indexes": [
{
"value": "s3://my-bucket/my/sub/path-wltwex/catalog.json",
"type": "https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI"
},
{
"value": "s3://my-bucket/my/sub/path-mjfd2k/catalog.json",
"type": "https://raw.githubusercontent.com/eoap/schemas/main/string_format.yaml#URI"
}
]
}