MI - Fimex
|
#include <CachedInterpolation.h>
Public Member Functions | |
CachedInterpolation (std::string xDimName, std::string yDimName, int funcType, std::vector< double > pointsOnXAxis, std::vector< double > pointsOnYAxis, size_t inX, size_t inY, size_t outX, size_t outY) | |
virtual | ~CachedInterpolation () |
virtual boost::shared_array< float > | interpolateValues (boost::shared_array< float > inData, size_t size, size_t &newSize) const |
virtual size_t | getInX () const |
virtual size_t | getInY () const |
virtual size_t | getOutX () const |
virtual size_t | getOutY () const |
virtual boost::shared_ptr< ReducedInterpolationDomain > | reducedDomain () const |
void | createReducedDomain (std::string xDimName, std::string yDimName) |
![]() | |
CachedInterpolationInterface (std::string xDimName, std::string yDimName) | |
virtual | ~CachedInterpolationInterface () |
virtual boost::shared_ptr< Data > | getInputDataSlice (boost::shared_ptr< CDMReader > reader, const std::string &varName, size_t unLimDim) const |
virtual boost::shared_ptr< Data > | getInputDataSlice (boost::shared_ptr< CDMReader > reader, const std::string &varName, const SliceBuilder &sb) const |
Container to cache projection details to speed up interpolation of lots of fields.
MetNoFimex::CachedInterpolation::CachedInterpolation | ( | std::string | xDimName, |
std::string | yDimName, | ||
int | funcType, | ||
std::vector< double > | pointsOnXAxis, | ||
std::vector< double > | pointsOnYAxis, | ||
size_t | inX, | ||
size_t | inY, | ||
size_t | outX, | ||
size_t | outY | ||
) |
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 |
|
inlinevirtual |
void MetNoFimex::CachedInterpolation::createReducedDomain | ( | std::string | xDimName, |
std::string | yDimName | ||
) |
Create a reduced domain for later generation of a slicebuild to read a smaller domain. It should be run immediately after creating the CachedInterpolation.
|
inlinevirtual |
Implements MetNoFimex::CachedInterpolationInterface.
|
inlinevirtual |
Implements MetNoFimex::CachedInterpolationInterface.
|
inlinevirtual |
Implements MetNoFimex::CachedInterpolationInterface.
|
inlinevirtual |
Implements MetNoFimex::CachedInterpolationInterface.
|
virtual |
Actually interpolate the data. The data will be interpolated as floats internally.
inData | the input data |
size | the size of the input data array |
newSize | return the size of the output-array |
Implements MetNoFimex::CachedInterpolationInterface.
|
inlinevirtual |
allow fetching of a reduced interpolation domain, i.e. to work with a much smaller amount of input data
Reimplemented from MetNoFimex::CachedInterpolationInterface.