MISR Toolkit  1.5.1
MtkTaiToUtc.c
Go to the documentation of this file.
1 /*===========================================================================
2 = =
3 = MtkTaiToUtc =
4 = =
5 =============================================================================
6 
7  Jet Propulsion Laboratory
8  MISR
9  MISR Toolkit
10 
11  Copyright 2006, California Institute of Technology.
12  ALL RIGHTS RESERVED.
13  U.S. Government Sponsorship acknowledged.
14 
15 ============================================================================*/
16 
17 #include "MisrUtil.h"
18 #include "MisrError.h"
19 
33  double secTAI93,
34  char utc_datetime[MTKd_DATETIME_LEN] )
35 {
36  double jdTAI[2]; /* TAI Julian Date equivalent of input time */
37  double jdUTC[2]; /* UTC Julian Date equivalent of input time */
38 
39  MtkTaiToTaiJd(secTAI93, jdTAI);
40  MtkTaiJdToUtcJd(jdTAI, jdUTC);
41  MtkUtcJdToUtc(jdUTC, utc_datetime);
42 
43  return MTK_SUCCESS;
44 }
MTKt_status MtkTaiToUtc(double secTAI93, char utc_datetime[MTKd_DATETIME_LEN])
Convert TAI93 to UTC.
Definition: MtkTaiToUtc.c:32
MTKt_status MtkTaiJdToUtcJd(double jdTAI[2], double jdUTC[2])
Convert TAI Julian date to UTC Julian date.
MTKt_status MtkTaiToTaiJd(double secTAI93, double jdTAI[2])
Convert TAI93 to TAI Julian date.
Definition: MtkTaiToTaiJd.c:33
MTKt_status
Definition: MisrError.h:11
MTKt_status MtkUtcJdToUtc(double jdUTCin[2], char utc_datetime[MTKd_DATETIME_LEN])
Convert calendar date to Julian date.
#define MTKd_DATETIME_LEN
Definition: MisrUtil.h:149

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