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

Go to the source code of this file.

Functions

MTKt_status MtkFileBlockMetaList (const char *filename, int *nblockmeta, char ***blockmetalist)
 List block metadata structures. More...
 
MTKt_status MtkFileBlockMetaListFid (int32 file_id, int *nblockmeta, char ***blockmetalist)
 Version of MtkFileBlockMetaList that takes an HDF file identifier rather than a filename. More...
 

Function Documentation

◆ MtkFileBlockMetaList()

MTKt_status MtkFileBlockMetaList ( const char *  filename,
int *  nblockmeta,
char ***  blockmetalist 
)

List block metadata structures.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we get a list of the block metadata structures in the file MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf
status = MtkFileBlockMetaList("MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf", &nblockmeta, &blockmetalist);
Note
The caller is responsible for using MtkStringListFree() to free the memory used by blockmetalist
Parameters
[in]filenameFile name
[out]nblockmetaNumber of Block Metadata
[out]blockmetalistBlock Metadata List

Definition at line 40 of file MtkFileBlockMetaList.c.

◆ MtkFileBlockMetaListFid()

MTKt_status MtkFileBlockMetaListFid ( int32  file_id,
int *  nblockmeta,
char ***  blockmetalist 
)

Version of MtkFileBlockMetaList that takes an HDF file identifier rather than a filename.

Returns
MTK_SUCCESS if successful.
Parameters
[in]file_idHDF file identifier
[out]nblockmetaNumber of Block Metadata
[out]blockmetalistBlock Metadata List

Definition at line 82 of file MtkFileBlockMetaList.c.


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