YAXArrays.jl icon indicating copy to clipboard operation
YAXArrays.jl copied to clipboard

Concatenate cubes in time

Open MartinuzziFrancesco opened this issue 1 year ago • 3 comments

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

MartinuzziFrancesco avatar Mar 14 '24 16:03 MartinuzziFrancesco

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.

felixcremer avatar Mar 14 '24 16:03 felixcremer

what about providing a complete MWE here?

lazarusA avatar Sep 11 '24 18:09 lazarusA

see #481

lazarusA avatar Dec 16 '24 22:12 lazarusA