From 550ade2b597567e877b6ff0985290eb66b24361f Mon Sep 17 00:00:00 2001 From: Fabrice Brito Date: Tue, 31 Oct 2023 17:01:47 +0100 Subject: [PATCH] stage --- docs/cwl-workflow/stage-in-out.md | 35 ++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/docs/cwl-workflow/stage-in-out.md b/docs/cwl-workflow/stage-in-out.md index 4132f71..6ffce2b 100644 --- a/docs/cwl-workflow/stage-in-out.md +++ b/docs/cwl-workflow/stage-in-out.md @@ -22,4 +22,37 @@ From the OGC Best Practice for Earth Observation Application Package: This translates to: * Workflow steps that have an output of type `Directory` produce a STAC catalog -* Plug a **stage-out step** for all workflow outputs of type Directory \ No newline at end of file +* Plug a **stage-out step** for all workflow outputs of type Directory + +### Applying the stage-in/out to the water bodies + +The concepts above mapped to the Water Body Detection application are depicted below. + +``` mermaid +graph TB +subgraph stage-in + A[STAC Item] -- STAC Item URL --> AA[Stage-in] + AA[Stage-in] -- catalog.json/item.json/assets blue, red, nir ... --> AB[(local storage)] +end +subgraph Process STAC item + AB[(storage)] -- Staged STAC Catalog --> B + AB[(storage)] -- Staged STAC Catalog --> C + AB[(storage)] -- Staged STAC Catalog --> F +subgraph scatter on bands + B["crop(green)"]; + C["crop(nir)"]; +end + B["crop(green)"] -- crop_green.tif --> D[Normalized difference]; + C["crop(nir)"] -- crop_green.tif --> D[Normalized difference]; + D -- norm_diff.tif --> E[Otsu threshold] +end + E -- otsu.tif --> F[Create STAC Catalog] + F -- "catalog.json/item.json/asset otsu.tif" --> G[(storage)] + +subgraph stage-out + + G -- "catalog.json/item.json/asset otsu.tif" --> BB[Stage-out] + BB --> H[(Remote + storage)] +end +``` \ No newline at end of file