- Posts: 3
Solar PV outputs for dozens of locations
- jiajiazheng
- Topic Author
Less
More
19 Oct 2020 17:02 #8894
by jiajiazheng
Solar PV outputs for dozens of locations was created by jiajiazheng
Hi,
Anyone knows how to generate solar PV outputs using PVWatts in SAM for multiple different locations? I am working on getting hourly solar outputs for an entire state and have the weather files of dozens of cities downloaded already. Do I have to create one case for each location and simulate individually? Many thanks.
Anyone knows how to generate solar PV outputs using PVWatts in SAM for multiple different locations? I am working on getting hourly solar outputs for an entire state and have the weather files of dozens of cities downloaded already. Do I have to create one case for each location and simulate individually? Many thanks.
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5423
20 Oct 2020 10:17 #8900
by pgilman
Replied by pgilman on topic Solar PV outputs for dozens of locations
Hi Jiajia,
You could write an LK script to run a simulation for each location and write results to a CSV file.
For an introduction to LK scripting, see sam.nrel.gov/lk-script.html .
This solar-resource-simulate-multiple-files.lk sample script shows how to run simulations for multiple weather files:
github.com/NREL/SAM/tree/develop/samples/LK%20Scripts%20for%20SAM
The readme at the bottom of the page has instructions for downloading the scripts.
Best regards,
Paul.
You could write an LK script to run a simulation for each location and write results to a CSV file.
For an introduction to LK scripting, see sam.nrel.gov/lk-script.html .
This solar-resource-simulate-multiple-files.lk sample script shows how to run simulations for multiple weather files:
github.com/NREL/SAM/tree/develop/samples/LK%20Scripts%20for%20SAM
The readme at the bottom of the page has instructions for downloading the scripts.
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
- jiajiazheng
- Topic Author
Less
More
- Posts: 3
21 Oct 2020 12:20 #8911
by jiajiazheng
Replied by jiajiazheng on topic Solar PV outputs for dozens of locations
Thank you Paul! I have downloaded the .lk files, and modified the codes for exporting hourly outputs to .csv files in batch. Your answer was very helpful.
-Jiajia
-Jiajia
Please Log in or Create an account to join the conversation.
Moderators: pgilman