JuliaDataCubes / JuliaDataCubes/EarthDataLab.jl
esdc() returns unexpected cube silently
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 34
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
This should throw an error instead of silently returning the wrong cube.
julia> c = esdc(region = "Colombia", res = "high")
1440×720×1978×42 YAXArray{Union{Missing, Float32},4} with dimensions:
Dim{:lon} Sampled{Float64} -179.875:0.25:179.875 ForwardOrdered Regular Points,
Dim{:lat} Sampled{Float64} -89.875:0.25:89.875 ForwardOrdered Regular Points,
Ti Sampled{DateTime} DateTime[1979-01-05T00:00:00, …, 2021-12-31T00:00:00] ForwardOrdered Irregular Points,
Dim{:Variable} Categorical{String} String[sensible_heat, potential_evaporation, …, net_ecosystem_exchange, snow_sublimation] Unordered
units: mm d^-1
Total size: 320.87 GB
This one seems to work fine:
julia> c = esdc(region = "Colombia", res = "high", version = 2)
2760×3360×782×92 YAXArray{Union{Missing, Float32},4} with dimensions:
Dim{:lon} Sampled{Float64} -82.99622135:0.0083333:-60.00464665 ForwardOrdered Regular Points,
Dim{:lat} Sampled{Float64} 13.99613735:-0.0083333:-13.995417350000002 ReverseOrdered Regular Points,
Ti Sampled{DateTime} DateTime[2001-01-05T00:00:00, …, 2017-12-31T00:00:00] ForwardOrdered Irregular Points,
Dim{:Variable} Categorical{String} String[S_Silt, agriculture_frontier, …, MODCF_monthlymean_06, burn_date] Unordered
Total size: 2.43 TB
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 at the esdc entry point and compare the handling of the shown call without version=2 to the working version=2 call. Trace how the region, resolution, and version select a cube; done means an incompatible or unexpected selection raises an error instead of returning the wrong cube.
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