18#ifndef ENERGYBALANCE_H
19#define ENERGYBALANCE_H
22#include <meteoio/MeteoIO.h>
71 EnergyBalance(
const unsigned int& i_nbworkers,
const mio::Config& cfg,
const mio::DEMObject &dem_in);
78 void setAlbedo(
const mio::Grid2DObject &in_albedo );
80 void compute(
const mio::Grid2DObject& in_ilwr,
81 const mio::Grid2DObject& in_ta,
const mio::Grid2DObject& in_rh,
const mio::Grid2DObject& in_p,
82 const mio::Grid2DObject& in_iswr_dir,
const mio::Grid2DObject& in_iswr_diff,
83 const mio::Date timestamp);
85 void writeSP(
const unsigned int max_steps);
88 void setStations(
const std::vector<mio::MeteoData>& in_vecMeteo);
96 std::vector<RadiationField> radfields;
98 std::vector<mio::MeteoData> vecMeteo;
99 mio::Grid2DObject albedo;
100 mio::Array2D<double> direct_unshaded_horizontal, direct, diffuse, reflected;
102 const mio::Config& cfg;
104 unsigned int nbworkers;
Definition: EnergyBalance.h:69
void setSnowPack(SnowpackInterface &mysnowpack)
Definition: EnergyBalance.cc:109
EnergyBalance(const EnergyBalance &)
bool hasSP()
Definition: EnergyBalance.h:87
void compute(const mio::Grid2DObject &in_ilwr, const mio::Grid2DObject &in_ta, const mio::Grid2DObject &in_rh, const mio::Grid2DObject &in_p, const mio::Grid2DObject &in_iswr_dir, const mio::Grid2DObject &in_iswr_diff, const mio::Date timestamp)
Definition: EnergyBalance.cc:130
void Destroy()
Definition: EnergyBalance.cc:101
~EnergyBalance()
Definition: EnergyBalance.cc:72
EnergyBalance & operator=(const EnergyBalance &)
Assignement operator, required because of pointer member.
Definition: EnergyBalance.cc:76
double getTiming() const
Definition: EnergyBalance.cc:221
std::string getGridsRequirements() const
Definition: EnergyBalance.cc:96
void setAlbedo(const mio::Grid2DObject &in_albedo)
Definition: EnergyBalance.cc:114
EnergyBalance(const unsigned int &i_nbworkers, const mio::Config &cfg, const mio::DEMObject &dem_in)
Definition: EnergyBalance.cc:25
void writeSP(const unsigned int max_steps)
Definition: EnergyBalance.cc:215
void setStations(const std::vector< mio::MeteoData > &in_vecMeteo)
Definition: EnergyBalance.cc:124
Definition: SnowpackInterface.h:126
Definition: TerrainRadiationAlgorithm.h:37
bool hasSP()
Definition: TerrainRadiationAlgorithm.h:41