JuliaDataCubes / JuliaDataCubes/EarthDataLab.jl

Sort time values in getCubeData if given in wrong order

Open
#51 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
34
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Currently, if a user writes

getCubeData(c,time=(Date("2003"),Date("2001")))

a cube with a time Axis of length 0 is produced. In the future we should rather either throw an error or automatically reverse the inputs. It would also be a good idea to check for 0-length axes whenever mapCube is called.

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 locating the getCubeData and mapCube entry points and reproduce the reversed-date example from the issue. Clarify whether reversed inputs should raise an error or be automatically reversed, then check how zero-length axes should be handled when mapCube is called. Done means the selected behavior is covered for both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.