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

Future reconsideration of features on MetPy's xarray accessor and its place in the ecosystem #2364

Open
jthielen opened this issue Feb 25, 2022 · 0 comments
Labels
Area: Xarray Pertains to xarray integration Type: Maintenance Updates and clean ups (but not wrong)
Milestone

Comments

@jthielen
Copy link
Collaborator

Following up on #2361, given that all of MetPy's current xarray accessor functionality is rather general-purpose (grid projections, CF coordinate awareness, unit handling, etc.) and that efforts like cf-xarray and pint-xarray have implemented many of those features in independent packages (as well as expanding beyond what MetPy does), it would be worth reconsidering on the time horizon of MetPy v2.0 what, if anything, MetPy should have in its own accessor.

As they exist now, the combination of cf-xarray and pint-xarray handle much of the features we need, just excluding those related to grid projections and related CRS-type operations. So, for those existing packages, the main question seems to be longevity and continued maintenance. With the yet-missing-elsewhere features, given the progress in xarray on explicit indexes, I have a feeling that a suitably lightweight (i.e., not rioxarray/rasterio) "geospatial coordinate utility" package will arise to support geospatial indexing concerns (probably aligned with xoak). So, I wouldn't be surprised if, by the time for v2.0 rolls around, there will be sufficient overlap of other packages to obviate the need for MetPy's own accessor utilities, and we can instead simply add dependencies on those packages.

That all being said, perhaps new features will be added to MetPy's accessors (such as those related to #3) between now and v2.0, which would mean keeping the accessors around for that reduced set of features rather than getting rid of them entirely.

@jthielen jthielen added Type: Maintenance Updates and clean ups (but not wrong) Area: Xarray Pertains to xarray integration labels Feb 25, 2022
@jthielen jthielen added this to the 2.0 milestone Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Xarray Pertains to xarray integration Type: Maintenance Updates and clean ups (but not wrong)
Projects
None yet
Development

No branches or pull requests

1 participant