- Posts: 7
Weather file gives hour 0 error
- jackbrucesimpson
- Topic Author
Less
More
14 Dec 2020 01:53 #9109
by jackbrucesimpson
Weather file gives hour 0 error was created by jackbrucesimpson
Hi, I created my own weather file (attached) but when I try to run it I get the following error:
Thanks so much, Jack
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.Hour 0 occurs after 8759 on line 4440 of weather file
Thanks so much, Jack
Attachments:
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5415
14 Dec 2020 11:03 #9110
by pgilman
Replied by pgilman 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.
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.
- jackbrucesimpson
- Topic Author
Less
More
- Posts: 7
14 Dec 2020 22:01 #9113
by jackbrucesimpson
Replied by jackbrucesimpson 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: pgilman