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

Extract schema from xarray objects #45

Open
jhamman opened this issue May 26, 2022 · 0 comments
Open

Extract schema from xarray objects #45

jhamman opened this issue May 26, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jhamman
Copy link
Contributor

jhamman commented May 26, 2022

One way users may want to generate schemas is from xarray objects directly. We could add a utility here that supports this workflow.

This could be a function

schema = create_schema(ds)

Or a class method:

schema = DatasetSchema.from_dataset(ds)

Or as an Xarray accessor extension:

schema = ds.schema.create()
@jhamman jhamman added enhancement New feature or request good first issue Good for newcomers labels May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant