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

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

Open
13299118606 opened this issue Mar 26, 2024 · 1 comment
Open

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

13299118606 opened this issue Mar 26, 2024 · 1 comment

Comments

@13299118606
Copy link

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

@mkitti
Copy link
Collaborator

mkitti commented Mar 26, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants