#include <CDMInterpolator.h>
Public Member Functions | |
CDMInterpolator (boost::shared_ptr< CDMReader > dataReader) | |
virtual | ~CDMInterpolator () |
virtual boost::shared_ptr< Data > | getDataSlice (const std::string &varName, size_t unLimDimPos=0) throw (CDMException) |
retrieve data from the underlying dataReader and interpolate the values due to the current projection | |
virtual void | changeProjection (int method, const std::string &proj_input, const std::vector< double > &out_x_axis, const std::vector< double > &out_y_axis, const std::string &out_x_axis_unit, const std::string &out_y_axis_unit) throw (CDMException) |
virtual void | changeProjection (int method, const std::string &proj_input, const std::string &out_x_axis, const std::string &out_y_axis, const std::string &out_x_axis_unit, const std::string &out_y_axis_unit) throw (CDMException) |
virtual void | setLatitudeName (const std::string &latName) |
virtual const std::string & | getLatitudeName () const |
virtual void | setLongitudeName (const std::string &lonName) |
virtual const std::string & | getLongitudeName () const |
MetNoFimex::CDMInterpolator::CDMInterpolator | ( | boost::shared_ptr< CDMReader > | dataReader | ) |
virtual MetNoFimex::CDMInterpolator::~CDMInterpolator | ( | ) | [virtual] |
virtual boost::shared_ptr<Data> MetNoFimex::CDMInterpolator::getDataSlice | ( | const std::string & | varName, | |
size_t | unLimDimPos = 0 | |||
) | throw (CDMException) [virtual] |
retrieve data from the underlying dataReader and interpolate the values due to the current projection
Implements MetNoFimex::CDMReader.
virtual void MetNoFimex::CDMInterpolator::changeProjection | ( | int | method, | |
const std::string & | proj_input, | |||
const std::vector< double > & | out_x_axis, | |||
const std::vector< double > & | out_y_axis, | |||
const std::string & | out_x_axis_unit, | |||
const std::string & | out_y_axis_unit | |||
) | throw (CDMException) [virtual] |
@ brief change the (main) projection of the dataReaders cdm to this new projection
method | Interpolation method | |
proj_input | input-string for proj4, used as output projection | |
out_x_axis | values of the output x-axis | |
out_y_axis | values of the output y-axis | |
out_x_axis_unit | unit of the output x-axis | |
out_y_axis_unit | unit of the output y-axis |
virtual void MetNoFimex::CDMInterpolator::changeProjection | ( | int | method, | |
const std::string & | proj_input, | |||
const std::string & | out_x_axis, | |||
const std::string & | out_y_axis, | |||
const std::string & | out_x_axis_unit, | |||
const std::string & | out_y_axis_unit | |||
) | throw (CDMException) [virtual] |
@ brief change the (main) projection of the dataReaders cdm to this new projection
method | Interpolation method | |
proj_input | input-string for proj4, used as output projection | |
out_x_axis | config-string for x_axis, either '1,2,...,5' or 'auto' or 'auto,distance=3.5' | |
out_y_axis | config-string for y_axis, either '1,2,...,5' or 'auto' or 'auto,distance=3.5' | |
out_x_axis_unit | unit of the output x-axis | |
out_y_axis_unit | unit of the output y-axis |
virtual void MetNoFimex::CDMInterpolator::setLatitudeName | ( | const std::string & | latName | ) | [inline, virtual] |
set the name for the automatically generated latitude coordinate axis. This must be set before changeProjection is called.
latName | name for latitude |
virtual const std::string& MetNoFimex::CDMInterpolator::getLatitudeName | ( | ) | const [inline, virtual] |
virtual void MetNoFimex::CDMInterpolator::setLongitudeName | ( | const std::string & | lonName | ) | [inline, virtual] |
set the name for the automatically generated longitude coordinate axis. This must be set before changeProjection is called.
latName | name for longitude |
virtual const std::string& MetNoFimex::CDMInterpolator::getLongitudeName | ( | ) | const [inline, virtual] |