diff --git a/Project.toml b/Project.toml index 301f4db8..c58f1f9a 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ClimateBase" uuid = "35604d93-0fb8-4872-9436-495b01d137e2" authors = ["Datseris ", "Philippe Roy "] -version = "0.10.3" +version = "0.10.4" [deps] Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" diff --git a/src/physical_dimensions/spatial_equalarea.jl b/src/physical_dimensions/spatial_equalarea.jl index a3d90ee2..d1ccf4f7 100644 --- a/src/physical_dimensions/spatial_equalarea.jl +++ b/src/physical_dimensions/spatial_equalarea.jl @@ -71,7 +71,7 @@ function zonalmean(::EqArea, A::AbDimArray) idxs, lats = uniquelats(A) other = otherdims(A, Coord()) r = zeros(eltype(A), (length(lats), size.(Ref(A), other)...)) - R = ClimArray(r, (Lat(lats), other...), A.name) + R = ClimArray(r, (Lat(lats), other...); name=A.name, attrib=A.attrib) for (i, r) in enumerate(idxs) for j in otheridxs(A, Coord()) R[Lat(i), j...] = mean(view(A, Coord(r), j...)) @@ -85,7 +85,7 @@ function zonalmean(::EqArea, A::AbDimArray{T, 1}) where {T} for (i, r) in enumerate(idxs) res[i] = mean(view(A.data, r)) end - return ClimArray(res, (Lat(lats),)) + return ClimArray(res, (Lat(lats),); name=A.name, attrib=A.attrib) end