diff --git a/windspharm/standard.py b/windspharm/standard.py index 8215fee..1c9c789 100644 --- a/windspharm/standard.py +++ b/windspharm/standard.py @@ -137,7 +137,7 @@ def magnitude(self): spd = w.magnitude() """ - return (self.u ** 2 + self.v ** 2) ** 0.5 + return np.hypot(self.u, self.v) def vrtdiv(self, truncation=None): """Relative vorticity and horizontal divergence.