orbitx.utils._matchups.get_dist.get_dist#
- orbitx.utils._matchups.get_dist.get_dist(existing_orbits: Dataset, new_orbit: Dataset) DataArray[source]#
Calculate the distance in kilometers on the earth (specified in decimal degrees) between a collection of orbits and a new orbit at each time stamp
- Parameters:
existing_orbits (xr.Dataset) – the orbits which have already been matched up
new_orbit (xr.Dataset) – the new orbit
- Returns:
at each time stamp, the distances between the new orbit and each of the existing orbits
- Return type:
np.array