JuliaDataCubes / YAXArrays.jl

Yet Another XArray-like Julia package
https://juliadatacubes.github.io/YAXArrays.jl/
Other
89 stars 14 forks source link

Improve printing of YAXArrays.Dataset #352

Open felixcremer opened 8 months ago

felixcremer commented 8 months ago

We could improve the printing of the Dataset by trying to sort the cubes by shared axes. Currently, if there is one cube without any axes all other cubes will have their axes printed seperately. This is an example of such a cube:

url = "http://esgf1.dkrz.de/thredds/fileServer/cosmo-rea/reanalysis/EUR-6km/DWD/ECMWF-ERAINT/REA6/r1i1p1f1/COSMO/v1/mon/atmos/tas/v20230314/tas_EUR-6km_ECMWF-ERAINT_REA6_r1i1p1f1_COSMO_v1_mon_200401-200412.nc"
filename = split(url, "/")[end]
mkpath("data/")
path = download(url, "data/$filename")
ds = open_dataset(path)

Here the height cube is a zero dimensional cube and throws off all other printing.