Skip to content

Commit

Permalink
add region to collection id
Browse files Browse the repository at this point in the history
  • Loading branch information
hrodmn committed Jun 18, 2024
1 parent 6fb8a65 commit 5230ca9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/stactools/noaa_hrrr/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
T = TypeVar("T", bound="StrEnum")

ITEM_ID_FORMAT = "hrrr-{region}-{product}-{reference_datetime}-FH{forecast_hour}"
COLLECTION_ID_FORMAT = "noaa-hrrr-{product}"
COLLECTION_ID_FORMAT = "noaa-hrrr-{product}-{region}"

EXTENDED_FORECAST_MAX_HOUR = 48
STANDARD_FORECAST_MAX_HOUR = 18
Expand Down
1 change: 1 addition & 0 deletions src/stactools/noaa_hrrr/stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ def create_collection(
collection = Collection(
id=COLLECTION_ID_FORMAT.format(
product=product.value,
region=region.value,
),
title=(
"NOAA High Resolution Rapid Refresh (HRRR) - "
Expand Down

0 comments on commit 5230ca9

Please sign in to comment.