MISR Toolkit  1.5.1
Functions
MtkFileType.c File Reference
#include "MisrFileQuery.h"
#include "MisrUtil.h"
#include "MisrError.h"
#include <hdf.h>
#include <HdfEosDef.h>
#include <string.h>

Go to the source code of this file.

Functions

MTKt_status MtkFileType (const char *filename, MTKt_FileType *filetype)
 Determine MISR product file type. More...
 
MTKt_status MtkFileTypeNC (const char *filename, MTKt_FileType *filetype)
 
MTKt_status MtkFileTypeHDF (const char *filename, MTKt_FileType *filetype)
 
MTKt_status MtkFileTypeFid (int32 Fid, MTKt_FileType *filetype)
 Version of MtkFileType that takes an HDF-EOS file identifier rather than a filename. More...
 
MTKt_status MtkFileTypeNcid (int ncid, MTKt_FileType *filetype)
 

Function Documentation

◆ MtkFileType()

MTKt_status MtkFileType ( const char *  filename,
MTKt_FileType filetype 
)

Determine MISR product file type.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we determine the file type of the file MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf
status = MtkFileType("MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf", &filetype);
Parameters
[in]filenameFile name
[out]filetypeFile type

Definition at line 37 of file MtkFileType.c.

◆ MtkFileTypeFid()

MTKt_status MtkFileTypeFid ( int32  Fid,
MTKt_FileType filetype 
)

Version of MtkFileType that takes an HDF-EOS file identifier rather than a filename.

Returns
MTK_SUCCESS if successful.
Parameters
[in]FidHDF-EOS file identifier
[out]filetypeFile type

Definition at line 119 of file MtkFileType.c.

◆ MtkFileTypeHDF()

MTKt_status MtkFileTypeHDF ( const char *  filename,
MTKt_FileType filetype 
)
Parameters
[in]filenameFile name
[out]filetypeFile type

Definition at line 83 of file MtkFileType.c.

◆ MtkFileTypeNC()

MTKt_status MtkFileTypeNC ( const char *  filename,
MTKt_FileType filetype 
)
Parameters
[in]filenameFile name
[out]filetypeFile type

Definition at line 49 of file MtkFileType.c.

◆ MtkFileTypeNcid()

MTKt_status MtkFileTypeNcid ( int  ncid,
MTKt_FileType filetype 
)
Parameters
[in]ncidnetCDF file identifier
[out]filetypeFile type

Definition at line 266 of file MtkFileType.c.


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