MISR Toolkit  1.5.1
Data Structures | Macros | Functions
MisrCache.h File Reference
#include "MisrReadData.h"
#include "MisrError.h"
#include "MisrProjParam.h"
#include "MisrUtil.h"

Go to the source code of this file.

Data Structures

struct  MTKt_Block
 Block (Low Level) More...
 
struct  MTKt_Cache
 Cache (Low Level) More...
 

Macros

#define BLOCK_CACHE_MAX   2
 
#define MTKT_BLOCK_INIT   { MTK_FALSE, MTKT_DATABUFFER_INIT }
 
#define MTKT_CACHE_INIT   { FAIL, 0, NULL, NULL, 0, MTKT_DATABUFFER_INIT, {MTKT_BLOCK_INIT} }
 

Functions

MTKt_status MtkCacheInitFid (int32 fid, const char *gridname, const char *fieldname, MTKt_Cache *cache)
 Initialize Cache. More...
 
MTKt_status MtkCacheInitNcid (int ncid, const char *gridname, const char *fieldname, MTKt_Cache *cache)
 
MTKt_status MtkCachePixelGet (MTKt_Cache *cache, int block, float line, float sample, void *pixel)
 Get pixel from cache. More...
 
MTKt_status MtkCacheLoad (MTKt_Cache *cache, int block)
 Load Cache. More...
 
void MtkCacheFree (MTKt_Cache *cache)
 Free Cache. More...
 

Macro Definition Documentation

◆ BLOCK_CACHE_MAX

#define BLOCK_CACHE_MAX   2

Definition at line 25 of file MisrCache.h.

◆ MTKT_BLOCK_INIT

#define MTKT_BLOCK_INIT   { MTK_FALSE, MTKT_DATABUFFER_INIT }

Definition at line 33 of file MisrCache.h.

◆ MTKT_CACHE_INIT

#define MTKT_CACHE_INIT   { FAIL, 0, NULL, NULL, 0, MTKT_DATABUFFER_INIT, {MTKT_BLOCK_INIT} }

Definition at line 46 of file MisrCache.h.

Function Documentation

◆ MtkCacheFree()

void MtkCacheFree ( MTKt_Cache cache)

Free Cache.

Parameters
cacheCache

Definition at line 229 of file MtkCache.c.

◆ MtkCacheInitFid()

MTKt_status MtkCacheInitFid ( int32  fid,
const char *  gridname,
const char *  fieldname,
MTKt_Cache cache 
)

Initialize Cache.

Returns
Initialized Cache
Parameters
fidHDF-EOS file identifier
gridnameGrid name
fieldnameField name
cacheCache

Definition at line 33 of file MtkCache.c.

◆ MtkCacheInitNcid()

MTKt_status MtkCacheInitNcid ( int  ncid,
const char *  gridname,
const char *  fieldname,
MTKt_Cache cache 
)
Parameters
ncidfile identifier
gridnameGrid name
fieldnameField name
cacheCache

Definition at line 79 of file MtkCache.c.

◆ MtkCacheLoad()

MTKt_status MtkCacheLoad ( MTKt_Cache cache,
int  block 
)

Load Cache.

Parameters
cacheCache
blockBlock Number

Definition at line 184 of file MtkCache.c.

◆ MtkCachePixelGet()

MTKt_status MtkCachePixelGet ( MTKt_Cache cache,
int  block,
float  line,
float  sample,
void *  pixel 
)

Get pixel from cache.

Returns
Pixel
Parameters
cacheCache
blockBlock Number
lineLine
sampleSample
pixelPixel

Definition at line 134 of file MtkCache.c.


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