25 #include <HdfEosDef.h> 52 const char *fieldname,
59 status =
MtkReadRawNC(filename, gridname, fieldname, region, databuf, mapinfo);
62 return MtkReadRawHDF(filename, gridname, fieldname, region, databuf, mapinfo);
68 const char *fieldname,
85 status =
MtkReadRawFid(fid, gridname, fieldname, region, databuf, mapinfo);
101 const char *gridname,
102 const char *fieldname,
120 status =
MtkReadRawNcid(ncid, gridname, fieldname, region, databuf, mapinfo);
143 const char *gridname,
144 const char *fieldname,
174 hdfstatus =
EHidinfo(fid, &HDFfid, &sid);
175 if (hdfstatus ==
FAIL)
179 if (strcmp(
"Projection_Parameters", gridname) == 0) {
250 const char *gridname,
251 const char *fieldname,
MTKt_status MtkReadRawHDF(const char *filename, const char *gridname, const char *fieldname, MTKt_Region region, MTKt_DataBuffer *databuf, MTKt_MapInfo *mapinfo)
MTKt_status MtkFileGridToResolutionNcid(int ncid, const char *gridname, int *resolution)
MTKt_status MtkDataBufferAllocate(int nline, int nsample, MTKt_DataType datatype, MTKt_DataBuffer *databuf)
Allocate Data Buffer.
HDFFCLIBAPI _fcd _fcd intf intf * datatype
int misr_init(const int nblock, const int nline, const int nsample, const float relOff[NOFFSET], const double ulc_coord[], const double lrc_coord[])
#define MTKT_MAPINFO_INIT
MISR Projection Parameters.
MTKt_status MtkReadRawFid(int32 fid, const char *gridname, const char *fieldname, MTKt_Region region, MTKt_DataBuffer *databuf, MTKt_MapInfo *mapinfo)
Version of MtkReadRaw that takes an HDF-EOS file identifier rather than a filename.
EXTERNL int nc_get_att_int(int ncid, int varid, const char *name, int *ip)
#define MTK_ERR_CODE_JUMP(code)
MTKt_status MtkFileGridFieldToDataTypeNcid(int ncid, const char *gridname, const char *fieldname, MTKt_DataType *datatype)
2-dimensional Data Buffer
MTKt_status MtkFileGridFieldToDataTypeFid(int32 fid, const char *gridname, const char *fieldname, MTKt_DataType *datatype)
Version of MtkFileGridFieldToDataType that takes an HDF-EOS file id rather than a filename...
#define MTKT_DATABUFFER_INIT
MTKt_status MtkDataBufferFree(MTKt_DataBuffer *databuf)
Free data buffer.
MTKt_status MtkReadRawNcid(int ncid, const char *gridname, const char *fieldname, MTKt_Region region, MTKt_DataBuffer *databuf, MTKt_MapInfo *mapinfo)
Version of MtkReadRaw that takes an HDF-EOS file identifier rather than a filename.
int misrfor(const double x, const double y, int *block, float *line, float *sample)
MTKt_status MtkReadRawNC(const char *filename, const char *gridname, const char *fieldname, MTKt_Region region, MTKt_DataBuffer *databuf, MTKt_MapInfo *mapinfo)
MTKt_status MtkCacheInitNcid(int ncid, const char *gridname, const char *fieldname, MTKt_Cache *cache)
MTKt_status MtkPathToProjParam(int path, int resolution_meters, MTKt_MisrProjParam *pp)
Get projection parameters.
MTKt_status MtkCachePixelGet(MTKt_Cache *cache, int block, float line, float sample, void *pixel)
Get pixel from cache.
MTKt_status MtkFileGridFieldCheckFid(int32 Fid, const char *gridname, const char *fieldname)
Version of MtkFileGridFieldCheck that takes an HDF-EOS file identifier rather than a filename...
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 MtkFileToPathFid(int32 sid, int *path)
Version of MtkFileToPath that takes an HDF SD identifier rather than a filename.
void MtkCacheFree(MTKt_Cache *cache)
Free Cache.
MTKt_status MtkFileGridFieldCheckNcid(int ncid, const char *gridname, const char *fieldname)
intn EHidinfo(int32, int32 *, int32 *)
MTKt_status MtkReadRaw(const char *filename, const char *gridname, const char *fieldname, MTKt_Region region, MTKt_DataBuffer *databuf, MTKt_MapInfo *mapinfo)
Reads any native grid/field from a MISR product file without unpacking or unscaling.
MTKt_status MtkCacheInitFid(int32 fid, const char *gridname, const char *fieldname, MTKt_Cache *cache)
Initialize Cache.
MTKt_status MtkSnapToGrid(int path, int resolution, MTKt_Region region, MTKt_MapInfo *mapinfo)
Snap a region to a MISR grid based on path number and resolution.
#define MTK_ERR_COND_JUMP(code)
int32 GDopen(char *, intn)
EXTERNL int nc_close(int ncid)
EXTERNL int nc_open(const char *path, int mode, int *ncidp)
MTKt_status MtkFileGridToResolutionFid(int32 fid, const char *gridname, int *resolution)
Version of MtkFileGridToResolution that takes an HDF-EOS file id rather than a filename.