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

Go to the source code of this file.

Functions

MTKt_status MtkFileToPath (const char *filename, int *path)
 Read path number from file. More...
 
MTKt_status MtkFileToPathNC (const char *filename, int *path)
 
MTKt_status MtkFileToPathHDF (const char *filename, int *path)
 
MTKt_status MtkFileToPathFid (int32 sid, int *path)
 Version of MtkFileToPath that takes an HDF SD identifier rather than a filename. More...
 
MTKt_status MtkFileToPathNcid (int ncid, int *path)
 

Function Documentation

◆ MtkFileToPath()

MTKt_status MtkFileToPath ( const char *  filename,
int *  path 
)

Read path number from file.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we read the path number from the file MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf
status = MtkFileToPath("MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf", &path);
Parameters
[in]filenameFile name
[out]pathPath number

Definition at line 35 of file MtkFileToPath.c.

◆ MtkFileToPathFid()

MTKt_status MtkFileToPathFid ( int32  sid,
int *  path 
)

Version of MtkFileToPath that takes an HDF SD identifier rather than a filename.

Returns
MTK_SUCCESS if successful.
Parameters
[in]sidHDF SD file identifier
[out]pathPath number

Definition at line 117 of file MtkFileToPath.c.

◆ MtkFileToPathHDF()

MTKt_status MtkFileToPathHDF ( const char *  filename,
int *  path 
)
Parameters
[in]filenameFile name
[out]pathPath number

Definition at line 79 of file MtkFileToPath.c.

◆ MtkFileToPathNC()

MTKt_status MtkFileToPathNC ( const char *  filename,
int *  path 
)
Parameters
[in]filenameFile name
[out]pathPath number

Definition at line 46 of file MtkFileToPath.c.

◆ MtkFileToPathNcid()

MTKt_status MtkFileToPathNcid ( int  ncid,
int *  path 
)
Parameters
[in]ncidHDF SD file identifier
[out]pathPath number

Definition at line 144 of file MtkFileToPath.c.


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