astropenguin / xarray-dataclasses

:zap: xarray data creation by data classes
https://astropenguin.github.io/xarray-dataclasses/
MIT License
71 stars 4 forks source link

Recommended way to use this package for schema & data-validation #224

Open charlesbmi opened 5 months ago

charlesbmi commented 5 months ago

Hi, I came across this package and like the general idea. Does it also work to validate data at run-time? Was hoping to use this to validate a DataArray read in from a file. I didn't see a good general-purpose way to do this in the existing API. Happy to open a PR if you have a good idea for how to implement. Thanks!