Skip to content

Commit

Permalink
Update upload-s3.py
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbuntemeyer authored Jul 14, 2023
1 parent 7a28803 commit 2097d52
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions workflows/upload-s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ def get_zarr_url(iid, bucket, prefix="", fs="s3"):


def get_catalog_url(bucket, project, prefix="catalog"):
if project == "CORDEX-Reklies":
project = "CORDEX"
catalog = project
if project in ["CORDEX", "CORDEX-Reklies", "CORDEX-FPSCONV"]:
# these go all in the same catalog (they have the same facets)
catalog = "CORDEX"
else:
catalog = project
return f"{op.join(get_url(bucket, prefix), catalog)}.csv"


Expand Down

0 comments on commit 2097d52

Please sign in to comment.