Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


Harris Geospatial / Docs Center / IDL Reference / I/O - EOS / EOS_EH_CONVANG

EOS_EH_CONVANG

EOS_EH_CONVANG

This function converts angles between three units: decimal degrees, radians, and packed degrees-minutes-seconds. In the degrees-minutes-seconds unit, an angle is expressed as an integral number of degrees and minutes and a float point value of seconds packed as a single double as follows: DDDMMMSSS.SS.

Examples


To convert 27.5 degrees to packed format:

inAng = 27.5
outAng = EOS_EH_CONVANG(inAng, 3)

outAng will contain the value 27030000.00.

Syntax


Result = EOS_EH_CONVANG(inAngle, code)

Return Value


Returns angle in desired units.

Arguments


inAngle

Input angle (float).

code

Conversion code (long). Allowable values are:

  • 0 = Radians to Degrees
  • 1 = Degrees to Radians
  • 2 = DMS to Degrees
  • 3 = Degrees to DMS
  • 4 = Radians to DMS
  • 5 = DMS to Radians

Keywords


None

Version History


5.2

Introduced



© 2017 Exelis Visual Information Solutions, Inc. |  Legal
My Account    |    Buy    |    Contact Us