#include "MisrFileQuery.h"
#include "odldef.h"
#include "odlinter.h"
#include <errno.h>
#include <stdlib.h>
Go to the source code of this file.
|
MTKt_status | MtkFileCoreMetaDataGet (const char *filename, const char *param, MtkCoreMetaData *metadata) |
| Get core metadata parameter. More...
|
|
MTKt_status | MtkFileCoreMetaDataGetNC (const char *filename, const char *param, MtkCoreMetaData *metadata) |
|
MTKt_status | MtkFileCoreMetaDataGetHDF (const char *filename, const char *param, MtkCoreMetaData *metadata) |
|
MTKt_status | MtkFileCoreMetaDataGetFid (int32 sd_id, const char *param, MtkCoreMetaData *metadata) |
| Version of MtkFileCoreMetaDataGet that takes an HDF SD identifier rather than a filename. More...
|
|
MTKt_status | MtkFileCoreMetaDataGetNcid (int ncid, const char *param, MtkCoreMetaData *metadata) |
|
◆ MtkFileCoreMetaDataGet()
Get core metadata parameter.
- Returns
- MTK_SUCCESS if successful.
- Example:
- In this example, we get the value for
LOCALGRANULEID
from the core metadata in the file MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf
status =
MtkFileCoreMetaDataGet(
"MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf",
"LOCALGRANULEID", &metadata);
- Note
- The caller is responsible for using MtkCoreMetaDataFree() to free the memory used by
metadata
- Parameters
-
[in] | filename | File name |
[in] | param | Parameter |
[out] | metadata | Core metadata |
Definition at line 40 of file MtkFileCoreMetaDataGet.c.
◆ MtkFileCoreMetaDataGetFid()
Version of MtkFileCoreMetaDataGet that takes an HDF SD identifier rather than a filename.
- Returns
- MTK_SUCCESS if successful.
- Parameters
-
[in] | sd_id | HDF SD file identifier |
[in] | param | Parameter |
[out] | metadata | Core metadata |
Definition at line 130 of file MtkFileCoreMetaDataGet.c.
◆ MtkFileCoreMetaDataGetHDF()
- Parameters
-
[in] | filename | File name |
[in] | param | Parameter |
[out] | metadata | Core metadata |
Definition at line 88 of file MtkFileCoreMetaDataGet.c.
◆ MtkFileCoreMetaDataGetNC()
- Parameters
-
[in] | filename | File name |
[in] | param | Parameter |
[out] | metadata | Core metadata |
Definition at line 53 of file MtkFileCoreMetaDataGet.c.
◆ MtkFileCoreMetaDataGetNcid()
- Parameters
-
[in] | ncid | netCDF File ID |
[in] | param | Parameter |
[out] | metadata | Core metadata |
Definition at line 307 of file MtkFileCoreMetaDataGet.c.