Closed ortk95 closed 3 months ago
Currently, SpiceBase.angular_dist can return NaN when (ra1, dec1) == (ra2, dec2), so we should add some check to ensure that the returned value is 0.0 in this case.
SpiceBase.angular_dist
(ra1, dec1) == (ra2, dec2)
0.0
E.g. get NaN when (ra, dec) = (33.32295445419726, 12.216622516821692)
NaN
(ra, dec) = (33.32295445419726, 12.216622516821692)
Currently,
SpiceBase.angular_dist
can return NaN when(ra1, dec1) == (ra2, dec2)
, so we should add some check to ensure that the returned value is0.0
in this case.