-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '262f590f6240637fa314fd8a1d9c2cbfa0a6593b'
- Loading branch information
Showing
20 changed files
with
390 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,80 +23,22 @@ | |
[email protected] | ||
*/ | ||
|
||
|
||
#include "commonConstants.h" | ||
#include "basicMath.h" | ||
#include "quality.h" | ||
#include "meteoPoint.h" | ||
|
||
namespace quality | ||
{ | ||
Range::Range() | ||
{ | ||
min = NODATA; | ||
max = NODATA; | ||
} | ||
|
||
Range::Range(float myMin, float myMax) | ||
{ | ||
min = myMin; | ||
max = myMax; | ||
} | ||
|
||
float Range::getMin() { return min; } | ||
|
||
float Range::getMax() { return max; } | ||
} | ||
|
||
|
||
float Crit3DQuality::getReferenceHeight() const | ||
{ | ||
return referenceHeight; | ||
} | ||
|
||
void Crit3DQuality::setReferenceHeight(float value) | ||
{ | ||
referenceHeight = value; | ||
} | ||
|
||
float Crit3DQuality::getDeltaTSuspect() const | ||
{ | ||
return deltaTSuspect; | ||
} | ||
|
||
void Crit3DQuality::setDeltaTSuspect(float value) | ||
{ | ||
deltaTSuspect = value; | ||
} | ||
|
||
float Crit3DQuality::getDeltaTWrong() const | ||
{ | ||
return deltaTWrong; | ||
} | ||
|
||
void Crit3DQuality::setDeltaTWrong(float value) | ||
{ | ||
deltaTWrong = value; | ||
} | ||
|
||
float Crit3DQuality::getRelHumTolerance() const | ||
{ | ||
return relHumTolerance; | ||
} | ||
|
||
void Crit3DQuality::setRelHumTolerance(float value) | ||
{ | ||
relHumTolerance = value; | ||
} | ||
|
||
void Crit3DQuality::initialize() | ||
{ | ||
referenceHeight = DEF_VALUE_REF_HEIGHT; | ||
deltaTSuspect = DEF_VALUE_DELTA_T_SUSP; | ||
deltaTWrong = DEF_VALUE_DELTA_T_WRONG; | ||
relHumTolerance = DEF_VALUE_REL_HUM_TOLERANCE; | ||
waterTableMaximumDepth = DEF_VALUE_WATERTABLE_MAX_DEPTH; | ||
} | ||
|
||
|
||
Crit3DQuality::Crit3DQuality() | ||
{ | ||
qualityHourlyT = new quality::Range(-60, 60); | ||
|
@@ -122,6 +64,7 @@ Crit3DQuality::Crit3DQuality() | |
initialize(); | ||
} | ||
|
||
|
||
Crit3DQuality::~Crit3DQuality() | ||
{ | ||
delete qualityHourlyT; | ||
|
@@ -145,6 +88,7 @@ Crit3DQuality::~Crit3DQuality() | |
delete qualityDailyET0; | ||
} | ||
|
||
|
||
quality::Range* Crit3DQuality::getQualityRange(meteoVariable myVar) | ||
{ | ||
// hourly | ||
|
Oops, something went wrong.