MISR Toolkit  1.5.1
Functions
MtkFileLGID.c File Reference
#include "MisrFileQuery.h"
#include "MisrError.h"
#include <hdf.h>

Go to the source code of this file.

Functions

MTKt_status MtkFileLGID (const char *filename, char **lgid)
 Determine local granual ID of MISR product file. More...
 
MTKt_status MtkFileLGIDNC (const char *filename, char **lgid)
 
MTKt_status MtkFileLGIDHDF (const char *filename, char **lgid)
 
MTKt_status MtkFileLGIDFid (int32 sds_id, char **lgid)
 Version of MtkFileLGID that takes an HDF SDS ID rather than a filename. More...
 
MTKt_status MtkFileLGIDNcid (int ncid, char **lgid)
 

Function Documentation

◆ MtkFileLGID()

MTKt_status MtkFileLGID ( const char *  filename,
char **  lgid 
)

Determine local granual ID of MISR product file.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we read the local granual ID from the file MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf
status = MtkFileLGID("MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf", &lgid);
Note
The caller is responsible for using free() to free the memory used by lgid
Parameters
[in]filenameFile name
[out]lgidLocal Granual ID

Definition at line 37 of file MtkFileLGID.c.

◆ MtkFileLGIDFid()

MTKt_status MtkFileLGIDFid ( int32  sds_id,
char **  lgid 
)

Version of MtkFileLGID that takes an HDF SDS ID rather than a filename.

Returns
MTK_SUCCESS if successful.
Parameters
[in]sds_idHDF SDS ID
[out]lgidLocal Granual ID

Definition at line 129 of file MtkFileLGID.c.

◆ MtkFileLGIDHDF()

MTKt_status MtkFileLGIDHDF ( const char *  filename,
char **  lgid 
)
Parameters
[in]filenameFile name
[out]lgidLocal Granual ID

Definition at line 83 of file MtkFileLGID.c.

◆ MtkFileLGIDNC()

MTKt_status MtkFileLGIDNC ( const char *  filename,
char **  lgid 
)
Parameters
[in]filenameFile name
[out]lgidLocal Granual ID

Definition at line 49 of file MtkFileLGID.c.

◆ MtkFileLGIDNcid()

MTKt_status MtkFileLGIDNcid ( int  ncid,
char **  lgid 
)
Parameters
[in]ncidnetCDF file identifier
[out]lgidLocal Granual ID

Definition at line 195 of file MtkFileLGID.c.


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