#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.
|
| 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[]) |
| |
◆ 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
- Note
- The caller is responsible for using MtkStringListFree() to free the memory used by fieldlist
- Parameters
-
| [in] | filename | Filename |
| [in] | gridname | Gridname |
| [out] | nfields | Number of Fields |
| [out] | fieldlist | List 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] | Fid | HDF-EOS file identifier |
| [in] | gridname | Gridname |
| [out] | nfields | Number of Fields |
| [out] | fieldlist | List 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] | filename | Filename |
| [in] | gridname | Gridname |
| [out] | nfields | Number of Fields |
| [out] | fieldlist | List 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] | filename | Filename |
| [in] | gridname | Gridname |
| [out] | nfields | Number of Fields |
| [out] | fieldlist | List 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] | ncid | netCDF File ID |
| [in] | gridname | Gridname |
| [out] | nfields | Number of Fields |
| [out] | fieldlist | List of Fields |
Definition at line 217 of file MtkFileGridToNativeFieldList.c.