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

Go to the source code of this file.

Functions

MTKt_status MtkDdToDms (double dd, double *dms)
 Convert decimal degrees to packed degrees, minutes, seconds. More...
 

Function Documentation

◆ MtkDdToDms()

MTKt_status MtkDdToDms ( double  dd,
double *  dms 
)

Convert decimal degrees to packed degrees, minutes, seconds.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we convert 130.08284167 degrees to packed degrees, minutes, seconds.
status = MtkDdToDms(130.08284167, &dms);
Parameters
[in]ddDecimal degrees
[out]dmsPacked degrees, minutes, seconds

Definition at line 33 of file MtkDdToDms.c.


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