Skip to content

Comments

USGS(transform): add impact item from alert data#132

Merged
Rup-Narayan-Rajbanshi merged 1 commit intofeature/gdacs-impact-transformationfrom
feat/usgs-impact-transformation
Dec 8, 2025
Merged

USGS(transform): add impact item from alert data#132
Rup-Narayan-Rajbanshi merged 1 commit intofeature/gdacs-impact-transformationfrom
feat/usgs-impact-transformation

Conversation

@ranjan-stha
Copy link
Contributor

  • Add the impact items from the alert data.

@ranjan-stha ranjan-stha force-pushed the feat/usgs-impact-transformation branch from bdefbda to 9c582dc Compare December 3, 2025 08:45
event_item: Item,
) -> Item:
# TODO: handle iso2
iso2 = "test"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ranjan-stha lets take iso2 from event item


impact_item = event_item.clone()
impact_item.id = f"{STAC_IMPACT_ID_PREFIX}{impact_item.id.replace(STAC_EVENT_ID_PREFIX, '')}-{impact_type}-{iso2}"
impact_item.id = f"{impact_item.id.replace(STAC_EVENT_ID_PREFIX, STAC_IMPACT_ID_PREFIX)}-{impact_type}-{iso2}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ranjan-stha ranjan-stha force-pushed the feat/usgs-impact-transformation branch from 9c582dc to 0701fb8 Compare December 8, 2025 09:31
@ranjan-stha ranjan-stha force-pushed the feat/usgs-impact-transformation branch from 0701fb8 to 9b99293 Compare December 8, 2025 09:52
@Rup-Narayan-Rajbanshi Rup-Narayan-Rajbanshi merged commit d9e2abd into feature/gdacs-impact-transformation Dec 8, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants