Weather Data Loading

  • Sanjana Venkatraman
  • Topic Author
More
15 Apr 2024 18:25 - 17 Apr 2024 19:50 #13084 by Sanjana Venkatraman
Weather Data Loading was created by Sanjana Venkatraman
Hi! I am currently trying to load in weather data for Raleigh NC. I am using the weather file provided by the NSRDB: National Solar Radiation Database. My code to load in the weather file is identical to the code provided in one of the PySAM workshops, however, it keeps giving me a value error when I load in the file stating `Time Zone` field not found in solar resource file. However, when I open the weather data CSV there is a time zone field. Here is the code I have right now. Any help would be much appreciated!
I specified the weather_folder as the way to get to the proper directory

 
Attachments:
Last edit: 17 Apr 2024 19:50 by Paul Gilman. Reason: Please attach images as files and then insert them into your message

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

  • Paul Gilman
More
17 Apr 2024 19:56 #13097 by Paul Gilman
Replied by Paul Gilman on topic Weather Data Loading
Hi Sanjana,

Some of the weather files from the newer NSRDB endpoints have no value for the "Time Zone" field, and instead use the "Local Time Zone" field.

If this is the problem you are having, one way to fix it would be to modify your script to edit the CSV file after downloading it to copy the value from "Local Time Zone" to "Time Zone".

We have modifed the weather file reader to handle this situation. This update should be part of PySAM 5.1.0.

Best regards,
Paul.

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

Moderators: Paul Gilman
Powered by Kunena Forum