def dms2dd(degrees, minutes, seconds):
    """
    Utility function to convert DMS (degrees, minutes, seconds) to decimal value

    :param degrees: degrees value
    :param minutes: minutes value
    :param seconds: seconds value
    :return: decimal (float) value
    """
    if degrees >= 0.0:
        return degrees + (minutes / 60.0) + (seconds / 3600.0)
    else:
        return degrees - (minutes / 60.0) - (seconds / 3600.0)