48 int year, month, day, hour,
min, sec;
52 if (datetime == NULL || orbit == NULL || path == NULL)
55 num_values = sscanf(datetime,
"%4d-%2d-%2dT%2d:%2d:%2d",&year,&month,
56 &day,&hour,&min,&sec);
64 if (year == 2000 && month < 2)
67 if (year == 2000 && month == 2 && day < 24)
76 *orbit = (int)( (233.0 / 16.0 * ( j - JNref_995))
87 if (ref_num >
sizeof JNref /
sizeof *JNref)
88 ref_num =
sizeof JNref /
sizeof *JNref;
90 *orbit = (int)( (233.0 / 16.0 * ( j - JNref[ref_num - 1]))
#define MISR_ORBIT_REF_995
MTKt_status MtkCalToJulian(int y, int m, int d, int h, int mn, int s, double *julian)
Convert calendar date to Julian date.
#define MTK_ERR_CODE_JUMP(code)
MTKt_status MtkOrbitToPath(int orbit, int *path)
Given orbit number return path number.
#define MISR_ORBIT_REF_DT
MTKt_status MtkTimeToOrbitPath(const char *datetime, int *orbit, int *path)
Given time return orbit number and path number.
#define MTK_ERR_COND_JUMP(code)