JuliaDataCubes / JuliaDataCubes/YAXArrays.jl

No positional Integer selection possible in time

Open
#400 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

breaking bug help wanted
Dominant language
Julia
Stars
132
Forks
25
PR merge metrics
No merged PRs in 30d

Description

I want to get several time slices from a cube lazily. Using the Tutorial, I assumed the following will work:

path="gs://cmip6/CMIP6/ScenarioMIP/DKRZ/MPI-ESM1-2-HR/ssp585/r1i1p1f1/3hr/tas/gn/v20190710/"
store = zopen(path, consolidated=true)
ds = open_dataset(store)

ds[Ti = 5] # works
ds[Ti = 1:5] # ERROR: ArgumentError: Chunk sizes must be strictly positive

ds[lat = 1] # works
ds[lat = 1:5] # works

Is it not intended to use integer selection on the Ti axis?

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 reproducing the Tutorial-based example with the shown zopen and open_dataset calls, comparing scalar and range selection on the Ti and lat axes. Trace the Ti range-selection path that produces “Chunk sizes must be strictly positive”; done means selecting Ti = 1:5 works lazily without that error.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.