You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/UserGuide/compute.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,9 @@ Reduce the time dimension by calculating the average value of all points in time
86
86
import Statistics: mean
87
87
mapslices(mean, a, dims="time")
88
88
````
89
-
There is no time dimension left, because there is only one value left after averaging all time steps.
89
+
90
+
The time dimension has only a single value indicating the time interval that was used for the average. To remove this singleton dimension you can use `dropdims`.
91
+
90
92
We can also calculate spatial means resulting in one value per time step:
0 commit comments