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

Go to the source code of this file.

Functions

MTKt_status MtkFileVersion (const char *filename, char *fileversion)
 Determine MISR product file version. More...
 
MTKt_status MtkFileVersionNC (const char *filename, char *fileversion)
 
MTKt_status MtkFileVersionHDF (const char *filename, char *fileversion)
 
MTKt_status MtkFileVersionFid (int32 sd_id, char *fileversion)
 Version of MtkFileVersion that takes an HDF SD file identifier rather than a filename. More...
 
MTKt_status MtkFileVersionNcid (int ncid, char *fileversion)
 

Function Documentation

◆ MtkFileVersion()

MTKt_status MtkFileVersion ( const char *  filename,
char *  fileversion 
)

Determine MISR product file version.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we read the file version from the file MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf
status = MtkFileVersion("MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf", fileversion);
Parameters
[in]filenameFile name
[out]fileversionFile version

Definition at line 35 of file MtkFileVersion.c.

◆ MtkFileVersionFid()

MTKt_status MtkFileVersionFid ( int32  sd_id,
char *  fileversion 
)

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

Returns
MTK_SUCCESS if successful.
Parameters
[in]sd_idHDF SD file identifier
[out]fileversionFile version

Definition at line 122 of file MtkFileVersion.c.

◆ MtkFileVersionHDF()

MTKt_status MtkFileVersionHDF ( const char *  filename,
char *  fileversion 
)
Parameters
[in]filenameFile name
[out]fileversionFile version

Definition at line 81 of file MtkFileVersion.c.

◆ MtkFileVersionNC()

MTKt_status MtkFileVersionNC ( const char *  filename,
char *  fileversion 
)
Parameters
[in]filenameFile name
[out]fileversionFile version

Definition at line 47 of file MtkFileVersion.c.

◆ MtkFileVersionNcid()

MTKt_status MtkFileVersionNcid ( int  ncid,
char *  fileversion 
)
Parameters
[in]ncidnetCDF File ID
[out]fileversionFile version

Definition at line 162 of file MtkFileVersion.c.


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