MeteoIODoc  MeteoIODoc-2.6.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mio::Meteo2DInterpolator Class Reference

Detailed Description

A class to spatially interpolate meteo parameters. For more, see Spatial interpolations.

Author
Mathias Bavay and Thomas Egger
Date
2010-01-14

#include <Meteo2DInterpolator.h>

Public Types

enum  vstations_policy { VSTATIONS, DOWNSCALING, SMART_DOWNSCALING }
 Keywords for virtual stations strategy. More...
 

Public Member Functions

 Meteo2DInterpolator (const Config &i_cfg, TimeSeriesManager &i_tsmanager, GridsManager &i_gridsmanager)
 Constructor. More...
 
 Meteo2DInterpolator (const Meteo2DInterpolator &)
 
Meteo2DInterpolatoroperator= (const Meteo2DInterpolator &)
 Assignement operator. More...
 
 ~Meteo2DInterpolator ()
 
void interpolate (const Date &date, const DEMObject &dem, const MeteoData::Parameters &meteoparam, Grid2DObject &result)
 A generic function that can interpolate for any given MeteoData member variable. More...
 
void interpolate (const Date &date, const DEMObject &dem, const MeteoData::Parameters &meteoparam, Grid2DObject &result, std::string &InfoString)
 A generic function that can interpolate for any given MeteoData member variable. More...
 
void interpolate (const Date &date, const DEMObject &dem, const MeteoData::Parameters &meteoparam, const std::vector< Coords > &in_coords, std::vector< double > &result, std::string &info_string)
 
size_t getArgumentsForAlgorithm (const std::string &param, const std::string &algorithm, std::vector< std::string > &vecArgs) const
 Retrieve the arguments vector for a given interpolation algorithm. More...
 
size_t getVirtualStationsMeta (const Date &date, STATIONS_SET &vecStation)
 Returns the metadata associated with the configured virtual stations. More...
 
size_t getVirtualMeteoData (const vstations_policy &strategy, const Date &i_date, METEO_SET &vecMeteo)
 Compute point measurements from grids following a given computing strategy. More...
 
const std::string toString () const
 

Member Enumeration Documentation

Keywords for virtual stations strategy.

Enumerator
VSTATIONS 

extract virtual stations as specified in the ini file

DOWNSCALING 

extract all grid points from a provided grid

SMART_DOWNSCALING 

extract all relevant grid points from a provided grid

Constructor & Destructor Documentation

mio::Meteo2DInterpolator::Meteo2DInterpolator ( const Config i_cfg,
TimeSeriesManager i_tsmanager,
GridsManager i_gridsmanager 
)

Constructor.

< compute the meteo values at virtual stations

< Are we downscaling meteo grids instead of interpolating stations' data?

mio::Meteo2DInterpolator::Meteo2DInterpolator ( const Meteo2DInterpolator source)
mio::Meteo2DInterpolator::~Meteo2DInterpolator ( )

Member Function Documentation

size_t mio::Meteo2DInterpolator::getArgumentsForAlgorithm ( const std::string &  param,
const std::string &  algorithm,
std::vector< std::string > &  vecArgs 
) const

Retrieve the arguments vector for a given interpolation algorithm.

Parameters
paramthe meteorological parameter that is concerned
algorithmthe desired algorithm
vecArgsa vector of strings containing the arguments
size_t mio::Meteo2DInterpolator::getVirtualMeteoData ( const vstations_policy strategy,
const Date i_date,
METEO_SET vecMeteo 
)

Compute point measurements from grids following a given computing strategy.

Parameters
strategysampling/computing strategy
i_datewhen to compute the virtual stations
vecMeteoa vector of meteodata for the configured virtual stations
size_t mio::Meteo2DInterpolator::getVirtualStationsMeta ( const Date date,
STATIONS_SET vecStation 
)

Returns the metadata associated with the configured virtual stations.

Parameters
datewhen to extract the virtual stations' metadata
vecStationa vector of stationdata for the configured virtual stations
void mio::Meteo2DInterpolator::interpolate ( const Date date,
const DEMObject dem,
const MeteoData::Parameters meteoparam,
Grid2DObject result 
)

A generic function that can interpolate for any given MeteoData member variable.

Parameters
datedate for which to interpolate
demDigital Elevation Model on which to perform the interpolation
meteoparamAny MeteoData member variable as specified in the enum MeteoData::Parameters (e.g. MeteoData::TA)
resultA Grid2DObject that will be filled with the interpolated data
void mio::Meteo2DInterpolator::interpolate ( const Date date,
const DEMObject dem,
const MeteoData::Parameters meteoparam,
Grid2DObject result,
std::string &  InfoString 
)

A generic function that can interpolate for any given MeteoData member variable.

Parameters
datedate for which to interpolate
demDigital Elevation Model on which to perform the interpolation
meteoparamAny MeteoData member variable as specified in the enum MeteoData::Parameters (e.g. MeteoData::TA)
resultA Grid2DObject that will be filled with the interpolated data
InfoStringsome information about the interpolation process (useful for GUIs)
void mio::Meteo2DInterpolator::interpolate ( const Date date,
const DEMObject dem,
const MeteoData::Parameters meteoparam,
const std::vector< Coords > &  in_coords,
std::vector< double > &  result,
std::string &  info_string 
)
Meteo2DInterpolator & mio::Meteo2DInterpolator::operator= ( const Meteo2DInterpolator source)

Assignement operator.

const std::string mio::Meteo2DInterpolator::toString ( ) const

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