JuliaDataCubes / YAXArrays.jl

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

Automatic parsing of dimension names leads to duplicated 'Ti' dimensions #468

Open jamesafranke opened 5 hours ago

jamesafranke commented 5 hours ago

Hi! Love the package!

using YAXArrays, Zarr 
ds = open_dataset( zopen( "gs://weatherbench2/datasets/keisler/2020-360x181.zarr") )

leads to:

Screen Shot 2024-11-07 at 2 20 56 PM

The original dataset has a time and a prediction_timedelta (forecast horizon). I cannot find where this is getting automatically parsed into Ti. Maybe it is within DimensionalData.jl somewhere. Any way to override this behavior?

Screen Shot 2024-11-07 at 2 23 06 PM
jamesafranke commented 5 hours ago

Never mind. I was able to rename one of the TI axes for a single cube:

temp = renameaxis!(ds.temperature, :Ti=>:Ti2)

Screen Shot 2024-11-07 at 2 48 22 PM

Since two time axes is somewhat rare...probably fine to just do it this way. 😄