rafaqz / DimensionalData.jl

Named dimensions and indexing for julia arrays and other data
https://rafaqz.github.io/DimensionalData.jl/stable/
MIT License
274 stars 39 forks source link

Latest main branch fails somehow at opening netcdf and zarr files #635

Closed lazarusA closed 7 months ago

lazarusA commented 7 months ago

The following works with the latest stable release of DD, but it fails on main

metadata? maybe?

using Zarr, YAXArrays
using DimensionalData # add DimensionaldData#main
store ="gs://cmip6/CMIP6/ScenarioMIP/DKRZ/MPI-ESM1-2-HR/ssp585/r1i1p1f1/3hr/tas/gn/v20190710/"

g = open_dataset(zopen(store, consolidated=true)) # here is ok.
c = g["tas"] # here it breaks

same happens for

using YAXArrays, NetCDF
using Downloads
url = "https://www.unidata.ucar.edu/software/netcdf/examples/tos_O1_2001-2002.nc"
filename = Downloads.download(url, "tos_O1_2001-2002.nc") # you pick your own path
c = Cube(filename)
rafaqz commented 7 months ago

Ok I added a keyword and it broke dispatch. I will put it in IOContext instead so its not breaking.