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_ptr< DatainterpolateValues (boost::shared_ptr< Data > inData, float badValue=MIFI_UNDEFINED_F)


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_ptr< Data > MetNoFimex::CachedInterpolation::interpolateValues boost::shared_ptr< Data inData,
float  badValue = MIFI_UNDEFINED_F
 

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

Parameters:
inData the input data
the bad value used for the data, defaults to MIFI_UNDEFINED_F


The documentation for this class was generated from the following files:
Generated on Thu Jun 5 14:58:24 2008 for MI - Fimex by  doxygen 1.4.6