Skip to content

Commit d984436

Browse files
author
scienceopen
committed
doc [ci skip]
1 parent 6da7dcb commit d984436

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

pymap3d/haversine.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
from astropy.coordinates.angle_utilities import angular_separation
55
"""
66
Michael Hirsch
7-
from "Astronomical Algorithms" by Jean Meeus Ch. 16 p. 111 (16.5)
8-
gives angular distance in degrees between two rightAscension,Declination
9-
points in the sky. Neglecting atmospheric effects, of course.
7+
108
119
inputs:
1210
r0,d0: for first point, rightAscension,Declination [degrees] or (azimuth,elevation)
@@ -23,7 +21,14 @@
2321

2422

2523
def angledist_meeus(r0, d0, r1, d1):
26-
""" Meeus
24+
"""
25+
Meeus
26+
from "Astronomical Algorithms" by Jean Meeus Ch. 16 p. 111 (16.5)
27+
gives angular distance in degrees between two rightAscension,Declination
28+
points in the sky. Neglecting atmospheric effects, of course.
29+
30+
Advantage of Meeus haversine method is stability all the way to exactly 0 deg.
31+
2732
assumes degrees input, degrees output
2833
2934
either the arrays must be the same size, or one of them must be a scalar

0 commit comments

Comments
 (0)