JuliaMath / JuliaMath/Interpolations.jl

Is there a way to interpolate a 2d grid with missing values.

Open
#589 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
575
Forks
117
PR merge metrics
No merged PRs in 30d

Description

Is there a way to interpolate a grid of missing values. code show as below:
```
x=[6, 6, 11, 6, 11, 16, 11, 16]
y=[61, 66, 61, 71, 66, 61, 71, 71]
z=[3, 3, 3, 2, 2, 3, 2, 2]
sorted_x = sort(unique(x)) # 6 11 16
sorted_y = sort(unique(y)) #61 66 71
zshape=z #There is no method to form a 3*3 shape
linear_interpolation((sorted_y, sorted_x), zshape) #zhape has only 8 elements, There is no method to form a 3*3 shape
```
The default grid diagram is as follows
![image](https://github.com/JuliaMath/Interpolations.jl/assets/58963158/b61a001d-5ed9-4679-ba82-789769f1a86a)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.