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

Go to the source code of this file.

Functions

MTKt_status MtkFillValueGet (const char *filename, const char *gridname, const char *fieldname, MTKt_DataBuffer *fillbuf)
 Get fill value. More...
 
MTKt_status MtkFillValueGetNC (const char *filename, const char *gridname, const char *fieldname, MTKt_DataBuffer *fillbuf)
 
MTKt_status MtkFillValueGetHDF (const char *filename, const char *gridname, const char *fieldname, MTKt_DataBuffer *fillbuf)
 
MTKt_status MtkFillValueGetFid (int32 fid, const char *gridname, const char *fieldname, MTKt_DataBuffer *fillbuf)
 Version of MtkFillValueGet that takes an HDF-EOS file ID rather than a filename. More...
 
MTKt_status MtkFillValueGetNcid (int ncid, const char *gridname, const char *fieldname, MTKt_DataBuffer *fillbuf)
 

Function Documentation

◆ MtkFillValueGet()

MTKt_status MtkFillValueGet ( const char *  filename,
const char *  gridname,
const char *  fieldname,
MTKt_DataBuffer fillbuf 
)

Get fill value.

Returns
MTK_SUCCESS if successful.
Example:
In this example, we get the fill value from the Blue Radiance/RDQI field in the BlueBand grid in the file MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf
status = MtkFillValueGet("MISR_AM1_GRP_TERRAIN_GM_P161_O012115_DF_F03_0021.hdf", "BlueBand",
"Blue Radiance/RDQI", &fillbuf);
Note
The caller is responsible for using MtkDataBufferFree() to free the memory used by fillbuf
Parameters
[in]filenameFile name
[in]gridnameGrid name
[in]fieldnameField name
[out]fillbufFill value

Definition at line 40 of file MtkFillValueGet.c.

◆ MtkFillValueGetFid()

MTKt_status MtkFillValueGetFid ( int32  fid,
const char *  gridname,
const char *  fieldname,
MTKt_DataBuffer fillbuf 
)

Version of MtkFillValueGet that takes an HDF-EOS file ID rather than a filename.

Returns
MTK_SUCCESS if successful.
Parameters
[in]fidHDF-EOS File id
[in]gridnameGrid name
[in]fieldnameField name
[out]fillbufFill value

Definition at line 126 of file MtkFillValueGet.c.

◆ MtkFillValueGetHDF()

MTKt_status MtkFillValueGetHDF ( const char *  filename,
const char *  gridname,
const char *  fieldname,
MTKt_DataBuffer fillbuf 
)
Parameters
[in]filenameFile name
[in]gridnameGrid name
[in]fieldnameField name
[out]fillbufFill value

Definition at line 90 of file MtkFillValueGet.c.

◆ MtkFillValueGetNC()

MTKt_status MtkFillValueGetNC ( const char *  filename,
const char *  gridname,
const char *  fieldname,
MTKt_DataBuffer fillbuf 
)
Parameters
[in]filenameFile name
[in]gridnameGrid name
[in]fieldnameField name
[out]fillbufFill value

Definition at line 54 of file MtkFillValueGet.c.

◆ MtkFillValueGetNcid()

MTKt_status MtkFillValueGetNcid ( int  ncid,
const char *  gridname,
const char *  fieldname,
MTKt_DataBuffer fillbuf 
)
Parameters
[in]ncidnetCDF id
[in]gridnameGrid name
[in]fieldnameField name
[out]fillbufFill value

Definition at line 191 of file MtkFillValueGet.c.


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