Function File: deg = km2deg (km)
Function File: deg = km2deg (km, radius)
Function File: deg = km2deg (km, sphere)

Convert distance to angle.

Calculates the angles deg for the distances km in a sphere with radius (also in kilometers). If unspecified, radius defaults to 6371, the mean radius of Earth.

Alternatively, sphere can be one of "sun", "mercury", "venus", "earth", "moon", "mars", "jupiter", "saturn", "uranus", "neptune", or "pluto", in which case radius will be set to that object mean radius.

See also: deg2km, deg2sm, km2rad, km2deg, nm2deg, nm2rad, rad2km, rad2nm, rad2sm, sm2deg, sm2rad.

Package: mapping