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

Go to the source code of this file.

Functions

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)
 

Function Documentation

◆ 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]filenameFile name
[out]start_blockStart block
[out]end_blockEnd 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]sidHDF SD file identifier
[out]start_blockStart block
[out]end_blockEnd Block

Definition at line 123 of file MtkFileToBlockRange.c.

◆ MtkFileToBlockRangeHDF()

MTKt_status MtkFileToBlockRangeHDF ( const char *  filename,
int *  start_block,
int *  end_block 
)
Parameters
[in]filenameFile name
[out]start_blockStart block
[out]end_blockEnd Block

Definition at line 83 of file MtkFileToBlockRange.c.

◆ MtkFileToBlockRangeNC()

MTKt_status MtkFileToBlockRangeNC ( const char *  filename,
int *  start_block,
int *  end_block 
)
Parameters
[in]filenameFile name
[out]start_blockStart block
[out]end_blockEnd Block

Definition at line 48 of file MtkFileToBlockRange.c.

◆ MtkFileToBlockRangeNcid()

MTKt_status MtkFileToBlockRangeNcid ( int  ncid,
int *  start_block,
int *  end_block 
)
Parameters
[in]ncidnetCDF File ID
[out]start_blockStart block
[out]end_blockEnd Block

Definition at line 162 of file MtkFileToBlockRange.c.


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