JuliaDataCubes / YAXArrays.jl

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

Concatenate cubes in time #381

Open MartinuzziFrancesco opened 3 months ago

MartinuzziFrancesco commented 3 months ago

In the docs there's an example on how to concatenate cubes with different variables, so I was wondering if it is possible to concatenate cubes with same variables but on different years (eg 2011-2012) in the same cube. Also if there is a way to do it, I think it would be a nice addition to the docs

felixcremer commented 3 months ago

If you have two cubes that have the same dimensions except for the Time axis you should be able to use cat(c1, c2, dims=Ti) for the concatenation.