#include "MisrFileQuery.h"
#include "MisrUtil.h"
#include "MisrError.h"
#include <stdlib.h>
#include <mfhdf.h>
#include <HdfEosDef.h>
Go to the source code of this file.
|
MTKt_status | MtkFillValueGet (const char *filename, const char *gridname, const char *fieldname, MTKt_DataBuffer *fillbuf) |
| Get fill value. More...
|
|
MTKt_status | MtkFillValueGetNC (const char *filename, const char *gridname, const char *fieldname, MTKt_DataBuffer *fillbuf) |
|
MTKt_status | MtkFillValueGetHDF (const char *filename, const char *gridname, const char *fieldname, MTKt_DataBuffer *fillbuf) |
|
MTKt_status | MtkFillValueGetFid (int32 fid, const char *gridname, const char *fieldname, MTKt_DataBuffer *fillbuf) |
| Version of MtkFillValueGet that takes an HDF-EOS file ID rather than a filename. More...
|
|
MTKt_status | MtkFillValueGetNcid (int ncid, const char *gridname, const char *fieldname, MTKt_DataBuffer *fillbuf) |
|
◆ MtkFillValueGet()
Get fill value.
- Returns
- MTK_SUCCESS if successful.
- Example:
- In this example, we get the fill value from the
Blue Radiance/RDQI
field in the BlueBand
grid in the file MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf
status =
MtkFillValueGet(
"MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf",
"BlueBand",
"Blue Radiance/RDQI", &fillbuf);
- Note
- The caller is responsible for using MtkDataBufferFree() to free the memory used by
fillbuf
- Parameters
-
[in] | filename | File name |
[in] | gridname | Grid name |
[in] | fieldname | Field name |
[out] | fillbuf | Fill value |
Definition at line 40 of file MtkFillValueGet.c.
◆ MtkFillValueGetFid()
Version of MtkFillValueGet that takes an HDF-EOS file ID rather than a filename.
- Returns
- MTK_SUCCESS if successful.
- Parameters
-
[in] | fid | HDF-EOS File id |
[in] | gridname | Grid name |
[in] | fieldname | Field name |
[out] | fillbuf | Fill value |
Definition at line 126 of file MtkFillValueGet.c.
◆ MtkFillValueGetHDF()
- Parameters
-
[in] | filename | File name |
[in] | gridname | Grid name |
[in] | fieldname | Field name |
[out] | fillbuf | Fill value |
Definition at line 90 of file MtkFillValueGet.c.
◆ MtkFillValueGetNC()
- Parameters
-
[in] | filename | File name |
[in] | gridname | Grid name |
[in] | fieldname | Field name |
[out] | fillbuf | Fill value |
Definition at line 54 of file MtkFillValueGet.c.
◆ MtkFillValueGetNcid()
- Parameters
-
[in] | ncid | netCDF id |
[in] | gridname | Grid name |
[in] | fieldname | Field name |
[out] | fillbuf | Fill value |
Definition at line 191 of file MtkFillValueGet.c.