#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 | MtkFileCoreMetaDataQuery (const char *filename, int *nparam, char ***paramlist) |
| Query file for core metadata. More...
|
|
MTKt_status | MtkFileCoreMetaDataQueryNC (const char *filename, int *nparam, char ***paramlist) |
|
MTKt_status | MtkFileCoreMetaDataQueryHDF (const char *filename, int *nparam, char ***paramlist) |
|
MTKt_status | MtkFileCoreMetaDataQueryFid (int32 sd_id, int *nparam, char ***paramlist) |
| Version of MtkFileCoreMetaDataQuery that takes an HDF SD file identifier rather than a filename. More...
|
|
MTKt_status | MtkFileCoreMetaDataQueryNcid (int ncid, int *nparam, char ***paramlist) |
|
◆ MtkFileCoreMetaDataQuery()
MTKt_status MtkFileCoreMetaDataQuery |
( |
const char * |
filename, |
|
|
int * |
nparam, |
|
|
char *** |
paramlist |
|
) |
| |
Query file for core metadata.
- Returns
- MTK_SUCCESS if successful.
- Example:
- In this example, we query the core metadata in the file
MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf
- Note
- The caller is responsible for using MtkStringListFree() to free the memory used by
paramlist
- Parameters
-
[in] | filename | File name |
[out] | nparam | Number of parameters |
[out] | paramlist | Parameter list |
Definition at line 39 of file MtkFileCoreMetaDataQuery.c.
◆ MtkFileCoreMetaDataQueryFid()
MTKt_status MtkFileCoreMetaDataQueryFid |
( |
int32 |
sd_id, |
|
|
int * |
nparam, |
|
|
char *** |
paramlist |
|
) |
| |
Version of MtkFileCoreMetaDataQuery that takes an HDF SD file identifier rather than a filename.
- Returns
- MTK_SUCCESS if successful.
- Parameters
-
[in] | sd_id | HDF SD file identifier |
[out] | nparam | Number of parameters |
[out] | paramlist | Parameter list |
Definition at line 129 of file MtkFileCoreMetaDataQuery.c.
◆ MtkFileCoreMetaDataQueryHDF()
MTKt_status MtkFileCoreMetaDataQueryHDF |
( |
const char * |
filename, |
|
|
int * |
nparam, |
|
|
char *** |
paramlist |
|
) |
| |
- Parameters
-
[in] | filename | File name |
[out] | nparam | Number of parameters |
[out] | paramlist | Parameter list |
Definition at line 87 of file MtkFileCoreMetaDataQuery.c.
◆ MtkFileCoreMetaDataQueryNC()
MTKt_status MtkFileCoreMetaDataQueryNC |
( |
const char * |
filename, |
|
|
int * |
nparam, |
|
|
char *** |
paramlist |
|
) |
| |
- Parameters
-
[in] | filename | File name |
[out] | nparam | Number of parameters |
[out] | paramlist | Parameter list |
Definition at line 52 of file MtkFileCoreMetaDataQuery.c.
◆ MtkFileCoreMetaDataQueryNcid()
MTKt_status MtkFileCoreMetaDataQueryNcid |
( |
int |
ncid, |
|
|
int * |
nparam, |
|
|
char *** |
paramlist |
|
) |
| |
- Parameters
-
[in] | ncid | netCDF File ID |
[out] | nparam | Number of parameters |
[out] | paramlist | Parameter list |
Definition at line 277 of file MtkFileCoreMetaDataQuery.c.