#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.
|
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) |
|
◆ MtkFileGridFieldCheck()
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
"SubregParamsLnd", "LandBrf[1][0]");
printf("%s\n",error_mesg[status]);
}
- Parameters
-
[in] | filename | File name |
[in] | gridname | Grid name |
[in] | fieldname | Field name |
Definition at line 42 of file MtkFileGridFieldCheck.c.
◆ MtkFileGridFieldCheckFid()
Version of MtkFileGridFieldCheck that takes an HDF-EOS file identifier rather than a filename.
- Returns
- MTK_SUCCESS if successful.
- Parameters
-
[in] | Fid | HDF-EOS file identifier |
[in] | gridname | Grid name |
[in] | fieldname | Field name |
Definition at line 131 of file MtkFileGridFieldCheck.c.
◆ MtkFileGridFieldCheckHDF()
- Parameters
-
[in] | filename | File name |
[in] | gridname | Grid name |
[in] | fieldname | Field name |
Definition at line 90 of file MtkFileGridFieldCheck.c.
◆ MtkFileGridFieldCheckNC()
- Parameters
-
[in] | filename | File name |
[in] | gridname | Grid name |
[in] | fieldname | Field name |
Definition at line 55 of file MtkFileGridFieldCheck.c.
◆ MtkFileGridFieldCheckNcid()
- Parameters
-
[in] | ncid | netCDF file identifier |
[in] | gridname | Grid name |
[in] | fieldname | Field name |
Definition at line 217 of file MtkFileGridFieldCheck.c.