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

Go to the source code of this file.

Functions

MTKt_status MtkFileGridToNativeFieldList (const char *filename, const char *gridname, int *nfields, char **fieldlist[])
 Read list of native fields from file (excludes derived fields) More...
 
MTKt_status MtkFileGridToNativeFieldListNC (const char *filename, const char *gridname, int *nfields, char **fieldlist[])
 
MTKt_status MtkFileGridToNativeFieldListHDF (const char *filename, const char *gridname, int *nfields, char **fieldlist[])
 
MTKt_status MtkFileGridToNativeFieldListFid (int32 Fid, const char *gridname, int *nfields, char **fieldlist[])
 Version of MtkFileGridToNativeFieldList that takes an HDF-EOS file identifier rather than a filename. More...
 
MTKt_status MtkFileGridToNativeFieldListNcid (int ncid, const char *gridname, int *nfields, char **fieldlist[])
 

Function Documentation

◆ MtkFileGridToNativeFieldList()

MTKt_status MtkFileGridToNativeFieldList ( const char *  filename,
const char *  gridname,
int *  nfields,
char **  fieldlist[] 
)

Read list of native fields from file (excludes derived fields)

Returns
MTK_SUCCESS if successful.
Example:
In this example, we read the list of native fields (excludes derived fields) from the file MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf and the grid BlueBand
status = MtkFileGridToNativeFieldList("MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf", "BlueBand", &nfields, &fieldlist);
Note
The caller is responsible for using MtkStringListFree() to free the memory used by fieldlist
Parameters
[in]filenameFilename
[in]gridnameGridname
[out]nfieldsNumber of Fields
[out]fieldlistList of Fields

Definition at line 40 of file MtkFileGridToNativeFieldList.c.

◆ MtkFileGridToNativeFieldListFid()

MTKt_status MtkFileGridToNativeFieldListFid ( int32  Fid,
const char *  gridname,
int *  nfields,
char **  fieldlist[] 
)

Version of MtkFileGridToNativeFieldList that takes an HDF-EOS file identifier rather than a filename.

Returns
MTK_SUCCESS if successful.
Parameters
[in]FidHDF-EOS file identifier
[in]gridnameGridname
[out]nfieldsNumber of Fields
[out]fieldlistList of Fields

Definition at line 132 of file MtkFileGridToNativeFieldList.c.

◆ MtkFileGridToNativeFieldListHDF()

MTKt_status MtkFileGridToNativeFieldListHDF ( const char *  filename,
const char *  gridname,
int *  nfields,
char **  fieldlist[] 
)
Parameters
[in]filenameFilename
[in]gridnameGridname
[out]nfieldsNumber of Fields
[out]fieldlistList of Fields

Definition at line 90 of file MtkFileGridToNativeFieldList.c.

◆ MtkFileGridToNativeFieldListNC()

MTKt_status MtkFileGridToNativeFieldListNC ( const char *  filename,
const char *  gridname,
int *  nfields,
char **  fieldlist[] 
)
Parameters
[in]filenameFilename
[in]gridnameGridname
[out]nfieldsNumber of Fields
[out]fieldlistList of Fields

Definition at line 54 of file MtkFileGridToNativeFieldList.c.

◆ MtkFileGridToNativeFieldListNcid()

MTKt_status MtkFileGridToNativeFieldListNcid ( int  ncid,
const char *  gridname,
int *  nfields,
char **  fieldlist[] 
)
Parameters
[in]ncidnetCDF File ID
[in]gridnameGridname
[out]nfieldsNumber of Fields
[out]fieldlistList of Fields

Definition at line 217 of file MtkFileGridToNativeFieldList.c.


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