Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cwl-workflow/pattern-1-inputs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"aoi": "-118.985,38.432,-118.183,38.938",
"epsg": "EPSG:4326",
"bands": ["green", "nir08"],
"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"
}
}
104 changes: 68 additions & 36 deletions cwl-workflow/pattern-1.cwl
Original file line number Diff line number Diff line change
@@ -1,56 +1,88 @@
cwlVersion: v1.0
schemas:
- http://schema.org/version/9.0/schemaorg-current-http.rdf
$namespaces:
s: https://schema.org/
eoap: "http://oeap.github.io/schema#"

schemas:
- http://schema.org/version/9.0/schemaorg-current-http.rdf

s:softwareVersion: 1.0.0

s:applicationCategory: "Earth Observation application package"
s:additionalProperty:
- s:@type: s:PropertyValue
s:name: application-type
s:value: delineation
- s:@type: s:PropertyValue
s:name: domain
s:value: hydrology
s:name: Water bodies detection based on NDWI and the otsu threshold
s:description: Water bodies detection based on NDWI and otsu threshold applied to a single Landsat-8/9 acquisition.
s:dateCreated: '2025-01-01'
s:license:
'@type': s:CreativeWork
s:identifier: Apache-2.0

s:thumbnail:
s:@type: s:ImageObject
s:contentUrl: "https://s3.waw3-2.cloudferro.com/swift/v1/stac-png/S2_L2A.jpg"
s:caption: "Water bodies detected based on the NDWI and otsu threshold"
s:encodingFormat: "image/jpeg"
s:height: "360"
s:width: "640"
s:keywords:
- CWL
- Workflow
- Earth Observation

s:operatingSystem:
- Linux
- macOS
s:softwareRequirements:
- https://cwltool.readthedocs.io/en/latest/
- https://www.python.org/

s:license:
s:@type: s:CreativeWork
s:name: "License CC BY 4.0"
s:url: "https://creativecommons.org/licenses/by/4.0/"
s:encodingFormat: "text/html"
s:softwareVersion: 1.0.0
s:softwareHelp:
- '@type': s:CreativeWork
s:name: User Manual
s:url: tps://eoap.github.io/application-package-patterns/

s:documentation:
- s:@type: s:CreativeWork
s:name: "User Manual"
s:url: "https://eoap.github.io/application-package-patterns/"
s:encodingFormat: "text/html"
s:publisher:
'@type': s:Organization
s:name: Make Earth Observation Great Again
s:email: info@meoga.com
s:identifier: https://ror.org/9999cx000

s:author:
s:@type: s:Person
s:name: "John Doe"
- '@type': s:Role
s:roleName: Project Manager
s:additionalType: http://purl.org/spar/datacite/ProjectManager
s:author:
'@type': s:Person
s:givenName: Lois
s:familyName: Lane
s:email: lois.lane@dailyplanet.com
s:identifier: https://orcid.org/0000-9999-0000-9999
s:affiliation:
'@type': s:Organization
s:name: Daily Planet
s:identifier: https://ror.org/0000cx000
- '@type': s:Role
s:roleName: Researcher
s:additionalType: http://purl.org/spar/datacite/Researcher
s:author:
'@type': s:Person
s:givenName: Clark
s:familyName: Kent
s:email: clark.kent@dailyplanet.com
s:identifier: https://orcid.org/0000-9999-0000-9999
s:affiliation:
'@type': s:Organization
s:name: Daily Planet
s:identifier: https://ror.org/0000cx000

s:contributor:
- '@type': s:Person
s:givenName: Lex
s:familyName: Luthor
s:email: lex.luthor@luthorcorp.com
s:identifier: https://orcid.org/0000-9999-0000-9999
s:affiliation:
s:@type: s:Organization
s:name: "Make EO Great Again Platform"
s:email: "john.doe@meogap.org"
'@type': s:Organization
s:name: Luthor Corp
s:identifier: https://ror.org/0000cx000

$graph:
- class: Workflow
id: pattern-1
label: Water bodies detection based on NDWI and the otsu threshold
doc: Water bodies detection based on NDWI and otsu threshold applied to a single Landsat-8/9 acquisition
requirements: []
hints:
- class: eoap:JSONSchemaHint
inputs:
aoi:
label: area of interest
Expand Down
15 changes: 15 additions & 0 deletions cwl-workflow/pattern-10-inputs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"aoi": "-118.985,38.432,-118.183,38.938",
"epsg": "EPSG:4326",
"indexes": ["ndvi", "ndwi"],
"items": [
{
"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"
},
{
"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"
}
]
}
90 changes: 79 additions & 11 deletions cwl-workflow/pattern-10.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,83 @@

# This scenario takes as input an array of acquisition, applies an algorithm to each of them.


cwlVersion: v1.0
schemas:
- http://schema.org/version/9.0/schemaorg-current-http.rdf
$namespaces:
s: https://schema.org/
eoap: "http://oeap.github.io/schema#"

s:name: NDVI and NDWI vegetation indexes
s:description: NDVI and NDWI vegetation indexes from Landsat-8/9 acquisitions.
s:dateCreated: '2025-01-01'
s:license:
'@type': s:CreativeWork
s:identifier: Apache-2.0

s:keywords:
- CWL
- Workflow
- Earth Observation

s:operatingSystem:
- Linux
- macOS
s:softwareRequirements:
- https://cwltool.readthedocs.io/en/latest/
- https://www.python.org/

s:softwareVersion: 1.0.0
s:applicationCategory: "Earth Observation application package"
s:additionalProperty:
- s:@type: s:PropertyValue
s:name: application-type
s:value: vegetation-index
- s:@type: s:PropertyValue
s:name: domain
s:value: agriculture
schemas:
- http://schema.org/version/9.0/schemaorg-current-http.rdf
s:softwareHelp:
- '@type': s:CreativeWork
s:name: User Manual
s:url: tps://eoap.github.io/application-package-patterns/

s:publisher:
'@type': s:Organization
s:name: Make Earth Observation Great Again
s:email: info@meoga.com
s:identifier: https://ror.org/9999cx000

s:author:
- '@type': s:Role
s:roleName: Project Manager
s:additionalType: http://purl.org/spar/datacite/ProjectManager
s:author:
'@type': s:Person
s:givenName: Lois
s:familyName: Lane
s:email: lois.lane@dailyplanet.com
s:identifier: https://orcid.org/0000-9999-0000-9999
s:affiliation:
'@type': s:Organization
s:name: Daily Planet
s:identifier: https://ror.org/0000cx000
- '@type': s:Role
s:roleName: Researcher
s:additionalType: http://purl.org/spar/datacite/Researcher
s:author:
'@type': s:Person
s:givenName: Clark
s:familyName: Kent
s:email: clark.kent@dailyplanet.com
s:identifier: https://orcid.org/0000-9999-0000-9999
s:affiliation:
'@type': s:Organization
s:name: Daily Planet
s:identifier: https://ror.org/0000cx000

s:contributor:
- '@type': s:Person
s:givenName: Lex
s:familyName: Luthor
s:email: lex.luthor@luthorcorp.com
s:identifier: https://orcid.org/0000-9999-0000-9999
s:affiliation:
'@type': s:Organization
s:name: Luthor Corp
s:identifier: https://ror.org/0000cx000

$graph:
- class: Workflow
id: pattern-10
Expand All @@ -29,6 +91,8 @@ $graph:
requirements:
SubworkflowFeatureRequirement: {}
ScatterFeatureRequirement: {}
hints:
- class: eoap:JSONSchemaHint
inputs:
aoi:
label: area of interest
Expand Down Expand Up @@ -62,6 +126,8 @@ $graph:
steps:
subworkflow:
run: "#vegetation_indexes"
label: Compute vegetation indexes
doc: Compute NDVI and NDWI vegetation indexes from the Landsat-8/9 acquisitions
in:
item: items
aoi: aoi
Expand All @@ -75,6 +141,8 @@ $graph:

flatten:
run: "#flatten_array"
label: Flatten Directory[][] → Directory[]
doc: Flatten the nested array of Directories into a single array
in:
nested: subworkflow/vegetation_indexes
out:
Expand Down
13 changes: 13 additions & 0 deletions cwl-workflow/pattern-11-inputs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"aoi": "-118.985,38.432,-118.183,38.938",
"epsg": "EPSG:4326",
"bands": ["green", "nir08"],
"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"
},
"dem": {
"class": "https://raw.githubusercontent.com/eoap/schemas/main/url.yaml#URL",
"value": "https://elevationeuwest.blob.core.windows.net/copernicus-dem/COP30_hh/Copernicus_DSM_COG_10_N38_00_W119_00_DEM.tif"
}
}
87 changes: 77 additions & 10 deletions cwl-workflow/pattern-11.cwl
Original file line number Diff line number Diff line change
@@ -1,23 +1,88 @@
cwlVersion: v1.0
schemas:
- http://schema.org/version/9.0/schemaorg-current-http.rdf
$namespaces:
s: https://schema.org/
eoap: "http://oeap.github.io/schema#"

s:name: Water bodies detection based on NDWI and the otsu threshold (with DEM)
s:description: Water bodies detection based on NDWI and otsu threshold applied to a single Landsat-8/9 acquisition.
s:dateCreated: '2025-01-01'
s:license:
'@type': s:CreativeWork
s:identifier: Apache-2.0

s:keywords:
- CWL
- Workflow
- Earth Observation

s:operatingSystem:
- Linux
- macOS
s:softwareRequirements:
- https://cwltool.readthedocs.io/en/latest/
- https://www.python.org/

s:softwareVersion: 1.0.0
s:applicationCategory: "Earth Observation application package"
s:additionalProperty:
- s:@type: s:PropertyValue
s:name: application-type
s:value: delineation
- s:@type: s:PropertyValue
s:name: domain
s:value: hydrology
schemas:
- http://schema.org/version/9.0/schemaorg-current-http.rdf
s:softwareHelp:
- '@type': s:CreativeWork
s:name: User Manual
s:url: tps://eoap.github.io/application-package-patterns/

s:publisher:
'@type': s:Organization
s:name: Make Earth Observation Great Again
s:email: info@meoga.com
s:identifier: https://ror.org/9999cx000

s:author:
- '@type': s:Role
s:roleName: Project Manager
s:additionalType: http://purl.org/spar/datacite/ProjectManager
s:author:
'@type': s:Person
s:givenName: Lois
s:familyName: Lane
s:email: lois.lane@dailyplanet.com
s:identifier: https://orcid.org/0000-9999-0000-9999
s:affiliation:
'@type': s:Organization
s:name: Daily Planet
s:identifier: https://ror.org/0000cx000
- '@type': s:Role
s:roleName: Researcher
s:additionalType: http://purl.org/spar/datacite/Researcher
s:author:
'@type': s:Person
s:givenName: Clark
s:familyName: Kent
s:email: clark.kent@dailyplanet.com
s:identifier: https://orcid.org/0000-9999-0000-9999
s:affiliation:
'@type': s:Organization
s:name: Daily Planet
s:identifier: https://ror.org/0000cx000

s:contributor:
- '@type': s:Person
s:givenName: Lex
s:familyName: Luthor
s:email: lex.luthor@luthorcorp.com
s:identifier: https://orcid.org/0000-9999-0000-9999
s:affiliation:
'@type': s:Organization
s:name: Luthor Corp
s:identifier: https://ror.org/0000cx000

$graph:
- class: Workflow
id: pattern-11
label: Water bodies detection based on NDWI and the otsu threshold (with DEM)
doc: Water bodies detection based on NDWI and otsu threshold applied to a single Landsat-8/9 acquisition
requirements: []
hints:
- class: eoap:JSONSchemaHint
inputs:
aoi:
label: area of interest
Expand Down Expand Up @@ -52,6 +117,8 @@ $graph:
steps:
step:
run: "#clt"
label: Detect water bodies
doc: Detect water bodies based on the NDWI and otsu threshold from Landsat-8/9 acquisition and DEM
in:
item: item
aoi: aoi
Expand Down
Loading
Loading