Skip to content

Commit cd976e2

Browse files
committed
fix: echo output dir in prepare-output
1 parent 7746d78 commit cd976e2

5 files changed

+24
-5
lines changed

fetch_hazard_indicator.cwl

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ $graph:
66
doc: Fetch a hazard indicator produced with os_climate_hazard
77
requirements:
88
ResourceRequirement:
9-
coresMax: 2
10-
ramMax: 4096
9+
coresMax: 1
10+
ramMax: 512
1111

1212
inputs:
1313
hazard_indicator_key:
@@ -46,7 +46,7 @@ $graph:
4646

4747
hints:
4848
DockerRequirement:
49-
dockerPull: public.ecr.aws/c9k5s3u3/eodh/fetch-indicator-results:0.5.0
49+
dockerPull: public.ecr.aws/c9k5s3u3/eodh/fetch-indicator-results:0.6.0
5050

5151
requirements:
5252
ResourceRequirement:

generate-catalog-and-links.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def create_stac_catalog(directory):
2121

2222
# Create catalog.json structure
2323
catalog = {
24-
"stac_version": "1.0.0",
24+
"stac_version": "1.1.0",
2525
"id": subdir,
2626
"type": "Catalog",
2727
"description": collection.get("description", "STAC Catalog"),
@@ -37,7 +37,7 @@ def create_stac_catalog(directory):
3737

3838
# Process item files in the directory
3939
item_files = [f for f in os.listdir(subdir_path) if
40-
f.endswith(".json") and f != "collection.json" and f != "catalog.json"]
40+
f.endswith(".json") and f != "collection.json" and f != "catalog.json" and f != "inventory.json"]
4141

4242
for item_file in item_files:
4343
item_path = os.path.join(subdir_path, item_file)

prepare-output.sh

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ aws s3 cp "s3://$SRC_BUCKET/$SRC_PATH/" "$DEST_DIR/" --recursive --exclude "*" \
1717
--include "catalog.json"
1818

1919
echo "Files have been organized into '$DEST_DIR'."
20+
echo $(ls $DEST_DIR)

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dependencies = [
1212
"xarray==2023.1.0",
1313
"cwltool>=3.1.20250110105449",
1414
"jupyter>=1.1.1",
15+
"stac-validator>=3.6.0",
1516
]
1617

1718
[tool.uv.sources]

uv.lock

+17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)