#include "MisrFileQuery.h"
#include "MisrError.h"
#include <mfhdf.h>
#include <HdfEosDef.h>
Go to the source code of this file.
|
MTKt_status | MtkFileGridToResolution (const char *filename, const char *gridname, int *resolution) |
| Get resolution of a particular grid. More...
|
|
MTKt_status | MtkFileGridToResolutionNC (const char *filename, const char *gridname, int *resolution) |
|
MTKt_status | MtkFileGridToResolutionHDF (const char *filename, const char *gridname, int *resolution) |
|
MTKt_status | MtkFileGridToResolutionFid (int32 fid, const char *gridname, int *resolution) |
| Version of MtkFileGridToResolution that takes an HDF-EOS file id rather than a filename. More...
|
|
MTKt_status | MtkFileGridToResolutionNcid (int ncid, const char *gridname, int *resolution) |
|
◆ MtkFileGridToResolution()
Get resolution of a particular grid.
- Returns
- MTK_SUCCESS if successful.
- Example:
- In this example, we get the resolution of the grid
BlueBand
from the file MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf
- Parameters
-
[in] | filename | File name |
[in] | gridname | Grid name |
[out] | resolution | Resolution |
Definition at line 35 of file MtkFileGridToResolution.c.
◆ MtkFileGridToResolutionFid()
MTKt_status MtkFileGridToResolutionFid |
( |
int32 |
fid, |
|
|
const char * |
gridname, |
|
|
int * |
resolution |
|
) |
| |
Version of MtkFileGridToResolution that takes an HDF-EOS file id rather than a filename.
- Returns
- MTK_SUCCESS if successful.
- Parameters
-
[in] | fid | HDF-EOS file identifier |
[in] | gridname | Grid name |
[out] | resolution | Resolution |
Definition at line 118 of file MtkFileGridToResolution.c.
◆ MtkFileGridToResolutionHDF()
MTKt_status MtkFileGridToResolutionHDF |
( |
const char * |
filename, |
|
|
const char * |
gridname, |
|
|
int * |
resolution |
|
) |
| |
- Parameters
-
[in] | filename | File name |
[in] | gridname | Grid name |
[out] | resolution | Resolution |
Definition at line 83 of file MtkFileGridToResolution.c.
◆ MtkFileGridToResolutionNC()
- Parameters
-
[in] | filename | File name |
[in] | gridname | Grid name |
[out] | resolution | Resolution |
Definition at line 48 of file MtkFileGridToResolution.c.
◆ MtkFileGridToResolutionNcid()
MTKt_status MtkFileGridToResolutionNcid |
( |
int |
ncid, |
|
|
const char * |
gridname, |
|
|
int * |
resolution |
|
) |
| |
- Parameters
-
[in] | ncid | netCDF file identifier |
[in] | gridname | Grid name |
[out] | resolution | Resolution |
Definition at line 154 of file MtkFileGridToResolution.c.