You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have the following error when using YAXArrays.Datasets.open_mfdataset. The files represent daily data (1st file is day 1, 2nd file is second day, etc). It is ERA5-Land data downloaded from Copernicus (I do not have the downloading script sadly).
using NetCDF
using YAXArrays
using Glob
repbrut ="/path/to/files"
patterns ="*copernicus_era5_land_surface.nc"
files =glob(patterns, repbrut)
obs = YAXArrays.Datasets.open_mfdataset(files[1:10]) # loading only a subset of the 3000 files
KeyError: key :Ti not found
Stacktrace:
[1] getindex
@ ./dict.jl:498 [inlined]
[2] _broadcast_getindex_evalf
@ ./broadcast.jl:709 [inlined]
[3] _broadcast_getindex
@ ./broadcast.jl:682 [inlined]
[4] #31
@ ./broadcast.jl:1118 [inlined]
[5] ntuple
@ ./ntuple.jl:50 [inlined]
[6] copy
@ ./broadcast.jl:1118 [inlined]
[7] materialize(bc::Base.Broadcast.Broadcasted{Base.Broadcast.Style{Tuple}, Nothing, typeof(getindex), Tuple{Base.RefValue{Dict{Symbol, Any}}, Tuple{Symbol, Symbol, Symbol}}})
@ Base.Broadcast ./broadcast.jl:903
[8] merge_datasets(dslist::Vector{YAXArrays.Datasets.Dataset})
@ YAXArrays.Datasets ~/.julia/packages/YAXArrays/jdA1f/src/DatasetAPI/Datasets.jl:903
[9] open_mfdataset(g::Vector{String})
@ YAXArrays.Datasets ~/.julia/packages/YAXArrays/jdA1f/src/DatasetAPI/Datasets.jl:280
[10] top-level scope
@ In[4]:5
That is something that we should fix. As a stop gap you could extract all cubes from the dataset use cat(cubes..., dims=Ti) to merge them and wrap the concatenated cubes in a Dataset.
I didn't calculated correctly the number of files... it is 27_000 files.
I am doing the following, but I get a warning about lookup tables not matching (the order of the variable name are perhaps not sorted, creating a problem? -> see "t2m" and "lai_lv" in both lists)
Hello, I have the following error when using
YAXArrays.Datasets.open_mfdataset
. The files represent daily data (1st file is day 1, 2nd file is second day, etc). It is ERA5-Land data downloaded from Copernicus (I do not have the downloading script sadly).I can open the files individually, for example:
but I am unable to merge the datasets:
As far as I can tell,
:Ti
is present in both files here (and in all 3000 files I have), but somehow it does not seems to be able to pick it up.The text was updated successfully, but these errors were encountered: