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

Go to the source code of this file.

Functions

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

Function Documentation

◆ MtkDegMinSecToDms()

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

Convert unpacked Degrees, minutes, seconds to packed.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we convert 130 degress, 4 minutes, and 58.23 seconds to packed degrees, minutes, seconds.
status = MtkDegMinSecToDms(130, 4, 58.23, &dms);
Parameters
[in]degDegrees
[in]minMinutes
[in]secSeconds
[out]dmsPacked degrees, minutes, seconds

Definition at line 35 of file MtkDegMinSecToDms.c.


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