22 #define TIME_BETWEEN_LINE 0.0408 56 double C1, C2, C3, C4, C5, C6;
61 if (pixel_time == NULL)
68 line_275 += (float)(512.0 * (block - 1));
70 if (block < time_metadata.start_block || block > time_metadata.
end_block ||
75 for (transform = 0; transform <
NGRIDCELL; ++transform)
77 if (time_metadata.
start_line[block][transform] == 0 &&
81 if (line_275 > time_metadata.
start_line[block][transform] &&
82 line_275 < time_metadata.
start_line[block][transform] +
90 if (trfm < 0 || trfm > 1)
93 delta_line = line_275 - time_metadata.
som_ctr_x[block][trfm];
94 delta_samp = sample_275 - time_metadata.
som_ctr_y[block][trfm];
100 C5 = time_metadata.
coeff_line[block][4][trfm];
101 C6 = time_metadata.
coeff_line[block][5][trfm];
103 delta_imgl = C1 + C2 * delta_line + C3 * delta_samp + C4 * delta_samp * delta_samp +
104 C5 * delta_line * delta_samp + C6 * delta_samp * delta_samp * delta_samp;
111 status =
MtkTaiToUtc(tai_ref_time + offset, pixel_time);
MTKt_status MtkTaiToUtc(double secTAI93, char utc_datetime[MTKd_DATETIME_LEN])
Convert TAI93 to UTC.
MTKt_status MtkSomXYToBls(int path, int resolution_meters, double som_x, double som_y, int *block, float *line, float *sample)
Convert SOM X, SOM Y to block, line, sample.
#define MTK_ERR_CODE_JUMP(code)
MTKt_status MtkUtcToTai(char utc_datetime[MTKd_DATETIME_LEN], double *secTAI93)
Convert UTC to TAI93.
MTKt_status MtkPixelTime(MTKt_TimeMetaData time_metadata, double som_x, double som_y, char pixel_time[MTKd_DATETIME_LEN])
Given SOM Coordinates compute pixel time.
#define TIME_BETWEEN_LINE
#define MTK_ERR_COND_JUMP(code)
HDFFCLIBAPI intf * offset
#define MTKd_DATETIME_LEN