#include "MisrFileQuery.h"
#include "MisrError.h"
#include <hdf.h>
#include <mfhdf.h>
Go to the source code of this file.
|
MTKt_status | MtkFileToBlockRange (const char *filename, int *start_block, int *end_block) |
| Read start and end block numbers from file. More...
|
|
MTKt_status | MtkFileToBlockRangeNC (const char *filename, int *start_block, int *end_block) |
|
MTKt_status | MtkFileToBlockRangeHDF (const char *filename, int *start_block, int *end_block) |
|
MTKt_status | MtkFileToBlockRangeFid (int32 sid, int *start_block, int *end_block) |
| Version of MtkFileToBlockRange that takes an HDF SD file identifier rather than a filename. More...
|
|
MTKt_status | MtkFileToBlockRangeNcid (int ncid, int *start_block, int *end_block) |
|
◆ MtkFileToBlockRange()
MTKt_status MtkFileToBlockRange |
( |
const char * |
filename, |
|
|
int * |
start_block, |
|
|
int * |
end_block |
|
) |
| |
Read start and end block numbers from file.
- Returns
- MTK_SUCCESS if successful.
- Example:
- In this example, we read the start and end block numbers from the file
MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf
status =
MtkFileToBlockRange(
"MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf", &start_block, &end_block);
- Parameters
-
[in] | filename | File name |
[out] | start_block | Start block |
[out] | end_block | End Block |
Definition at line 35 of file MtkFileToBlockRange.c.
◆ MtkFileToBlockRangeFid()
MTKt_status MtkFileToBlockRangeFid |
( |
int32 |
sid, |
|
|
int * |
start_block, |
|
|
int * |
end_block |
|
) |
| |
Version of MtkFileToBlockRange that takes an HDF SD file identifier rather than a filename.
- Returns
- MTK_SUCCESS if successful.
- Parameters
-
[in] | sid | HDF SD file identifier |
[out] | start_block | Start block |
[out] | end_block | End Block |
Definition at line 123 of file MtkFileToBlockRange.c.
◆ MtkFileToBlockRangeHDF()
MTKt_status MtkFileToBlockRangeHDF |
( |
const char * |
filename, |
|
|
int * |
start_block, |
|
|
int * |
end_block |
|
) |
| |
- Parameters
-
[in] | filename | File name |
[out] | start_block | Start block |
[out] | end_block | End Block |
Definition at line 83 of file MtkFileToBlockRange.c.
◆ MtkFileToBlockRangeNC()
MTKt_status MtkFileToBlockRangeNC |
( |
const char * |
filename, |
|
|
int * |
start_block, |
|
|
int * |
end_block |
|
) |
| |
- Parameters
-
[in] | filename | File name |
[out] | start_block | Start block |
[out] | end_block | End Block |
Definition at line 48 of file MtkFileToBlockRange.c.
◆ MtkFileToBlockRangeNcid()
MTKt_status MtkFileToBlockRangeNcid |
( |
int |
ncid, |
|
|
int * |
start_block, |
|
|
int * |
end_block |
|
) |
| |
- Parameters
-
[in] | ncid | netCDF File ID |
[out] | start_block | Start block |
[out] | end_block | End Block |
Definition at line 162 of file MtkFileToBlockRange.c.