Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal Dataset coords and dims validation #62

Open
ljstrnadiii opened this issue Jul 21, 2022 · 3 comments
Open

Minimal Dataset coords and dims validation #62

ljstrnadiii opened this issue Jul 21, 2022 · 3 comments
Labels
good first issue Good for newcomers

Comments

@ljstrnadiii
Copy link

What would be the minimal implementation to be merged here?

My use case is simply to check if a dataset has specific coords and dims. I could go one step further to check that each coord is indexed by specific dim.

I might just give this a try, but is there a can of worms I am simply not anticipating here?

Cheers!

https://github.com/carbonplan/xarray-schema/blob/a25777c55dde98d5732f48423706da4fc81cd1fd/xarray_schema/dataset.py#L60

@jhamman
Copy link
Contributor

jhamman commented Sep 14, 2022

Sounds great @ljstrnadiii! The one thing to watch out for is the potential to introduce schema inconsistencies (i.e. between data_vars and dataset coords). See also #39.

@jhamman jhamman added the good first issue Good for newcomers label Sep 14, 2022
@kmuehlbauer
Copy link

@ljstrnadiii Did you come any further with this?

@garciampred
Copy link

It this project alive? It is very interesting Please check #187

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants