MISR Toolkit  1.5.1
Functions
MtkDegMinSecToDd.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 MtkDegMinSecToDd (int deg, int min, double sec, double *dd)
 Convert unpacked degrees, minutes, seconds to decimal degrees. More...
 

Function Documentation

◆ MtkDegMinSecToDd()

MTKt_status MtkDegMinSecToDd ( int  deg,
int  min,
double  sec,
double *  dd 
)

Convert unpacked degrees, minutes, seconds to decimal degrees.

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

Definition at line 34 of file MtkDegMinSecToDd.c.


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