ssapy_toolkit.Coordinates.on_sky_distance

Functions

lonlat_distance(lat1, lat2, lon1, lon2)

Calculate the distance between two points on the Earth's surface using the Haversine formula.

ssapy_toolkit.Coordinates.on_sky_distance.lonlat_distance(lat1: float, lat2: float, lon1: float, lon2: float) float[source]

Calculate the distance between two points on the Earth’s surface using the Haversine formula.

Parameters: - lat1, lat2 (float): Latitude of the two points in radians. - lon1, lon2 (float): Longitude of the two points in radians.

Returns: - float: Distance between the two points in kilometers.

Author: Travis Yeager (yeager7@llnl.gov)