function decdegrees = ggaLatLonToDecDeg(latlon, direction)
%GGALATLONTODECDEG Converts a gga style lat or lon to properly signed
%decimal degrees
%
% Eric Martin MBARI © 2017


%% Determine sign
sign = double(direction == 'N' | direction == 'E');
sign(sign == 0) = -1;


%% Determine Degrees

degrees = floor(latlon./100);
decMin  = latlon-(degrees*100);

decdegrees = sign.*(degrees+decMin./60);
  



end