sphere
sphere
#
Great-circle separation on a sphere, shared by the solar and location metrics.
haversine_radians(latitudes_a, longitudes_a, latitudes_b, longitudes_b)
#
The n × m great-circle arcs between two sets of sphere points.
The haversine form stays accurate for the small separations that dominate scheduling, where the spherical cosine rule loses precision.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
latitudes_a
|
ndarray
|
Latitudes (or solar altitudes) of the first set, in radians. |
required |
longitudes_a
|
ndarray
|
Longitudes (or solar azimuths) of the first set, in radians. |
required |
latitudes_b
|
ndarray
|
Latitudes of the second set, in radians. |
required |
longitudes_b
|
ndarray
|
Longitudes of the second set, in radians. |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
The arc between every pair, in radians. |