Weather file gives hour 0 error

  • Jack Simpson
  • Topic Author
More
14 Dec 2020 01:53 #9109 by Jack Simpson
Weather file gives hour 0 error was created by Jack Simpson
Hi, I created my own weather file (attached) but when I try to run it I get the following error:

Hour 0 occurs after 8759 on line 4440 of weather file

I have the correct number of rows in the file, and while it looks like its the start of a new year in the data around that line number that it flagged a being an issue, I can't figure out why it is flagging an error.

Thanks so much, Jack
Attachments:

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

  • Paul Gilman
More
14 Dec 2020 11:03 #9110 by Paul Gilman
Replied by Paul Gilman on topic Weather file gives hour 0 error
Hi Jack,

SAM expects the first row of data to be for Month = 1, Day = 1, Hour = 0. In your file, the first row is for June 30. You can fix that by rearranging the rows so that they go from January 1 to December 31.

It also looks like there are some out-of-range irradiance values that will cause a different simulation error. This look like missing data flags (-999). You will need to replace those values with valid values, perhaps by averaging the adjacent irradiance values.

Best regards,
Paul.

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

  • Jack Simpson
  • Topic Author
More
14 Dec 2020 22:01 #9113 by Jack Simpson
Replied by Jack Simpson on topic Weather file gives hour 0 error
Thanks so much, that fixed it!

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

Moderators: Paul Gilman
Powered by Kunena Forum