JuliaDataCubes / JuliaDataCubes/EarthDataLab.jl
Sort time values in getCubeData if given in wrong order
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
- 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 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