innolitics / natural-neighbor-interpolation

Fast, discrete natural neighbor interpolation in 3D on the CPU.
MIT License
81 stars 18 forks source link

switching off extrapolation #5

Open anorak94 opened 4 years ago

anorak94 commented 4 years ago

hey is there a way to switch off extrapolation

johndgiese commented 4 years ago

There is not currently a graceful way to do this. In our demo we manually do this by setting values that are nan in the linear interpolation to nan:

https://github.com/innolitics/natural-neighbor-interpolation/blob/master/demo/demo.py#L45

Of course, this is a poor solution in general.