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

extrapolation #62

Open
joaogoliveira1 opened this issue May 29, 2020 · 2 comments
Open

extrapolation #62

joaogoliveira1 opened this issue May 29, 2020 · 2 comments

Comments

@joaogoliveira1
Copy link

joaogoliveira1 commented May 29, 2020

Hey,

Are there any plans to include extrapolation options in 2D like in 1D? Thanks

@joaogoliveira1
Copy link
Author

For those struggling with this limitation, I used the following quick solution for my case:

  1. I am working with a function defined over two real variables
  2. for one of them, by the nature of the problem I know that I will not have to evaluate the function above the maximum point of the grid, which means that it does not matter if the extrapolation is flat
  3. For the other variable, I did a linear approximation of the function at the end-point, for which I only need the derivative and the function evaluated at the end-point.

@kbarbary
Copy link
Collaborator

kbarbary commented May 30, 2020

Unfortunately, I believe the underlying Fortran library only supports extrapolation for 1-d splines, and I don't think it would be trivial to tack on the handling at the Julia level in Spline2D evaluation.

Thank you for posting your workaround for others!

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