MISR Toolkit  1.5.1
Functions
MtkCache.c File Reference
#include "MisrCache.h"
#include "MisrFileQuery.h"
#include "MisrError.h"
#include <stdlib.h>
#include <string.h>
#include <math.h>

Go to the source code of this file.

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...
 

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