MISR Toolkit  1.5.1
Functions
MtkFileGridToResolution.c File Reference
#include "MisrFileQuery.h"
#include "MisrError.h"
#include <mfhdf.h>
#include <HdfEosDef.h>

Go to the source code of this file.

Functions

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)
 

Function Documentation

◆ MtkFileGridToResolution()

MTKt_status MtkFileGridToResolution ( const char *  filename,
const char *  gridname,
int *  resolution 
)

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
status = MtkFileGridToResolution("MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf", "BlueBand", &resolution);
Parameters
[in]filenameFile name
[in]gridnameGrid name
[out]resolutionResolution

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]fidHDF-EOS file identifier
[in]gridnameGrid name
[out]resolutionResolution

Definition at line 118 of file MtkFileGridToResolution.c.

◆ MtkFileGridToResolutionHDF()

MTKt_status MtkFileGridToResolutionHDF ( const char *  filename,
const char *  gridname,
int *  resolution 
)
Parameters
[in]filenameFile name
[in]gridnameGrid name
[out]resolutionResolution

Definition at line 83 of file MtkFileGridToResolution.c.

◆ MtkFileGridToResolutionNC()

MTKt_status MtkFileGridToResolutionNC ( const char *  filename,
const char *  gridname,
int *  resolution 
)
Parameters
[in]filenameFile name
[in]gridnameGrid name
[out]resolutionResolution

Definition at line 48 of file MtkFileGridToResolution.c.

◆ MtkFileGridToResolutionNcid()

MTKt_status MtkFileGridToResolutionNcid ( int  ncid,
const char *  gridname,
int *  resolution 
)
Parameters
[in]ncidnetCDF file identifier
[in]gridnameGrid name
[out]resolutionResolution

Definition at line 154 of file MtkFileGridToResolution.c.


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