pydata / pydata/xarray

xarray interp with method="cubic" fails for time/lon/lat interpolation

Open
#11,342 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs mcve needs triage
Dominant language
Python
Stars
4.2k
Forks
1.4k
Avg merge
2d 15h
Merged PRs (30d)
14

Description

Hi, I am trying to interpolate a TEC DataArray using xarray:

tec_val0 = float(
    tecxr.interp(time=pretime, lon=lon0, lat=lat, method="cubic")
)

This work with 'method="linear"' but it never ends when I use 'method="cubic"'?

I am a bit confused as it was alright; just for couple of months ago

Is anyone experience same problem or any update?

Cheers,
MN

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the shown xarray DataArray interpolation with method="linear" and method="cubic", recording the xarray and dependency versions and checking where the cubic call stalls. Compare the interpolation path with recent changes, then define done as identifying the regression or cause and adding a regression test that distinguishes the two methods.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.