function [plunge, trend] = dir_cosines_to_plunge_trend(l, m, n)
%JRA 4/16/09


plunge_radians = asin(n);
plunge=degrees(plunge_radians);

trend_radians = atan2(m,l);
trend=degrees(trend_radians);
if trend<0
    trend=trend+360;
end

if plunge <0
    plunge = plunge.*-1;
    trend = trend+180;
    if trend >360
        trend = trend-360;
    end
end


