xarray icon indicating copy to clipboard operation
xarray copied to clipboard

`DataArray.interp` only works for numeric dtypes

Open w-k-jones opened this issue 6 months ago • 0 comments

What is your issue?

Dataset.interp was updated to allow non-numeric dtypes in #5008

However, DataArray.interp still has an outdated check for numeric dtypes, meaning that other dtypes (e.g. datetimes) result in a TypeError: https://github.com/pydata/xarray/blob/f1a2c08f21a8237c082913fcad2d77469448cf4c/xarray/core/dataarray.py#L2357

w-k-jones avatar Jun 10 '25 21:06 w-k-jones