Skip to content

Commit

Permalink
one TODO done
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricebrito committed Nov 2, 2023
1 parent 0766838 commit 405ddfe
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion docs/cwl-workflow/scatter-cloud-native.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,38 @@
CWL can run sub-workflows in a step. Below a CWL Workflow created to process a list of STAC Items and then generate a STAC catalog with several detected water bodies.
CWL can run sub-workflows in a step.

To process a list of STAC Items and then generate a STAC catalog with several detected water bodies, the flowchart is:

``` mermaid
graph TB
A["[STAC Item URL, STAC Item URL]"]
A --> F
A --> B(("crop(green)"));
A--> C(("crop(nir)"));
subgraph scatter on STAC Items
P[bands]
Q[EPSG code]
R[AOI]
subgraph scatter on bands
P --> B(("crop(green)"))
P --> C(("crop(nir)"))
Q --> B(("crop(green)"))
Q --> C(("crop(nir)"))
R --> B(("crop(green)"))
R --> C(("crop(nir)"))
end
B(("crop(green)")) --> D
C(("crop(nir)")) --> D
D(("`Normalized
difference`"));
D --> E(("`Otsu
threshold`"))
end
E --> F
F(("`Create
STAC Catalog`"))
```

Below a CWL Workflow implementing this scenario:

```yaml linenums="1" hl_lines="18-21 33-43"
--8<--
Expand Down

0 comments on commit 405ddfe

Please sign in to comment.