21 #include <HdfEosDef.h> 125 const char *gridname,
139 if (gridname == NULL ||
140 attrname == NULL || attrbuf == NULL)
143 gid =
GDattach(fid, (
char*)gridname);
146 hdfstatus =
GDattrinfo(gid, (
char*)attrname, &hdf_datatype, &hdf_datasize);
161 *attrbuf = attrbuf_tmp;
172 const char *gridname,
182 if (gridname == NULL ||
183 attrname == NULL || attrbuf == NULL)
209 *attrbuf = attrbuf_tmp;
MTKt_status MtkGridAttrGetNC(const char *filename, const char *gridname, const char *attrname, MTKt_DataBuffer *attrbuf)
MTKt_status MtkNcToMtkDataTypeConvert(nc_type nc_datatype, MTKt_DataType *datatype)
EXTERNL int nc_inq_atttype(int ncid, int varid, const char *name, nc_type *xtypep)
MTKt_status MtkDataBufferAllocate(int nline, int nsample, MTKt_DataType datatype, MTKt_DataBuffer *databuf)
Allocate Data Buffer.
HDFFCLIBAPI _fcd _fcd intf intf * datatype
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)
intn GDattrinfo(int32, char *, int32 *, int32 *)
2-dimensional Data Buffer
HDFFCLIBAPI intf intf _fcd attrname
MTKt_status MtkHdfToMtkDataTypeConvert(int32 hdf_datatype, MTKt_DataType *datatype)
Convert HDF data type to MISR Toolkit data type.
#define MTKT_DATABUFFER_INIT
MTKt_status MtkDataBufferFree(MTKt_DataBuffer *databuf)
Free data buffer.
MTKt_status MtkGridAttrGet(const char *filename, const char *gridname, const char *attrname, MTKt_DataBuffer *attrbuf)
Get a grid attribute.
MTKt_status MtkGridAttrGetHDF(const char *filename, const char *gridname, const char *attrname, MTKt_DataBuffer *attrbuf)
MTKt_status MtkGridAttrGetFid(int32 fid, const char *gridname, const char *attrname, MTKt_DataBuffer *attrbuf)
Version of MtkFileGridAttrGet that takes an HDF-EOS file ID rather than a filename.
MTKt_status MtkGridAttrGetNcid(int ncid, const char *gridname, const char *attrname, MTKt_DataBuffer *attrbuf)
#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)