obspy.geodetics.base.kilometer2degrees
- kilometer2degrees(kilometer, radius=6371.0)
Convenience function to convert kilometers to degrees assuming a perfectly spherical Earth.
- Parameters:
- Return type:
- Returns:
Distance in degrees as a floating point number.
Example
>>> from obspy.geodetics import kilometers2degrees >>> kilometers2degrees(300) 2.6979648177561915