Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to DeltaDTM v1.1 #8

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions scripts/python/stac_deltadtm.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@
PARQUET_MEDIA_TYPE = "application/vnd.apache.parquet"

CONTAINER_NAME = "deltares-delta-dtm"
PREFIX = "v1.0.1"
PREFIX = "v1.1"
CONTAINER_URI = f"az://{CONTAINER_NAME}/{PREFIX}"
GEOPARQUET_STAC_ITEMS_HREF = f"az://items/{COLLECTION_ID}.parquet"

EXAMPLE_HREF = "az://deltares-delta-dtm/v1.0.1/europe/DeltaDTM_v1_0_N03W052.tif"
EXAMPLE_HREF = "az://deltares-delta-dtm/v1.1/DeltaDTM_v1_1_N03W052.tif"


@dataclasses.dataclass
class PathParser:
"""
Parses a cloud storage path into its component parts, specifically designed for Azure Blob Storage and COG data.
This class assumes paths are formatted like "az://<container>/<version>/<region>/<filename>.tif"
This class assumes paths are formatted like "az://<container>/<version>/<filename>.tif"
"""

path: str
Expand Down Expand Up @@ -123,7 +123,7 @@ def create_collection(

description = """
A global coastal digital terrain model, based on CopernicusDEM, ESA WorldCover, ICESat-2 and
GEDI data. For more information, see Pronk et al. (2023) DeltaDTM: A global coastal digital terrain model.
GEDI data. For more information, see Pronk et al. (2024) DeltaDTM: A global coastal digital terrain model.
"""

collection = pystac.Collection(
Expand Down Expand Up @@ -164,7 +164,7 @@ def create_collection(

pystac.extensions.scientific.ScientificExtension.add_to(collection)
collection.extra_fields["sci:citation"] = (
"""Pronk, Maarten. 2023. “DeltaDTM: A Global Coastal Digital Terrain Model.” 4TU.ResearchData. https://doi.org/10.4121/21997565.V1."""
"""Pronk, Maarten. 2024. “DeltaDTM v1.1: A Global Coastal Digital Terrain Model.” 4TU.ResearchData. https://doi.org/10.4121/21997565.V3."""
)
collection.extra_fields["sci:doi"] = "10.4121/21997565"
collection.extra_fields["sci:publications"] = [
Expand All @@ -175,7 +175,7 @@ def create_collection(
]

pystac.extensions.version.VersionExtension.add_to(collection)
collection.extra_fields["version"] = "1.0"
collection.extra_fields["version"] = "1.1"

return collection

Expand Down
Loading