59 if (hdf_status ==
FAIL)
67 hdf_status =
SDend(sd_id);
68 if (hdf_status ==
FAIL)
74 if (hdf_status ==
FAIL)
112 const char *cam_list[9] = {
"DF",
"CF",
"BF",
"AF",
"AN",
"AA",
"BA",
"CA",
"DA"};
114 if (time_metadata == NULL)
119 "number_transform", &number_transform);
123 "transform.ref_time", &ref_time);
127 "transform.start_line", &start_line);
131 "transform.number_line", &number_line);
135 "transform.coeff_line", &coeff_line);
139 "transform.som_ctr.x", &som_ctr_x);
143 "transform.som_ctr.y", &som_ctr_y);
156 strcpy(time_metadata->
camera, cam_list[camera.
data.
i32[0][0] - 1]);
164 for (block = 0; block < ref_time.
nline; ++block)
169 strncpy(time_metadata->
ref_time[block + 1][0], ref_time.
data.
c8[block],
184 for (block = 0; block < coeff_line.
nline; ++block)
185 for (i = 0; i < 6; ++i)
188 time_metadata->
coeff_line[block + 1][i][0] = coeff_line.
data.
d[block][i];
189 time_metadata->
coeff_line[block + 1][i][1] = coeff_line.
data.
d[block][i + 6];
#define MTK_ERR_CODE_JUMP(code)
2-dimensional Data Buffer
HDFLIBAPI int32 SDstart(const char *name, int32 accs)
#define MTKT_DATABUFFER_INIT
MTKt_status MtkDataBufferFree(MTKt_DataBuffer *databuf)
Free data buffer.
MTKt_status MtkFileToBlockRangeFid(int32 sid, int *start_block, int *end_block)
Version of MtkFileToBlockRange that takes an HDF SD file identifier rather than a filename...
HDFLIBAPI intn SDend(int32 fid)
MTKt_status MtkFileToPathFid(int32 sid, int *path)
Version of MtkFileToPath that takes an HDF SD identifier rather than a filename.
MTKt_status MtkFileBlockMetaFieldReadFid(int32 file_id, const char *blockmetaname, const char *fieldname, MTKt_DataBuffer *blockmetabuf)
Version of MtkFileBlockMetaFileRead that takes an HDF file identifier rather than a filename...
#define MTK_ERR_COND_JUMP(code)
MTKt_status MtkFileAttrGetFid(int32 sds_id, const char *attrname, MTKt_DataBuffer *attrbuf)
Version of MtkFileAttrGet that takes an HDF SD file identifier rather than a filename.
#define MTKd_DATETIME_LEN