MeteoIODoc  2.10.0
mio::SWRadInterpolation Class Reference

Detailed Description

Solar radiation interpolation with optional terrain shading.

The splitting coefficients and an atmospheric losses factors are computed at each station that provides ISWR and spatially interpolated with an Inverse Distance Weighting scheme. Then the potential radiation is computed at each pixel and scaled appropriately with the atmospheric loss factor for this pixel. When applying topographic shading (default), the local splitting coefficient is used. The global, horizontal (except when using the PROJECT_ON_SLOPE option) short wave radiation is then returned. It supports the following arguments:

  • SHADING: if set to FALSE, turns off topographic shading (default: TRUE);
  • PROJECT_ON_SLOPE: if set to TRUE, the computed radiation will be projected on the slopes (default: FALSE so it returns an horizontal radiation field);
  • SCALE: this is a scaling parameter to smooth the IDW distribution. In effect, this is added to the distance in order to move into the tail of the 1/d distribution (default: 1000m);
  • ALPHA: this is an exponent to the 1/d distribution (default: 1);
ISWR::algorithms = SWRad
ISWR::SWRad::shading = true
Note
For this method to work, you also need to define spatial interpolations algorithms for TA, RH and P (a basic STD_PRESS algorithm is usually enough)
This algorithm is quite time consuming (specially the topographic shading) and therefore not appropriate for very large domains.

#include <SwRadAlgorithm.h>

Public Member Functions

 SWRadInterpolation (const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &i_algo, const std::string &i_param, TimeSeriesManager &i_tsm, Meteo2DInterpolator &i_mi)
 
virtual double getQualityRating (const Date &i_date)
 
virtual void calculate (const DEMObject &dem, Grid2DObject &grid)
 
- Public Member Functions inherited from mio::InterpolationAlgorithm
 InterpolationAlgorithm (const std::vector< std::pair< std::string, std::string > > &, const std::string &i_algo, const std::string &i_param, TimeSeriesManager &i_tsm)
 
virtual ~InterpolationAlgorithm ()
 
std::string getInfo () const
 Return an information string about the interpolation process. More...
 

Additional Inherited Members

- Public Attributes inherited from mio::InterpolationAlgorithm
const std::string algo
 
- Protected Member Functions inherited from mio::InterpolationAlgorithm
std::vector< double > getData (const Date &i_date, const std::string &i_param)
 
size_t getData (const Date &i_date, const std::string &i_param, std::vector< double > &o_vecData, std::vector< StationData > &o_vecMeta)
 
- Protected Attributes inherited from mio::InterpolationAlgorithm
TimeSeriesManagertsmanager
 
Date date
 
std::vector< MeteoDatavecMeteo
 
std::vector< double > vecData
 store the measurement for the given parameter More...
 
std::vector< StationDatavecMeta
 store the station data for the given parameter More...
 
std::ostringstream info
 to store some extra information about the interplation process More...
 
const std::string param
 the parameter that we will interpolate More...
 
size_t nrOfMeasurments
 Number of stations that have been used, so this can be reported to the user. More...
 

Constructor & Destructor Documentation

◆ SWRadInterpolation()

mio::SWRadInterpolation::SWRadInterpolation ( const std::vector< std::pair< std::string, std::string > > &  vecArgs,
const std::string &  i_algo,
const std::string &  i_param,
TimeSeriesManager i_tsm,
Meteo2DInterpolator i_mi 
)

Member Function Documentation

◆ calculate()

void mio::SWRadInterpolation::calculate ( const DEMObject dem,
Grid2DObject grid 
)
virtual

◆ getQualityRating()

double mio::SWRadInterpolation::getQualityRating ( const Date i_date)
virtual

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