Skip to content

Commit

Permalink
make rotate_points more robust to input type
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelforget committed Sep 14, 2024
1 parent 443a022 commit 0892c8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/GridPaths.jl
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 0892c8f

Please sign in to comment.