From 0892c8f2e3e832e97b430bb1228dceefb6bd894a Mon Sep 17 00:00:00 2001 From: gaelforget Date: Sat, 14 Sep 2024 06:13:41 -0400 Subject: [PATCH] make rotate_points more robust to input type --- src/GridPaths.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GridPaths.jl b/src/GridPaths.jl index 877414b9..a84d00fc 100644 --- a/src/GridPaths.jl +++ b/src/GridPaths.jl @@ -1,6 +1,9 @@ #bring end points to the equator -> define 3D rotation matrix function rotate_points(lons,lats) + lons=transpose([lons[i] for i in eachindex(lons)]) + lats=transpose([lats[i] for i in eachindex(lats)]) + #... and of end points x0=cosd.(lats).*cosd.(lons) y0=cosd.(lats).*sind.(lons)