JuliaClimate / JuliaClimate/ClimateBase.jl
[FR] LonLat to LonLat interpolation
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 38
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Would be nice to have interpolation from one LonLatGrid to another type of LonLatGrid. I believe this will be relatively easy using https://github.com/JuliaMath/Interpolations.jl .
We first create a new copy array, whose other dimensions are the same as in ClimArray while the Lon Lat dims are the new ones according to user input.
We can iterate over other dimensions of the ClimArray using oidxs = otheridxs(A, (Lon(), Lat())) same way as it is done in the source code of spacemean. For each Lon x Lat slice we do a bilinear/bicubic interpolation using Interpolations.jl.
Done!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing spacemean implementation and its use of otheridxs(A, (Lon(), Lat())), then inspect ClimArray and LonLatGrid handling. Use Interpolations.jl as suggested and consider how each Lon × Lat slice should be processed; done means interpolation between user-specified LonLat grids with bilinear or bicubic behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100