20 #include <HdfEosDef.h> 120 const char *gridname,
129 if (gridname == NULL || resolution == NULL)
132 gid =
GDattach(fid, (
char *)gridname);
135 hdfstatus =
GDreadattr(gid,
"Block_size.resolution_x", (
void *)&res_x);
138 hdfstatus =
GDreadattr(gid,
"Block_size.resolution_y", (
void *)&res_y);
156 const char *gridname,
161 if (gridname == NULL || resolution == NULL)
MTKt_status MtkFileGridToResolution(const char *filename, const char *gridname, int *resolution)
Get resolution of a particular grid.
int32 GDattach(int32, char *)
intn GDreadattr(int32, char *, VOIDP)
EXTERNL int nc_get_att(int ncid, int varid, const char *name, void *ip)
#define MTK_ERR_CODE_JUMP(code)
MTKt_status MtkFileGridToResolutionFid(int32 fid, const char *gridname, int *resolution)
Version of MtkFileGridToResolution that takes an HDF-EOS file id rather than a filename.
MTKt_status MtkFileGridToResolutionHDF(const char *filename, const char *gridname, int *resolution)
MTKt_status MtkFileGridToResolutionNC(const char *filename, const char *gridname, int *resolution)
MTKt_status MtkFileGridToResolutionNcid(int ncid, const char *gridname, int *resolution)
#define MTK_ERR_COND_JUMP(code)
int32 GDopen(char *, intn)
EXTERNL int nc_close(int ncid)
EXTERNL int nc_inq_grp_ncid(int ncid, const char *grp_name, int *grp_ncid)
EXTERNL int nc_open(const char *path, int mode, int *ncidp)