JuliaClimate / JuliaClimate/ClimateBase.jl

[FR] LonLat to LonLat interpolation

Open
#46 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

easy feature request
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.