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

ENH: Enabling NN interpolation for nD stacked coordinates. #488

Merged
merged 1 commit into from
Oct 11, 2021

Conversation

mpu-creare
Copy link
Contributor

This PR allows us to interpolate from the MODIS coordinates to EPSG:4326. This is a non-linear transform so the MODIS coordinates end up being 2D stacked coordinates (formerly dependent coordinates) that we need to interpolate.

This fixes the selector so that it can handle this case. It also fixes the nearest neighbor interpolator.

In the code I'm marking the 2D stacked coordinates by putting the indexes in a tuple, so that's what I'm checking for in the code. This is a bit of a hack.

@mpu-creare mpu-creare added the bug Something isn't working label Oct 11, 2021
@mpu-creare mpu-creare self-assigned this Oct 11, 2021
@mpu-creare
Copy link
Contributor Author

@jmilloy I'm merging this because I need it soon. I marked you on this one because I was really surprised that this wasn't working. I'm not sure when this broke because it used to work with dependent coordinates. I think it broke sometime between the dependent coordinates refactor and then interpolation refactor.

@mpu-creare mpu-creare merged commit 3a2a5b3 into develop Oct 11, 2021
@jmilloy
Copy link
Collaborator

jmilloy commented Oct 11, 2021

Are you still wanting me to look through it, or are you happy with it?

@mpu-creare
Copy link
Contributor Author

You don't have to, I just want to talk to you about it at some point.

@mpu-creare mpu-creare deleted the feature/stack2dinterp branch February 8, 2022 01:58
@mpu-creare mpu-creare mentioned this pull request Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants