MISR Toolkit  1.5.1
Functions
MtkFileToOrbit.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 MtkFileToOrbit (const char *filename, int *orbit)
 Read orbit number from file. More...
 
MTKt_status MtkFileToOrbitNC (const char *filename, int *orbit)
 
MTKt_status MtkFileToOrbitHDF (const char *filename, int *orbit)
 
MTKt_status MtkFileToOrbitFid (int32 sd_id, int *orbit)
 Version of MtkFileToOrbit that takes an HDF SD file identifier rather than a filename. More...
 
MTKt_status MtkFileToOrbitNcid (int ncid, int *orbit)
 

Function Documentation

◆ MtkFileToOrbit()

MTKt_status MtkFileToOrbit ( const char *  filename,
int *  orbit 
)

Read orbit number from file.

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

Definition at line 35 of file MtkFileToOrbit.c.

◆ MtkFileToOrbitFid()

MTKt_status MtkFileToOrbitFid ( int32  sd_id,
int *  orbit 
)

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

Returns
MTK_SUCCESS if successful.
Parameters
[in]sd_idHDF SD file identifier
[out]orbitOrbit number

Definition at line 119 of file MtkFileToOrbit.c.

◆ MtkFileToOrbitHDF()

MTKt_status MtkFileToOrbitHDF ( const char *  filename,
int *  orbit 
)
Parameters
[in]filenameFile name
[out]orbitOrbit number

Definition at line 79 of file MtkFileToOrbit.c.

◆ MtkFileToOrbitNC()

MTKt_status MtkFileToOrbitNC ( const char *  filename,
int *  orbit 
)
Parameters
[in]filenameFile name
[out]orbitOrbit number

Definition at line 46 of file MtkFileToOrbit.c.

◆ MtkFileToOrbitNcid()

MTKt_status MtkFileToOrbitNcid ( int  ncid,
int *  orbit 
)
Parameters
[in]ncidnetCDF File ID
[out]orbitOrbit number

Definition at line 143 of file MtkFileToOrbit.c.


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