List of Routines By Functionality | MISR Toolkit: Main Page
-Abstract
MTK_DMS_TO_DD converts packed degrees/minutes/seconds to decimal degrees.
-Copyright
Copyright (2005), California Institute of Technology.
U.S. Government sponsorship acknowledged.
-I/O
Given:
packed_dms packed degrees/minutes/seconds
the call:
status = MTK_DMS_TO_DD( packed_dms, dd )
returns:
status 0 on success; otherwise failure
dd decimal degrees
-Examples
;;
;; Set up input parameters
;;
packed_dms = 65033000.010
status = MTK_DMS_TO_DD( packed_dms, dd )
;;
;; Output...
;;
print, 'packed dms : ', packed_dms
print, '================================================='
print, 'DECIMAL DEGREES : ',dd,FORMAT='(A,F15.3)'
IDL outputs:
packed dms : 6.50330e+07
=================================================
DECIMAL DEGREES : 65.550
-Particulars
None.
-Required Reading
For important details concerning this module's function, please refer to
the MTK routine MtkDmsToDd.c.
-Version
-IDL-MTK Version 1.2.0