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

Interface for using pint with xarray, providing convenience accessors

Results 35 pint-xarray issues
Sort by recently updated
recently updated
newest added

This is a list of tasks we skipped in #163: - [ ] figure out how to properly recreate an index from changed coordinates (#269) - [ ] modify the...

> @benbovy, do you have any idea about how to best do this? from_variables is a class method, so it won't preserve any options that were already on the index,...

https://github.com/xarray-contrib/pint-xarray/blob/ca4e282dda63c5b3ea39b9743fbf7165506b8e72/pint_xarray/accessors.py#L754 From the [documentation](https://pint-xarray.readthedocs.io/en/stable/generated/xarray.DataArray.pint.interp.html) it seems the kwargs argument is meant to be passed unmodified to `xarray`'s `DataArray.interp` method. However from the line above it doesn't seem to do that....

It seems not possible to index an array with quantified coordinates; see the example below. ```python import pint import pint_xarray import xarray as xr unit_registry = pint.UnitRegistry(force_ndarray_like=True) Q_ = unit_registry.Quantity...

Having to use `import pint_xarray` is a bit clunky especially since it does not have explicit usage and can be deleted by some linters. How about proposing xarray upstream to...