Function File: dm2degrees (dm)

Convert degrees, minutes, and seconds components into decimal degrees.

dm must be a 2 column matrix with one row per angle, each column correspoding to its degrees (an integer), and minutes (a less than 60 value, possibly fractional) components.

The sign of the angle must be defined on its first non-zero component only, i.e., if an angle is negative, the minutes component must be positive unless its degrees component is zero.

See also: degrees2dm, degree2dms, dms2degrees.

Package: mapping