Function File: nm = rad2nm (rad)
Function File: nm = rad2nm (rad, radius)
Function File: nm = rad2nm (rad, sphere)

Converts angle in radians to distance in nautical miles by multiplying angle with radius.

Calculates the distances nm in a sphere with radius (also in nautical miles) for the angles rad. If unspecified, radius defaults to 3440 nm, 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’s mean radius.

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

Package: mapping