MISR Toolkit  1.5.1
Functions
MtkDmsToDegMinSec.c File Reference
#include "MisrUnitConv.h"
#include "MisrError.h"
#include <math.h>

Go to the source code of this file.

Functions

MTKt_status MtkDmsToDegMinSec (double dms, int *deg, int *min, double *sec)
 Convert packed degrees, minutes, seconds to unpacked. More...
 

Function Documentation

◆ MtkDmsToDegMinSec()

MTKt_status MtkDmsToDegMinSec ( double  dms,
int *  deg,
int *  min,
double *  sec 
)

Convert packed degrees, minutes, seconds to unpacked.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we convert 130004058.23 dms to unpacked degrees, minutes, seconds.
status = MtkDmsToDegMinSec(130004058.23, &deg, &min, &sec);
Parameters
[in]dmsPacked degrees, minutes, seconds
[out]degDegrees
[out]minMinutes
[out]secSeconds

Definition at line 33 of file MtkDmsToDegMinSec.c.


MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:53