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

do you really require equally spaced grids? #8

Closed
floswald opened this issue Jan 18, 2016 · 7 comments
Closed

do you really require equally spaced grids? #8

floswald opened this issue Jan 18, 2016 · 7 comments

Comments

@floswald
Copy link

hello,

i've just read through the GSL 2.1 manual: https://www.gnu.org/software/gsl/manual/html_node/2D-Introduction-to-Interpolation.html#g_t2D-Introduction-to-Interpolation

where it says that one needs two equally spaced grids x and y to use the functions for 2D interpolation. Is that true? thanks.

@tbeu
Copy link

tbeu commented Jan 18, 2016

Not to my knowledge. What is needed is a regular grid.

@floswald
Copy link
Author

And by regular grid you mean that there are n points for x, m points for y,
and nm points for z =f(x,y)?

On Monday, 18 January 2016, tbeu notifications@github.com wrote:

Not to my knowledge. What is needed is a regular grid.


Reply to this email directly or view it on GitHub
#8 (comment).

@tbeu
Copy link

tbeu commented Jan 18, 2016

exactly

@floswald
Copy link
Author

ok that's somewhat reassuring - at least that's how it should work in both
of our minds. I'd like to know for sure though from @diazona ? the GSL doc
is very confusing there.

On 18 January 2016 at 21:05, tbeu notifications@github.com wrote:

exactly


Reply to this email directly or view it on GitHub
#8 (comment).

@diazona
Copy link
Owner

diazona commented Jan 19, 2016

Indeed, the grid does not need to be equally spaced, it only needs to be rectangular. (@tbeu is right; he's worked with this code base at least as much as I have so he knows it very well.) There is actually one test which uses this feature.

@floswald I'd suggest sending a message to the GSL mailing list about this. Or if you don't want to, I can do it.

@floswald
Copy link
Author

ok good stuff. yeah if you don't mind sending that email - i'm not
subscribed.

cheers

On 19 January 2016 at 10:42, David Zaslavsky notifications@github.com
wrote:

Indeed, the grid does not need to be equally spaced, it only needs to be
rectangular. (@tbeu https://github.com/tbeu is right; he's worked with
this code base at least as much as I have so he knows it very well.) There
is actually one test
https://github.com/diazona/interp2d/blob/master/test.c#L277 which uses
this feature.

@floswald https://github.com/floswald I'd suggest sending a message to
the GSL mailing list about this. Or if you don't want to, I can do it.


Reply to this email directly or view it on GitHub
#8 (comment).

@diazona
Copy link
Owner

diazona commented Jan 20, 2016

OK, email sent. I'll continue to follow up on this, but seeing as how this is an issue with GSL, not with interp2d, I'll close it here.

@diazona diazona closed this as completed Jan 20, 2016
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

3 participants