Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

key :Ti not found #336

Closed
kongdd opened this issue Sep 27, 2023 · 1 comment · Fixed by #337
Closed

key :Ti not found #336

kongdd opened this issue Sep 27, 2023 · 1 comment · Fixed by #337

Comments

@kongdd
Copy link
Contributor

kongdd commented Sep 27, 2023

using EarthDataLab
using DimensionalData
using Zarr, YAXArrays, NetCDF, DiskArrays

# other relevant packages
# using Statistics, Dates, SkipNan

ra = esdc(res="tiny")

ra_tair = ra[variable=At("air_temperature_2m")]
ra_resp = ra[variable=At("terrestrial_ecosystem_respiration")]
ds = Dataset(tair=ra_tair, resp=ra_resp)
f = "./DATA/hello.zarr"
savedataset(ds, path=f, driver=:zarr, overwrite=true)
ERROR: KeyError: key :Ti not found
Stacktrace:
 [1] getindex(h::Dict{Symbol, Int64}, key::Symbol)
   @ Base .\dict.jl:484
 [2] #93
   @ .\none:0 [inlined]
 [3] iterate
   @ .\generator.jl:47 [inlined]
 [4] collect(itr::Base.Generator{Base.KeySet{Symbol, Dict{Symbol, DimensionalData.Dimensions.Dimension}}, YAXArrays.Datasets.var"#93#99"{Dict{Symbol, Int64}}})
   @ Base .\array.jl:782
 [5] savedataset(ds::Dataset; path::String, persist::Nothing, overwrite::Bool, append::Bool, skeleton::Bool, backend::Symbol, driver::Symbol, max_cache::Float64, writefac::Float64, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ YAXArrays.Datasets C:\Users\kongdd\.julia\packages\YAXArrays\lvvMa\src\DatasetAPI\Datasets.jl:562
@kongdd
Copy link
Contributor Author

kongdd commented Oct 1, 2023

closed as duplicated with #330

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant