Skip to content

Commit

Permalink
stage
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricebrito committed Oct 31, 2023
1 parent 08a5d1d commit 550ade2
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion docs/cwl-workflow/stage-in-out.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
* 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
```

0 comments on commit 550ade2

Please sign in to comment.