dms_to_decimal: Convert latitude or longitude to decimal degrees
Description
Converts coordinates expressed in degrees, minutes and seconds (DMS) or degrees and minutes (DM)
format to decimal degrees. By default, coordinates are assumed to be in the southern hemisphere
(negative latitudes). The function can automatically correct common errors such as minutes or
seconds greater than 60.