MetNoFimex::CachedInterpolation Class Reference

#include <CachedInterpolation.h>

List of all members.

Public Member Functions

 CachedInterpolation ()
 CachedInterpolation (int funcType, std::vector< double > pointsOnXAxis, std::vector< double > pointsOnYAxis, size_t inX, size_t inY, size_t outX, size_t outY)
virtual ~CachedInterpolation ()
boost::shared_array< float > interpolateValues (boost::shared_array< float > inData, size_t size, size_t &newSize)


Detailed Description

Container to cache projection details to speed up interpolation of lots of fields.

Constructor & Destructor Documentation

MetNoFimex::CachedInterpolation::CachedInterpolation (  )  [inline]

MetNoFimex::CachedInterpolation::CachedInterpolation ( int  funcType,
std::vector< double >  pointsOnXAxis,
std::vector< double >  pointsOnYAxis,
size_t  inX,
size_t  inY,
size_t  outX,
size_t  outY 
)

Parameters:
funcType interpolation.h interpolation method
pointsOnXAxis projected values of the new projections coordinates expressed in the current x-coordinate (size = outX*outY)
pointsOnYAxis projected values of the new projections coordinates expressed in the current y-coordinate (size = outX*outY)
inX size of current X axis
inY size of current Y axis
outX size of new X axis
outY size of new Y axis

virtual MetNoFimex::CachedInterpolation::~CachedInterpolation (  )  [inline, virtual]


Member Function Documentation

boost::shared_array<float> MetNoFimex::CachedInterpolation::interpolateValues ( boost::shared_array< float >  inData,
size_t  size,
size_t &  newSize 
)

Actually interpolate the data. The data will be interpolated as floats internally.

Parameters:
inData the input data
the size of the input data array
newSize return the size of the output-array


The documentation for this class was generated from the following file:

Generated on Fri Jan 23 14:10:11 2009 for MI - Fimex by  doxygen 1.5.5