obspy.geodetics.base.mean_longitude
- mean_longitude(longitudes)[source]
Compute sample mean longitude, assuming longitude in degrees from -180 to 180.
>>> lons = (-170.5, -178.3, 166) >>> np.mean(lons) -60.933 >>> mean_longitude(lons) 179.08509...
- Parameters:
longitudes (
ndarray
(or list, ..)) – Geographical longitude values ranging from -180 to 180 in degrees.