Skip to content

Commit

Permalink
Quick fix: zonalmean of array with extra dimensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Datseris committed Feb 16, 2021
1 parent e1cb93e commit 1d33399
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ClimateBase"
uuid = "35604d93-0fb8-4872-9436-495b01d137e2"
authors = ["Datseris <[email protected]>", "Philippe Roy <[email protected]>"]
version = "0.10.2"
version = "0.10.3"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
2 changes: 1 addition & 1 deletion src/physical_dimensions/spatial_equalarea.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ end
function zonalmean(::EqArea, A::AbDimArray)
idxs, lats = uniquelats(A)
other = otherdims(A, Coord())
r = zeros(eltype(A), (length(lats), size.(Ref(A), other)...), other)
r = zeros(eltype(A), (length(lats), size.(Ref(A), other)...))
R = ClimArray(r, (Lat(lats), other...), A.name)
for (i, r) in enumerate(idxs)
for j in otheridxs(A, Coord())
Expand Down

0 comments on commit 1d33399

Please sign in to comment.