MISR Toolkit  1.5.1
Functions
MtkFileCoreMetaDataGet.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 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)
 

Function Documentation

◆ MtkFileCoreMetaDataGet()

MTKt_status MtkFileCoreMetaDataGet ( const char *  filename,
const char *  param,
MtkCoreMetaData metadata 
)

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]filenameFile name
[in]paramParameter
[out]metadataCore metadata

Definition at line 40 of file MtkFileCoreMetaDataGet.c.

◆ MtkFileCoreMetaDataGetFid()

MTKt_status MtkFileCoreMetaDataGetFid ( int32  sd_id,
const char *  param,
MtkCoreMetaData metadata 
)

Version of MtkFileCoreMetaDataGet that takes an HDF SD identifier rather than a filename.

Returns
MTK_SUCCESS if successful.
Parameters
[in]sd_idHDF SD file identifier
[in]paramParameter
[out]metadataCore metadata

Definition at line 130 of file MtkFileCoreMetaDataGet.c.

◆ MtkFileCoreMetaDataGetHDF()

MTKt_status MtkFileCoreMetaDataGetHDF ( const char *  filename,
const char *  param,
MtkCoreMetaData metadata 
)
Parameters
[in]filenameFile name
[in]paramParameter
[out]metadataCore metadata

Definition at line 88 of file MtkFileCoreMetaDataGet.c.

◆ MtkFileCoreMetaDataGetNC()

MTKt_status MtkFileCoreMetaDataGetNC ( const char *  filename,
const char *  param,
MtkCoreMetaData metadata 
)
Parameters
[in]filenameFile name
[in]paramParameter
[out]metadataCore metadata

Definition at line 53 of file MtkFileCoreMetaDataGet.c.

◆ MtkFileCoreMetaDataGetNcid()

MTKt_status MtkFileCoreMetaDataGetNcid ( int  ncid,
const char *  param,
MtkCoreMetaData metadata 
)
Parameters
[in]ncidnetCDF File ID
[in]paramParameter
[out]metadataCore metadata

Definition at line 307 of file MtkFileCoreMetaDataGet.c.


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