def dms2dd(dms):
    """
    DMS to decimal degrees.

    Args:
        dms (list). d must be negative for S and W.

    Return:
        float.
    """
    d, m, s = dms
    return d + m/60. + s/3600.