geo2arideg

PURPOSE ^

GEO2ARIDEG converts geographic angles to arithmetic angles.

SYNOPSIS ^

function [ariAng] = geo2arideg(geoAng)

DESCRIPTION ^

GEO2ARIDEG converts geographic angles to arithmetic angles.
 geoAng is a scalar, vector, or matrix of geographic angles in
 degrees, i.e., geographic headings (North = 0, with angles
 positive clockwise) ariAng is an output of size(geoAng) with
 angles converted to angles such as those produced with atan()
 or atan2().

 EXAMPLE USAGE
   geoAng = 300
   [ariAng] = mcsADCP.geo2arideg(geoAng)
   ariAng =
 
   150

 Frank L. Engel, USGS

 SEE ALSO: mcsADCP, ari2geodeg

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [ariAng] = geo2arideg(geoAng)
0002 %GEO2ARIDEG converts geographic angles to arithmetic angles.
0003 % geoAng is a scalar, vector, or matrix of geographic angles in
0004 % degrees, i.e., geographic headings (North = 0, with angles
0005 % positive clockwise) ariAng is an output of size(geoAng) with
0006 % angles converted to angles such as those produced with atan()
0007 % or atan2().
0008 %
0009 % EXAMPLE USAGE
0010 %   geoAng = 300
0011 %   [ariAng] = mcsADCP.geo2arideg(geoAng)
0012 %   ariAng =
0013 %
0014 %   150
0015 %
0016 % Frank L. Engel, USGS
0017 %
0018 % SEE ALSO: mcsADCP, ari2geodeg
0019 ariAng = 360 - geoAng + 90;
0020 ariAng(ariAng>360) = ariAng(ariAng>360) - 360;
0021 end % function geo2arideg

Generated on Thu 21-Aug-2014 10:40:31 by m2html © 2005