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

Go to the source code of this file.

Macros

#define __USE_BSD
 

Functions

MTKt_status MtkRadToDegMinSec (double rad, int *deg, int *min, double *sec)
 Convert radians to unpacked degrees, minutes, seconds. More...
 

Macro Definition Documentation

◆ __USE_BSD

#define __USE_BSD

Definition at line 22 of file MtkRadToDegMinSec.c.

Function Documentation

◆ MtkRadToDegMinSec()

MTKt_status MtkRadToDegMinSec ( double  rad,
int *  deg,
int *  min,
double *  sec 
)

Convert radians to unpacked degrees, minutes, seconds.

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

Definition at line 38 of file MtkRadToDegMinSec.c.


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