Rasters.jl icon indicating copy to clipboard operation
Rasters.jl copied to clipboard

Feature request: interpolation options in extract

Open alex-s-gardner opened this issue 1 year ago • 5 comments

When using extract to retrieve point values from a Raster it would be useful if the user could specify an interpolation option.

alex-s-gardner avatar Apr 29 '24 18:04 alex-s-gardner

Where would the interp algs come from

rafaqz avatar Apr 29 '24 22:04 rafaqz

Where would the interp algs come from

I think the best option is Interpolations.jl

alex-s-gardner avatar Apr 29 '24 23:04 alex-s-gardner

I just had an idea to do this lower down in DimensionalData.jl. Like have an Interp selector that returns an Interpolations.jl interpolator thing.

You could do thing like rast[X=Interp(x, Spline()), Y=Interp(x, Linear()), Ti=Near(DateTime(2020)))] and it would just work.

Then extract could just call this.

rafaqz avatar Sep 30 '24 11:09 rafaqz

That would be ideal

alex-s-gardner avatar Sep 30 '24 15:09 alex-s-gardner