MI - Fimex
Public Member Functions | List of all members
MetNoFimex::CachedInterpolationInterface Class Referenceabstract

#include <CachedInterpolation.h>

Inheritance diagram for MetNoFimex::CachedInterpolationInterface:
MetNoFimex::CachedInterpolation

Public Member Functions

 CachedInterpolationInterface (std::string xDimName, std::string yDimName)
 
virtual ~CachedInterpolationInterface ()
 
virtual boost::shared_array< float > interpolateValues (boost::shared_array< float > inData, size_t size, size_t &newSize) const =0
 
virtual size_t getInX () const =0
 
virtual size_t getInY () const =0
 
virtual size_t getOutX () const =0
 
virtual size_t getOutY () const =0
 
virtual boost::shared_ptr< DatagetInputDataSlice (boost::shared_ptr< CDMReader > reader, const std::string &varName, size_t unLimDim) const
 
virtual boost::shared_ptr< DatagetInputDataSlice (boost::shared_ptr< CDMReader > reader, const std::string &varName, const SliceBuilder &sb) const
 

Detailed Description

Interface for new cached spatial interpolation as used in MetNoFimex::CDMInterpolator

Constructor & Destructor Documentation

MetNoFimex::CachedInterpolationInterface::CachedInterpolationInterface ( std::string  xDimName,
std::string  yDimName 
)
inline
virtual MetNoFimex::CachedInterpolationInterface::~CachedInterpolationInterface ( )
inlinevirtual

Member Function Documentation

virtual boost::shared_ptr<Data> MetNoFimex::CachedInterpolationInterface::getInputDataSlice ( boost::shared_ptr< CDMReader reader,
const std::string varName,
size_t  unLimDim 
) const
virtual

Read the input data from the reader, which is later used for the interpolateValues() function. This function will eventually reduce the domain of the input data if createReducedDomain was called earlier.

Parameters
reader
varName
unLimDim
Returns
Data matching input-data for this CachedInterpolationInterface
virtual boost::shared_ptr<Data> MetNoFimex::CachedInterpolationInterface::getInputDataSlice ( boost::shared_ptr< CDMReader reader,
const std::string varName,
const SliceBuilder sb 
) const
virtual

Read the input data from the reader, which is later used for the interpolateValues() function. This function will eventually reduce the domain of the input data if createReducedDomain was called earlier.

Parameters
reader
varName
sba slicebuilder to reduce other than the horizontal dimensions
Returns
Data matching input-data for this CachedInterpolationInterface
virtual size_t MetNoFimex::CachedInterpolationInterface::getInX ( ) const
pure virtual
Returns
x-size of input array

Implemented in MetNoFimex::CachedInterpolation.

virtual size_t MetNoFimex::CachedInterpolationInterface::getInY ( ) const
pure virtual
Returns
y-size of input array

Implemented in MetNoFimex::CachedInterpolation.

virtual size_t MetNoFimex::CachedInterpolationInterface::getOutX ( ) const
pure virtual
Returns
x-size of output array

Implemented in MetNoFimex::CachedInterpolation.

virtual size_t MetNoFimex::CachedInterpolationInterface::getOutY ( ) const
pure virtual
Returns
y-size of output array

Implemented in MetNoFimex::CachedInterpolation.

virtual boost::shared_array<float> MetNoFimex::CachedInterpolationInterface::interpolateValues ( boost::shared_array< float >  inData,
size_t  size,
size_t &  newSize 
) const
pure virtual

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