cdm/src/main/java/ucar/unidata/geoloc/projection/proj4/MapMath.java
public static double dmsToDeg(double d, double m, double s) {
		if (d >= 0)
			return (d + m/60 + s/3600);
		return (d - m/60 - s/3600);
	}
public static double dmsToDeg(double d, double m, double s) {
		if (d >= 0)
			return (d + m/60 + s/3600);
		return (d - m/60 - s/3600);
	}
For negative angles, d should be negative, m & s positive.