Function File: deg = nm2deg (nm)
Function File: deg = nm2deg (nm, radius)
Function File: deg = nm2deg (nm, sphere)

Converts distance to angle by dividing distance by radius.

Calculates the angles deg for the distances nm in a sphere with radius (also in nautical miles). If unspecified, radius defaults to 6371 km, the mean radius of Earth and is converted to nautical miles internally.

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: km2deg.

Package: mapping