MISR Toolkit  1.5.1
Functions
MtkFileCoreMetaDataQuery.c File Reference
#include "MisrFileQuery.h"
#include "odldef.h"
#include "odlinter.h"
#include <errno.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

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)
 

Function Documentation

◆ 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
status = MtkFileCoreMetaDataQuery("MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf", &nparam, &paramlist);
Note
The caller is responsible for using MtkStringListFree() to free the memory used by paramlist
Parameters
[in]filenameFile name
[out]nparamNumber of parameters
[out]paramlistParameter 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_idHDF SD file identifier
[out]nparamNumber of parameters
[out]paramlistParameter list

Definition at line 129 of file MtkFileCoreMetaDataQuery.c.

◆ MtkFileCoreMetaDataQueryHDF()

MTKt_status MtkFileCoreMetaDataQueryHDF ( const char *  filename,
int *  nparam,
char ***  paramlist 
)
Parameters
[in]filenameFile name
[out]nparamNumber of parameters
[out]paramlistParameter list

Definition at line 87 of file MtkFileCoreMetaDataQuery.c.

◆ MtkFileCoreMetaDataQueryNC()

MTKt_status MtkFileCoreMetaDataQueryNC ( const char *  filename,
int *  nparam,
char ***  paramlist 
)
Parameters
[in]filenameFile name
[out]nparamNumber of parameters
[out]paramlistParameter list

Definition at line 52 of file MtkFileCoreMetaDataQuery.c.

◆ MtkFileCoreMetaDataQueryNcid()

MTKt_status MtkFileCoreMetaDataQueryNcid ( int  ncid,
int *  nparam,
char ***  paramlist 
)
Parameters
[in]ncidnetCDF File ID
[out]nparamNumber of parameters
[out]paramlistParameter list

Definition at line 277 of file MtkFileCoreMetaDataQuery.c.


MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:53