MISR Toolkit  1.5.1
Functions
MtkTimeMetaRead.c File Reference
#include "MisrFileQuery.h"
#include "MisrUtil.h"
#include "MisrError.h"
#include <string.h>
#include <hdf.h>
#include <mfhdf.h>

Go to the source code of this file.

Functions

MTKt_status MtkTimeMetaRead (const char *filename, MTKt_TimeMetaData *time_metadata)
 Read time metadata from L1B2 Ellipsoid product file. More...
 
MTKt_status MtkTimeMetaReadFid (int32 hdf_id, int32 sd_id, MTKt_TimeMetaData *time_metadata)
 Version of MtkTimeMetaRead that takes an HDF SD file identifier and HDF file identifier rather than a filename. More...
 

Function Documentation

◆ MtkTimeMetaRead()

MTKt_status MtkTimeMetaRead ( const char *  filename,
MTKt_TimeMetaData time_metadata 
)

Read time metadata from L1B2 Ellipsoid product file.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we get the time metadata from the file MISR_AM1_GRP_ELLIPSOID_GM_P037_O029058_AA_F03_0024.hdf
status = MtkTimeMetaRead("MISR_AM1_GRP_ELLIPSOID_GM_P037_O029058_AA_F03_0024.hdf", &time_metadata);
Note
To compute pixel time use MtkPixelTime().
Parameters
[in]filenameL1B2 product file
[out]time_metadataTime metadata

Definition at line 39 of file MtkTimeMetaRead.c.

◆ MtkTimeMetaReadFid()

MTKt_status MtkTimeMetaReadFid ( int32  hdf_id,
int32  sd_id,
MTKt_TimeMetaData time_metadata 
)

Version of MtkTimeMetaRead that takes an HDF SD file identifier and HDF file identifier rather than a filename.

Returns
MTK_SUCCESS if successful.
Parameters
[in]hdf_idHDF file identifier
[in]sd_idHDF SD file identifier
[out]time_metadataTime metadata

Definition at line 95 of file MtkTimeMetaRead.c.


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