Obtaining Electric Load Profiles using SDK

  • kbarnes124
  • Topic Author
More
09 Aug 2017 21:29 #5622 by kbarnes124
Obtaining Electric Load Profiles using SDK was created by kbarnes124
Hello,

I am looking to obtain residential electric load profiles by TMY3 location. I know there is a database hosted by the NREL OpenEI website of the Hourly Load Profiles for all TMY3 Locations , but wanted to know if this data is able to be sourced using SSC SDK modules or by another source. Thanks

Kevin

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

  • Paul Gilman
More
10 Aug 2017 17:12 #5623 by Paul Gilman
Replied by Paul Gilman on topic Obtaining Electric Load Profiles using SDK
Dear Kevin,

You can use the "Download Electric Load" macro in SAM to access the data:
  1. Start SAM, and open or create a project with the Detailed Photovoltaic or PVWatts performance model and Residential financial model.
  2. Click Macros at the bottom left of the Main window, under the Simulate button.
  3. Click Download Electric Load and read the description of the macro and instructions.

This code is not part of SSC, so you cannot access it using the SDK. However, if you are using the SDK to run SAM, you could write your own code to access the load data based on the macro's LK script. To see the macro's script, click View code at the top of the Macro page. The load data files are stored as CSV files that you can download via HTTP, which you can do with a single line of code. Most of the script determines the TMY3 ID from the latitude and longitude in the weather file, which is a little more complicated and requires an API key from the NREL Developer Network .

Best regards,
Paul.

To i

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

Moderators: Paul Gilman
Powered by Kunena Forum