ocssw V2020
ObpgReadGrid.h File Reference
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <string>
#include <netcdf>
Include dependency graph for ObpgReadGrid.h:

Go to the source code of this file.


struct  GridStruct


#define SUCCESS   0
#define FAIL   1


void printGrid (GridStruct grid)
void deletenc2d (unsigned char **&data)
unsigned char ** readnc2d (NcVar ncVar, size_t y0, size_t y1, size_t x0, size_t x1)
NcVar openGridFile (string filePath, string varName)
int getGridValue (GridStruct grid, float lat, float lon, unsigned char *value)
int loadGrid (NcVar var, float NSEW[4], GridStruct *grid)

Macro Definition Documentation


#define FAIL   1

Definition at line 18 of file ObpgReadGrid.h.


#define SUCCESS   0

Definition at line 15 of file ObpgReadGrid.h.

Function Documentation

◆ deletenc2d()

void deletenc2d ( unsigned char **&  data)

◆ getGridValue()

int getGridValue ( GridStruct  grid,
float  lat,
float  lon,
unsigned char *  value 

◆ loadGrid()

int loadGrid ( NcVar  var,
float  NSEW[4],
GridStruct grid 

◆ openGridFile()

NcVar openGridFile ( string  filePath,
string  varName 

◆ printGrid()

void printGrid ( GridStruct  grid)

◆ readnc2d()

unsigned char** readnc2d ( NcVar  ncVar,
size_t  y0,
size_t  y1,
size_t  x0,
size_t  x1