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

Go to the source code of this file.

Functions

static double * JulianDateSplit (double inputJD[2], double outputJD[2])
 
static void calday (int julianDayNum, int *year, int *month, int *day)
 
MTKt_status MtkUtcJdToUtc (double jdUTCin[2], char utc_datetime[MTKd_DATETIME_LEN])
 Convert calendar date to Julian date. More...
 

Function Documentation

◆ calday()

static void calday ( int  julianDayNum,
int *  year,
int *  month,
int *  day 
)
static

Definition at line 76 of file MtkUtcJdToUtc.c.

◆ JulianDateSplit()

static double* JulianDateSplit ( double  inputJD[2],
double  outputJD[2] 
)
static

Definition at line 21 of file MtkUtcJdToUtc.c.

◆ MtkUtcJdToUtc()

MTKt_status MtkUtcJdToUtc ( double  jdUTCin[2],
char  utc_datetime[MTKd_DATETIME_LEN] 
)

Convert calendar date to Julian date.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we convert from the calendar date 2002-05-02 02:00:00 to Julian date.
status = MtkUtcJdToUtc(2002, 5, 2, 2, 0, 0, &julian);
Parameters
[in]jdUTCinUTC Julian date
[out]utc_datetimeUTC Date time

Definition at line 112 of file MtkUtcJdToUtc.c.


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