xarray-schema icon indicating copy to clipboard operation
xarray-schema copied to clipboard

Extract schema from xarray objects

Open jhamman opened this issue 2 years ago • 0 comments

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 avatar May 26 '22 15:05 jhamman