MISR Toolkit  1.5.1
Functions
MtkFileGridFieldCheck.c File Reference
#include "MisrFileQuery.h"
#include "MisrUtil.h"
#include "MisrError.h"
#include <stdlib.h>
#include <mfhdf.h>
#include <HdfEosDef.h>
#include <stdio.h>

Go to the source code of this file.

Functions

MTKt_status MtkFileGridFieldCheck (const char *filename, const char *gridname, const char *fieldname)
 Check if file/grid/field/dimension are valid. More...
 
MTKt_status MtkFileGridFieldCheckNC (const char *filename, const char *gridname, const char *fieldname)
 
MTKt_status MtkFileGridFieldCheckHDF (const char *filename, const char *gridname, const char *fieldname)
 
MTKt_status MtkFileGridFieldCheckFid (int32 Fid, const char *gridname, const char *fieldname)
 Version of MtkFileGridFieldCheck that takes an HDF-EOS file identifier rather than a filename. More...
 
MTKt_status MtkFileGridFieldCheckNcid (int ncid, const char *gridname, const char *fieldname)
 

Function Documentation

◆ MtkFileGridFieldCheck()

MTKt_status MtkFileGridFieldCheck ( const char *  filename,
const char *  gridname,
const char *  fieldname 
)

Check if file/grid/field/dimension are valid.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we check the validity of MISR_AM1_AS_LAND_P037_O029058_F06_0017.hdf the grid SubregParamsLnd the field LandBRF and the dimensions [1][0] where [1] is the Band and [0] is Camera
char *error_mesg[] = MTK_ERR_DESC;
status = MtkFileGridFieldCheck("MISR_AM1_AS_LAND_P037_O029058_F06_0017.hdf",
"SubregParamsLnd", "LandBrf[1][0]");
if (status != MTK_SUCCESS) {
printf("%s\n",error_mesg[status]);
}
Parameters
[in]filenameFile name
[in]gridnameGrid name
[in]fieldnameField name

Definition at line 42 of file MtkFileGridFieldCheck.c.

◆ MtkFileGridFieldCheckFid()

MTKt_status MtkFileGridFieldCheckFid ( int32  Fid,
const char *  gridname,
const char *  fieldname 
)

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

Returns
MTK_SUCCESS if successful.
Parameters
[in]FidHDF-EOS file identifier
[in]gridnameGrid name
[in]fieldnameField name

Definition at line 131 of file MtkFileGridFieldCheck.c.

◆ MtkFileGridFieldCheckHDF()

MTKt_status MtkFileGridFieldCheckHDF ( const char *  filename,
const char *  gridname,
const char *  fieldname 
)
Parameters
[in]filenameFile name
[in]gridnameGrid name
[in]fieldnameField name

Definition at line 90 of file MtkFileGridFieldCheck.c.

◆ MtkFileGridFieldCheckNC()

MTKt_status MtkFileGridFieldCheckNC ( const char *  filename,
const char *  gridname,
const char *  fieldname 
)
Parameters
[in]filenameFile name
[in]gridnameGrid name
[in]fieldnameField name

Definition at line 55 of file MtkFileGridFieldCheck.c.

◆ MtkFileGridFieldCheckNcid()

MTKt_status MtkFileGridFieldCheckNcid ( int  ncid,
const char *  gridname,
const char *  fieldname 
)
Parameters
[in]ncidnetCDF file identifier
[in]gridnameGrid name
[in]fieldnameField name

Definition at line 217 of file MtkFileGridFieldCheck.c.


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