-
Notifications
You must be signed in to change notification settings - Fork 0
/
SnowModel.h
37 lines (31 loc) · 1.32 KB
/
SnowModel.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
#ifndef SNOW_MODEL
#define SNOW_MODEL
#include <datastr/PartialConfidenceTemporalGeographicMap.h>
#include <datastr/TemporalGeographicMap.h>
#include <time.h>
using namespace std;
namespace openworld {
class SnowModel : public PartialConfidenceTemporalGeographicMap<double> {
public:
SnowModel(DividedRange time)
: PartialConfidenceTemporalGeographicMap<double>(time) {
}
virtual SnowModel* clone() = 0;
virtual GeographicMap<double>& operator[](Measure tt) = 0;
// needs to be on same grid as snowmodel
virtual void inform(GeographicMap<double>& newMeltVolume, GeographicMap<double>& newSnowVolume) = 0;
virtual string debugInfo(unsigned rr, unsigned cc) {
return "";
}
virtual GeographicMap<double>& getVolumes() {
throw runtime_error("unimplemented");
}
/* Can't scale, because volumes need to be combined...
virtual void scaledInform(GeographicMap<double>& newMeltVolume, GeographicMap<double>& newSnowVolume, GeographicMap<double>& scaleTo) {
ScaledGeographicMap<double> scaledNewMeltVolume(newMeltVolume, scaleTo.getLatitudes(), scaleTo.getLongitudes(), 0.0);
ScaledGeographicMap<double> scaledNewSnowVolume(newSnowVolume, scaleTo.getLatitudes(), scaleTo.getLongitudes(), 0.0);
inform(scaledNewMeltVolume, scaledNewSnowVolume);
}*/
};
}
#endif