SamUL: question on ReadWF()

  • solarjoe
  • Topic Author
More
08 Mar 2013 09:43 #1396 by solarjoe
SamUL: question on ReadWF() was created by solarjoe
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)
--

Please Log in or Create an account to join the conversation.

  • Paul Gilman
More
13 Mar 2013 15:51 #1397 by Paul Gilman
Replied by Paul Gilman on topic SamUL: question on ReadWF()
Hi Joe,

I was able to replicate this behavior, and do not have a good explanation for it. We'll have to wait to resolve this until my colleague who developed SamUL returns from leave in a few weeks. Hopefully you can work around the issue in the meantime.

Thanks for bringing this to our attention.

Best regards,
Paul.

Please Log in or Create an account to join the conversation.

  • solarjoe
  • Topic Author
More
18 Jun 2013 11:29 #1398 by solarjoe
Replied by solarjoe on topic SamUL: question on ReadWF()
Hi Paul,

any news on this one?

Kind regards,
Paul

Please Log in or Create an account to join the conversation.

Moderators: Paul Gilman
Powered by Kunena Forum