diff --git a/tools/nz-imagery-collection-data.py b/tools/nz-imagery-collection-data.py index 9ee0e80b..49bf609f 100755 --- a/tools/nz-imagery-collection-data.py +++ b/tools/nz-imagery-collection-data.py @@ -64,6 +64,8 @@ def _write_params(params: Dict[str, str], file: str) -> None: ) def _tmp_target_edit(target: str) -> str: + if "2193/rgb" in target: + target = target.replace("2193/rgb", "rgb/2193") return target.replace("s3://linz-imagery/", "s3://linz-workflow-artifacts/nz-imagery/") ## Uncomment if you need to retrieve the STAC files @@ -90,7 +92,7 @@ def _tmp_target_edit(target: str) -> str: params = { "source": source, "target": target, - "id": collection_json["id"], + "collection-id": collection_json["id"], "title": collection_json["title"], "description": collection_json["description"], "start-datetime": start_datetime, @@ -104,7 +106,7 @@ def _tmp_target_edit(target: str) -> str: "group": "5", } - print(params) + # print(params) # params = {**params, **_add_licensor(row, index)} # params = {**params, **_add_producer(row, index)}