-
Notifications
You must be signed in to change notification settings - Fork 0
/
HydroNetModel.h
48 lines (35 loc) · 1.34 KB
/
HydroNetModel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef HYDRONETMODEL_H
#define HYDRONETMODEL_H
#include <datastr/GeographicMap.h>
#include <datastr/ScaledGeographicMap.h>
#include <datastr/TemporalGeographicMap.h>
#include <datastr/PartialConfidenceTemporalGeographicMap.h>
#include <datastr/TimeSeries.h>
#include <datastr/DividedRange.h>
#include "DInfinityMap.h"
using namespace openworld;
class HydroNetModel {
protected:
DividedRange latitudes;
DividedRange longitudes;
// Inputs
HydroNet* net;
HydroOutputNode* out;
PartialConfidenceTemporalGeographicMap<double>* precipitation;
PartialConfidenceTemporalGeographicMap<double>* surfaceTemp;
TemporalGeographicMap<double>* snowCover;
double precipCoefficient;
double meltCoefficient;
// Results (evaluated at time = now)
Measure now;
public:
HydroNetModel(DividedRange latitudes, DividedRange longitudes, double precipCoefficient, double meltCoefficient);
void setup(GeographicMap<bool>* mask_coarse, GeographicMap<double>* mask_fine, GeographicMap<double>* slope_fine, DInfinityMap* direction_fine);
void setPrecipitation(PartialConfidenceTemporalGeographicMap<double>* precipitation);
void setTemperature(PartialConfidenceTemporalGeographicMap<double>* surfaceTemp);
void setSnowCover(TemporalGeographicMap<double>* snowCover);
void runTo(time_t time);
void stepDay();
list<double> getOutFlows();
};
#endif