Skip to content

Commit

Permalink
Add default input values
Browse files Browse the repository at this point in the history
  • Loading branch information
figi44 committed Aug 16, 2024
1 parent eaadb33 commit b011024
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cli/get_urls/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,12 @@ def main(catalog, collection):

urls = []
ids = []
i = 0

for item in collection.get_items():
cog = item.assets.get("cog")
if cog is not None:
urls.append(cog.href)
ids.append(item.id)
i += 1
if i == 2:
break

with open("urls.txt", "w") as f:
print(*urls, file=f, sep="\n", end="")
Expand Down
2 changes: 2 additions & 0 deletions resize-collection.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ $graph:
label: catalog
doc: full catalog path
type: string
default: "supported-datasets/ceda-stac-fastapi"
collection:
label: collection
doc: collection id
type: string
default: "sentinel2_ard"
outputs:
- id: stac_output
outputSource:
Expand Down

0 comments on commit b011024

Please sign in to comment.