JuliaDataCubes / JuliaDataCubes/EarthDataLab.jl

exportcube issue

Open
#121 1 comment 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

Hi, I have an
In-Memory data cube with the following dimensions
LoLa Axis with 2 elements: Lon Lat
Time Axis with 1702 Elements from 1980-01-05 to 2016-12-30
Variable Axis with 4 elements: gross_primary_productivity leaf_area_index par air_temperature_2m
Total size: 66.48 KB

But the exportcube returns:

MethodError: no method matching push!(::Array{NetCDF.NcVar,2}, ::NetCDF.NcVar{Float64,1,6})
Closest candidates are:
push!(::Any, ::Any, !Matched::Any) at abstractarray.jl:2095
push!(::Any, ::Any, !Matched::Any, !Matched::Any...) at abstractarray.jl:2096
push!(!Matched::Array{Any,1}, ::Any) at array.jl:860

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 exportcube entry point and reproduce the reported MethodError with the in-memory cube dimensions described here. Determine the expected exported result from the existing export behavior, then verify that the same cube exports without the push! type mismatch.

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
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.