Grid Interpolation
Classes | Enumerations | Functions
GRID_INTERP Namespace Reference

Classes

class  axis
 The axis class is a container for axis tick values. More...
 
class  GridValues
 This is a container class for the values. More...
 
class  interp
 Main interpolation class. More...
 

Enumerations

enum  METHOD { METHOD::LINEAR, METHOD::NEAREST, METHOD::IDW, METHOD::INVALID_METHOD }
 Enumeration for the interpolation methods. More...
 
enum  TYPE { TYPE::GRID, TYPE::LAYER, TYPE::INVALID_TYPE }
 The interpolation type it is used only in 3D. For 1 and 2 D it is ignored. The normal type is when interpolation is using a full 3D grid. The layer type is used when the elevation of the 3D field is variable and cannot be defined as one value. This is not currently implemented. More...
 

Functions

void writeCoordsValues (std::string filename, std::vector< std::vector< double >> &coords, std::vector< double > &v)
 This is a utility function which is used to print the results of the interpolation to a file so that it can be read in R forexample. More...
 

Enumeration Type Documentation

◆ METHOD

enum GRID_INTERP::METHOD
strong

Enumeration for the interpolation methods.

Currently there are available Linear and nearest neighborhood. IDW (inverse distance weighting) will be added sometime.

Enumerator
LINEAR 

Method for linear bilinear or triliear interpolation

NEAREST 

Method for nearest neighborhood interpolation

IDW 

Inverse distance weighting (not implemented yet)

INVALID_METHOD 

By default the method is set to invalid which will return nan

◆ TYPE

enum GRID_INTERP::TYPE
strong

The interpolation type it is used only in 3D. For 1 and 2 D it is ignored. The normal type is when interpolation is using a full 3D grid. The layer type is used when the elevation of the 3D field is variable and cannot be defined as one value. This is not currently implemented.

Enumerator
GRID 

This is the standard type of interpolation

LAYER 

For 3D data when the elevation of the layers is variable

INVALID_TYPE 

This is not used at the moment

Function Documentation

◆ writeCoordsValues()

void GRID_INTERP::writeCoordsValues ( std::string  filename,
std::vector< std::vector< double >> &  coords,
std::vector< double > &  v 
)

This is a utility function which is used to print the results of the interpolation to a file so that it can be read in R forexample.