Skip to content

Reduce the responsibility we place on the NWP provider #470

Backlog

Description

@dfulu

In the data-sampler config we label each NWP with its provider. We then use this provider when loading the NWP. As of recent changes, the provider parameter has very little responsibility. It only contains the spatial coordinate names, and for cloudcasting an additional validation function.

We could easily remove the need for the provider when opening the NWP data. We could detect the coordinates using a function we already have (though we’d move it to a more core position within the library). We could also apply the cloudcasting validation function if geostationary coordinates are detected. That validation function just checks that all zarrs have the same satellite position.

This could improve layering in the repo since currently we import the providers into the config module which is a bit weird.

If we stop using the provider when loading the NWP data, then data-sampler would not use the provider value at all. We could completely remove it from the config if we wanted to.

There may be other reasons to keep it around solely as additional metadata. It’s currently useful in production to make sure we know which inputs the model expects. But we can stop actually using it. We could also stop validating the provider and leave that open-ended. This would be easier to add new NWPs without requiring any code changes as long as the NWPs adhere to our schema

Activity

  1. added
    enhancement
    on Nov 25, 2026
  2. changed the title [-]tbc[/-] [+]Reduce the responsibility we place on the NWP provider[/+] on Nov 25, 2026
  3. Sukh-P commented on Nov 25, 2026

    @Sukh-P
    Member

    So I like the idea of it being easier to add new NWPs without requiring any code changes as long as the NWPs adhere the the schemas and I also like the idea of keeping it for metadata reasons as it is useful for that, so if both of those things aren't in conflict with each other then I'm for this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions