One might want to reduce spatial dimensions e.g. to get a spatial average.
However, the result is not a proper CellCube anymore due to the lack of spatial dimensions.
Solutions
Return a plain YAXArray e.g. after mapslices(mean, dggs[6]; dims=["q2di_i", "q2di_j"]). Then, mapslice will change the type from input CellCube to output YAXArray
Throw an error stating thata proper CellCube couldn't be thrown
Problem
One might want to reduce spatial dimensions e.g. to get a spatial average. However, the result is not a proper CellCube anymore due to the lack of spatial dimensions.
Solutions
mapslices(mean, dggs[6]; dims=["q2di_i", "q2di_j"])
. Then, mapslice will change the type from input CellCube to output YAXArrayWhat do you think? @meggart