Hello,
I came across a strange problem while trying to read weather files.
In the following script if you comment the line " outln(data) "
the variable lineCounter holds a different value.
I am not sure why this happens, I attached a litte example.
If the data is not shown during reading,
lineCounter has a value of 8774, if the data is shown
the value is 8760, which is correct...
Any ideas on this?
Kind regards,
Joe.
----
file = SAMDir() + "/exelib/climate_files/AUS_NT.Alice.Springs.Airport_RMY.epw"
declare header[]
declare data[]
f = OpenWF(file, header)
if (not f)
OutLn("could not open file")
exit
end
lineCounter = 0
while(readwf(f,data))
lineCounter = lineCounter + 1
outln(data) 'un/comment this line
end
outln(lineCounter)
close(f)
--