Skip to content

Conversation

@gadomski
Copy link
Collaborator

@gadomski gadomski commented Feb 3, 2026

Description

We're fixing two issues:

The fix is two-part:

  • We've added scda back to our matches, so any ingests for paths after mid-February 2024 should now pick up scda assets
  • We've added a dataset-scda-backfill.yaml dataset definition that has the old path structure

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

I haven't tested the ingest workflows yet, I'll wait for an initial review before firing them off. We'll want to run the backfill one starting from 30 June 2023, and the main one from 01 February 2024.

Script to get the latest dates for each stream:

from pystac_client import Client

client = Client.open("https://planetarycomputer.microsoft.com/api/stac/v1")

for stream in ["oper", "wave", "enfo", "waef", "scda"]:
    search = client.search(
        collections=["ecmwf-forecast"],
        sortby="-datetime",
        filter={"op": "=", "args": [{"property": "ecmwf:stream"}, stream]},
        max_items=1,
    )
    item = next(search.items())
    print(stream, item.datetime)

Checklist:

Please delete options that are not relevant.

  • I have performed a self-review
  • Changelog has been updated
  • Documentation has been updated
  • Unit tests pass locally (./scripts/test)
  • Code is linted and styled (./scripts/format

Footnotes

  1. https://confluence.ecmwf.int/display/DAC/ECMWF+open+data:+real-time+forecasts+from+IFS+and+AIFS

@gadomski gadomski requested a review from ghidalgo3 February 3, 2026 11:54
@gadomski gadomski self-assigned this Feb 3, 2026
- uri: blob://ai4edataeuwest/ecmwf/
chunks:
options:
matches: /(00z|06z|12z|18z)/(0p25|0p4-beta)/scda(?!-opendata)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We need the hours (00z, etc) to avoid matching ifs/aifs paths

Comment on lines +23 to +28
def test_scda() -> None:
href = "blob://ai4edataeuwest/ecmwf/20230702/06z/0p4-beta/scda/20230702060000-0h-scda-fc.grib2"
storage_factory = StorageFactory()
items = EcmwfCollection.create_item(href, storage_factory)
assert isinstance(items, list)
items[0].validate()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added this test to make sure we weren't broken b/c of stactools-packages reasons, and we're not.

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