A2: Start/End dates

Top  Previous  Next

Solution: Task 2.1

Open simplace_modules\test\training\solution\1_WorkingWithSolutions\01_FirstSolution.sol.xml file and change the following two variables and again run as Java Application (If you can't remember how to do it, please see again the first page 1. Running a solution), which uses this solution:

 <var id="startdate" datatype="DATE">01.01.1987</var>

 <var id="enddate" datatype="DATE">31.12.1987</var>

 

As you may notice by using variables startdate and enddate you can control the time period, for which the calculations will be performed.

 

 

Solution: Task 2.2

Open the weather file and see which is the last current date of the weather data and then change the enddate e.g.:

 <var id="startdate" datatype="DATE">01.01.1988</var>

 <var id="enddate" datatype="DATE">31.12.1992</var>

Now if you open simplace_modules/output/training/simple1.txt file in the output folder you should see that after this date: 31.12.1988 all lines have

RealRain = NULL and RainingStatement has its default value, which means that this data is unuseful and therefore can produce some problems.