ortk95 / planetmapper

PlanetMapper: An open source Python package for visualising, navigating and mapping Solar System observations
https://planetmapper.readthedocs.io
MIT License
10 stars 1 forks source link

Fix return value for `SpiceBase.angular_dist` when points are identical #357

Closed ortk95 closed 3 months ago

ortk95 commented 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.

ortk95 commented 3 months ago

E.g. get NaN when (ra, dec) = (33.32295445419726, 12.216622516821692)