Unit tests

Parent Previous Next

Sample values of units tests are reported. The input weather data used are a sample file (mantova1987.csv) made available in the sample application. 

Strategy

Output

Expected value

EmbergerContinentality

EmbergerContinentality

36.33

WarmestMonth

7

ColdestMonth

1

ModifiedFournier

ModifiedFournier

62.25

DeMartonneGottmann

DeMartonneGottmann

1.09

RainfallYearly

42.68

AirTemperatureMeanYearly

11.69

MeanRainfallMostAridMonth

0.61

MeanAirTemperatureMostAridMonth

23.44

MostAridMonth

7

RainfallSeasonality

RainfallSeasonality

-0.09

GorczynskiContinentality

GorczynskiContinentality

65.07

Mediterraneity

Mediterraneity

1.83

BudykoEnergy

BudykoEnergy

0.58

Dryness

Dryness

250

Wetness

Wetness

115

PlantHeatStress

PlantHeatStress

105

LastAirFrostSpring

LastAirFrostSpring

90

LastGrassFrostSpring

LastGrassFrostSpring

119

FirstGrassFrost

FirstGrassFrost

309

FirstAirFrost

FirstAirFrost

326

PlantDevelopment

PlantDevelopment

8

AirFrost

AirFrostYearly

87

AirFrostColdestMonth

31

AirFrostWinter

87

StartGrowingSeason

StartGrowingSeason

82

StartFieldOperations

StartFieldOperations

93

AccumulatedFrost

AccumulatedFrostYearly

482.1

AccumulatedFrostColdestMonth

213.6

AccumulatedFrostWinter

482.1

GrowingDegreeDays

GrowingDegreeDaysYearly

2816.05

GrowingDegreeDaysWarmestMonth

549.85

GrowingDegreeDaysSummer

2514

GrowingDegreeDaysFirstSemester

959.25

AccumulatedDegreeDaysYearly

4255.25

AccumulatedDegreeDaysWarmestMonth

723.45

AccumulatedDegreeDaysSummer

3544.4

AccumulatedDegreeDaysFirstSemester

1547.25

HeatingDegreeDays

HeatingDegreeDaysSummer

80.25

HeatingDegreeDaysWarmestMonth

0

HeatingDegreeDaysYearly

2147.35

EndGrowingSeason

EndGrowingSeason

347

DrySpell

DrySpell

27

WetSpell

WetSpell

11

ColdSpell

ColdSpell

43

HeatWave

HeatWave

77

WettestWeek

WettestWeek

45

WettestWeekAmount

142.2

GrowingSeasonC

GrowingSeasonRange

323

GrowingSeasonLenght

257

SoilWaterBudget

SWCtot

50316.99

AvailableWater

0.1

AirDriedWater

0.067

FieldCapacityC

EndingFieldCapacity

32

ReturnFieldCapacity

40

AccessPeriodRange

8

AccessPeriodLenght

319

DrySoilDays

138

VeryDrySoil

0

FieldCapacityDepletion

67.16

AvailableWaterDepletion

-52.83

OccurrenceMaximumMoistureDeficit

235

AirDriedWaterDays

0

ExcessWinterRainfall

524.33

Desertification

Desertification

1.67

Moisture

Moisture

0.67



Created with the Personal Edition of HelpNDoc: Free EBook and documentation generator