Open DanDeepPhase opened 1 year ago
Rasters users gdalwarp
because it handles projections and has a lot of options. But native interpolation is better eventually.
Unfortunately Interpolations.jl is a very heavy dependency, and this package is a dep of other packages so we have to keep things lean.
DimensionalDataInterpolations.jl could be useful.
Revisiting this: with Julia 1.9 and this PR https://github.com/JuliaLang/julia/pull/47695 we can add a weak dependency on Interpolations.jl.
If you want to make a PR that extends Intpolations.jl methods to work on AbstractDimArray
in a weak dependency in this package, that would be a very useful addition.
Edit: also note that with Regular
sampling you do not need to use Gridded
interpolation - but you do if any LookupArray
for the axes has Irregular
sampling. We can really customize the interpolation method to match the traits of the LookupArray
.
Any interest in supporting interpolation along the axes?
I was able to hack it in my code with something like:
I saw you use something in rasters for re-gridding, which i think this approach is best suited for. some tweaks would be needed to get reverse ordered vectors working.
There may be a more intrusive / better way to do this by extending or creating a variant of
At()