Skip to content

Commit

Permalink
fix: fix up historic survey paths
Browse files Browse the repository at this point in the history
  • Loading branch information
amfage committed Aug 31, 2023
1 parent 70e8ead commit 457f78b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/nz-imagery-collection-data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand All @@ -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)}
Expand Down

0 comments on commit 457f78b

Please sign in to comment.