xarray-contrib / xarray-schema

Schema validation for Xarray objects
https://xarray-schema.readthedocs.io/en/latest/index.html
MIT License
39 stars 8 forks source link

string comparison using regex #9

Open jhamman opened 2 years ago

jhamman commented 2 years ago

We want to be able to compare/validate string type attributes in xarray objects such as name and dimensions. The current implementation includes a direct string comparison but it would be nice to make this more flexible. We may want to support regex-style string comparisons to make comparisons more flexible.