106 hdfstatus =
SDend(sid);
107 if (hdfstatus ==
FAIL)
131 int32 start_block_tmp;
134 if (start_block == NULL || end_block == NULL)
138 if (attr_index ==
FAIL)
141 status =
SDreadattr(sid, attr_index, &start_block_tmp);
146 if (attr_index ==
FAIL)
149 status =
SDreadattr(sid, attr_index, &end_block_tmp);
153 *start_block = start_block_tmp;
154 *end_block = end_block_tmp;
171 if (start_block == NULL || end_block == NULL)
183 *start_block = start_block_tmp;
184 *end_block = end_block_tmp;
MTKt_status MtkFileToBlockRangeHDF(const char *filename, int *start_block, int *end_block)
EXTERNL int nc_get_att_int(int ncid, int varid, const char *name, int *ip)
#define MTK_ERR_CODE_JUMP(code)
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 int32 SDstart(const char *name, int32 accs)
HDFLIBAPI intn SDreadattr(int32 id, int32 idx, void *buf)
HDFLIBAPI intn SDend(int32 fid)
HDFLIBAPI int32 SDfindattr(int32 id, const char *attrname)
MTKt_status MtkFileToBlockRangeNC(const char *filename, int *start_block, int *end_block)
#define MTK_ERR_COND_JUMP(code)
EXTERNL int nc_close(int ncid)
MTKt_status MtkFileToBlockRangeNcid(int ncid, int *start_block, int *end_block)
EXTERNL int nc_open(const char *path, int mode, int *ncidp)
MTKt_status MtkFileToBlockRange(const char *filename, int *start_block, int *end_block)
Read start and end block numbers from file.