95 if (hdf_status ==
FAIL)
103 hdf_status =
SDend(sd_id);
104 if (hdf_status ==
FAIL)
132 if (fileversion == NULL)
140 fn_end = strchr(lgid,
'b');
144 fn_end = strstr(lgid,
".hdf");
147 while (*fn_start !=
'F')
151 strncpy(fileversion,fn_start,fn_end - fn_start);
152 fileversion[fn_end - fn_start] =
'\0';
172 if (fileversion == NULL)
180 fn_end = strstr(lgid,
".b");
182 fn_end = strstr(lgid,
".nc");
185 while (*fn_start !=
'F')
188 strncpy(fileversion,fn_start,fn_end - fn_start);
189 fileversion[fn_end - fn_start] =
'\0';
MTKt_status MtkFileVersionHDF(const char *filename, char *fileversion)
MTKt_status MtkFileVersionNC(const char *filename, char *fileversion)
MTKt_status MtkFileLGIDNcid(int ncid, char **lgid)
MTKt_status MtkFileVersionNcid(int ncid, char *fileversion)
#define MTK_ERR_CODE_JUMP(code)
HDFLIBAPI int32 SDstart(const char *name, int32 accs)
HDFLIBAPI intn SDend(int32 fid)
MTKt_status MtkFileVersion(const char *filename, char *fileversion)
Determine MISR product file version.
MTKt_status MtkFileLGIDFid(int32 sds_id, char **lgid)
Version of MtkFileLGID that takes an HDF SDS ID rather than a filename.
MTKt_status MtkFileVersionFid(int32 sd_id, char *fileversion)
Version of MtkFileVersion that takes an HDF SD file identifier rather than a filename.
#define MTK_ERR_COND_JUMP(code)
EXTERNL int nc_close(int ncid)
EXTERNL int nc_open(const char *path, int mode, int *ncidp)