41 char end_time[MTKd_DATETIME_LEN] )
59 if (start_time == NULL || end_time == NULL)
64 jn = JNref_995 + 16.0 / 233.0 * ( orbit - 995 );
67 if (ref_num >
sizeof JNref /
sizeof *JNref)
68 ref_num =
sizeof JNref /
sizeof *JNref;
75 sprintf(start_time,
"%04d-%02d-%02dT%02d:%02d:%02dZ",year,month,day,hour,min,sec);
79 jn = JNref_995 + 16.0 / 233.0 * ( (orbit + 1) - 995 );
82 if (ref_num >
sizeof JNref /
sizeof *JNref)
83 ref_num =
sizeof JNref /
sizeof *JNref;
85 jn = JNref[ref_num - 1] + 16.0 / 233.0 * ( (orbit + 1) - ref_num *
MISR_ORBIT_REF_DT );
90 sprintf(end_time,
"%04d-%02d-%02dT%02d:%02d:%02dZ",year,month,day,hour,min,sec);
#define MISR_ORBIT_REF_995
#define MTK_ERR_CODE_JUMP(code)
#define MISR_ORBIT_REF_DT
MTKt_status MtkOrbitToTimeRange(int orbit, char start_time[MTKd_DATETIME_LEN], char end_time[MTKd_DATETIME_LEN])
Given a orbit number return time.
MTKt_status MtkJulianToCal(double jd, int *year, int *month, int *day, int *hour, int *min, int *sec)
Convert Julian date to calendar date.
#define MTK_ERR_COND_JUMP(code)
#define MTKd_DATETIME_LEN