You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reduce the responsibility we place on the NWP provider #470
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.
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
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
Activity
[-]tbc[/-][+]Reduce the responsibility we place on the NWP provider[/+]Sukh-P commentedon Nov 25, 2026
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