Discovery¶
This section describes the stac-client search tool as a Common Workflow Language CommandLineTool that discovers the Sentinel-2 acquisitions to process
In [1]:
Copied!
from pathlib import Path
import sys
repo_root = next(
path for path in [Path.cwd(), *Path.cwd().parents]
if (path / "cwl-workflow/app-water-bodies.cwl").is_file()
)
sys.path.insert(0, str(repo_root / "docs"))
from helpers import WorkflowViewer
import cwl_loader
cwl_loader.logger.remove()
cwl_loader.logger.add(sys.stderr, level="INFO")
from pathlib import Path
import sys
repo_root = next(
path for path in [Path.cwd(), *Path.cwd().parents]
if (path / "cwl-workflow/app-water-bodies.cwl").is_file()
)
sys.path.insert(0, str(repo_root / "docs"))
from helpers import WorkflowViewer
import cwl_loader
cwl_loader.logger.remove()
cwl_loader.logger.add(sys.stderr, level="INFO")
Out[1]:
1
In [2]:
Copied!
wf = WorkflowViewer.from_file(
str(repo_root / "cwl-workflow/app-water-bodies.cwl"),
entrypoint="water-bodies",
)
wf = WorkflowViewer.from_file(
str(repo_root / "cwl-workflow/app-water-bodies.cwl"),
entrypoint="water-bodies",
)
Inputs¶
In [3]:
Copied!
wf.display_inputs(entrypoint="stac-client")
wf.display_inputs(entrypoint="stac-client")
| Id | Type | Label | Doc |
|---|---|---|---|
api_endpoint |
https://raw.githubusercontent.com/eoap/schemas/main/experimental/api-endpoint.yaml#APIEndpoint |
STAC API endpoint | STAC API endpoint used to discover input items |
search_request |
https://raw.githubusercontent.com/eoap/schemas/main/experimental/discovery.yaml#STACSearchSettings |
STAC API settings | STAC search settings including spatial, temporal, and collection filters |
Outputs¶
In [4]:
Copied!
wf.display_outputs(entrypoint="stac-client")
wf.display_outputs(entrypoint="stac-client")
| Id | Type | Label | Doc |
|---|---|---|---|
search_output |
File |
STAC search results | GeoJSON feature collection containing the discovered STAC items. |
Class diagram¶
In [5]:
Copied!
wf.display_class_diagram(entrypoint="stac-client")
wf.display_class_diagram(entrypoint="stac-client")
In [ ]:
Copied!