I’m quite new to Julia.
Suppose you have a 1D gridded data, say, temperature, [23.5, 20.0, . . . ]
, defined at gridpoints xs = [1.0, 2.0, 5.0, . . . ]. Assume that length(temperature) == length(xs)
and that xs
is monotonic.
Now, I want an interpolated value of temperature at x = 3.0, say. I’m aware of the Interpolations
package and have used it once. So, basically, I can write a program to achieve my goal. But, I will be doing this a lot, so I’d like to know
- Is there already a library for this?
- If not, what would be a good design strategy for this library?
If possible, I would like an interface like temperature[x = 3.0]
to get the (interpolated) value at x = 3.0.
The above example is for a 1D variable T(x)
but I use up to 5D variables. I would like a few choices for interpolation scheme like “nearest” and “linear”. I would need missing values be handled gracefully and reasonably.
. . . sounds like quite an undertaking. . . .