MeteoIODoc  MeteoIODoc-2.9.0
mio::ProcessingBlock Class Referenceabstract

Detailed Description

An abstract class.

Author
Thomas Egger
Date
2011-01-02

#include <ProcessingBlock.h>

Public Member Functions

virtual ~ProcessingBlock ()
 
virtual void process (const unsigned int &param, const std::vector< MeteoData > &ivec, std::vector< MeteoData > &ovec)=0
 
virtual void process (Date &dateStart, Date &dateEnd)
 
std::string getName () const
 
const ProcessingPropertiesgetProperties () const
 
const std::string toString () const
 
bool skipStation (const std::string &station_id) const
 
bool noStationsRestrictions () const
 

Static Public Member Functions

static void readCorrections (const std::string &filter, const std::string &filename, std::vector< double > &X, std::vector< double > &Y)
 
static void readCorrections (const std::string &filter, const std::string &filename, std::vector< double > &X, std::vector< double > &Y1, std::vector< double > &Y2)
 
static std::vector< double > readCorrections (const std::string &filter, const std::string &filename, const size_t &col_idx, const char &c_type, const double &init)
 
static std::vector< offset_specreadCorrections (const std::string &filter, const std::string &filename, const double &TZ, const size_t &col_idx=2)
 
static std::map< std::string, std::vector< dates_range > > readDates (const std::string &filter, const std::string &filename, const double &TZ)
 
static std::set< std::string > initStationSet (const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &keyword)
 

Protected Member Functions

 ProcessingBlock (const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &name)
 protected constructor only to be called by children More...
 

Static Protected Member Functions

static void extract_dbl_vector (const unsigned int &param, const std::vector< MeteoData > &ivec, std::vector< double > &ovec)
 
static void extract_dbl_vector (const unsigned int &param, const std::vector< const MeteoData *> &ivec, std::vector< double > &ovec)
 

Protected Attributes

const std::set< std::string > excluded_stations
 
const std::set< std::string > kept_stations
 
ProcessingProperties properties
 
const std::string block_name
 

Static Protected Attributes

static const double soil_albedo = .23
 
static const double snow_albedo = .85
 
static const double snow_thresh = .1
 parametrize the albedo from HS More...
 

Constructor & Destructor Documentation

◆ ~ProcessingBlock()

virtual mio::ProcessingBlock::~ProcessingBlock ( )
inlinevirtual

◆ ProcessingBlock()

mio::ProcessingBlock::ProcessingBlock ( const std::vector< std::pair< std::string, std::string > > &  vecArgs,
const std::string &  name 
)
protected

protected constructor only to be called by children

Member Function Documentation

◆ extract_dbl_vector() [1/2]

void mio::ProcessingBlock::extract_dbl_vector ( const unsigned int &  param,
const std::vector< MeteoData > &  ivec,
std::vector< double > &  ovec 
)
staticprotected

◆ extract_dbl_vector() [2/2]

void mio::ProcessingBlock::extract_dbl_vector ( const unsigned int &  param,
const std::vector< const MeteoData *> &  ivec,
std::vector< double > &  ovec 
)
staticprotected

◆ getName()

std::string mio::ProcessingBlock::getName ( ) const
inline

◆ getProperties()

const ProcessingProperties& mio::ProcessingBlock::getProperties ( ) const
inline

◆ initStationSet()

std::set< std::string > mio::ProcessingBlock::initStationSet ( const std::vector< std::pair< std::string, std::string > > &  vecArgs,
const std::string &  keyword 
)
static

◆ noStationsRestrictions()

bool mio::ProcessingBlock::noStationsRestrictions ( ) const
inline

◆ process() [1/2]

◆ process() [2/2]

virtual void mio::ProcessingBlock::process ( Date dateStart,
Date dateEnd 
)
inlinevirtual

Reimplemented in mio::TimeLoop.

◆ readCorrections() [1/4]

void mio::ProcessingBlock::readCorrections ( const std::string &  filter,
const std::string &  filename,
std::vector< double > &  X,
std::vector< double > &  Y 
)
static

◆ readCorrections() [2/4]

void mio::ProcessingBlock::readCorrections ( const std::string &  filter,
const std::string &  filename,
std::vector< double > &  X,
std::vector< double > &  Y1,
std::vector< double > &  Y2 
)
static

◆ readCorrections() [3/4]

std::vector< double > mio::ProcessingBlock::readCorrections ( const std::string &  filter,
const std::string &  filename,
const size_t &  col_idx,
const char &  c_type,
const double &  init 
)
static

◆ readCorrections() [4/4]

std::vector< ProcessingBlock::offset_spec > mio::ProcessingBlock::readCorrections ( const std::string &  filter,
const std::string &  filename,
const double &  TZ,
const size_t &  col_idx = 2 
)
static

◆ readDates()

std::map< std::string, std::vector< ProcessingBlock::dates_range > > mio::ProcessingBlock::readDates ( const std::string &  filter,
const std::string &  filename,
const double &  TZ 
)
static

◆ skipStation()

bool mio::ProcessingBlock::skipStation ( const std::string &  station_id) const

◆ toString()

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

Member Data Documentation

◆ block_name

const std::string mio::ProcessingBlock::block_name
protected

◆ excluded_stations

const std::set<std::string> mio::ProcessingBlock::excluded_stations
protected

◆ kept_stations

const std::set<std::string> mio::ProcessingBlock::kept_stations
protected

◆ properties

ProcessingProperties mio::ProcessingBlock::properties
protected

◆ snow_albedo

const double mio::ProcessingBlock::snow_albedo = .85
staticprotected

◆ snow_thresh

const double mio::ProcessingBlock::snow_thresh = .1
staticprotected

parametrize the albedo from HS

◆ soil_albedo

const double mio::ProcessingBlock::soil_albedo = .23
staticprotected

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