Sample SamUL script for batch processing PV Capacity Factors based on list of Lat/Longs?

  • gsuttle
  • Topic Author
More
26 Jul 2012 18:41 #729 by gsuttle
I'm using the Flat Plate PV, Independent Power Producer model and want to determine the Capacity Factor for a few hundred locations. Is a sample SamUL script available that will output Capacity Factors using an input CSV that lists the lat/long for each location?

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

  • pgilman
More
01 Aug 2012 17:05 #730 by pgilman
You can find SamUL code samples to download weather data from the NREL Mercator web service in SAM's Help system (see Batch Processing, SamUL, Case Study). The function translate() converts a latitude/longitude coordinates into a Mercator grid code that you can use with the URL shown in the script to download the TDY file for that grid cell.

Please be aware that the "Perez TDY" files that the sample code downloads are Typical DNI Year" data files, which were designed for modeling concentrating solar power (CSP) systems. These files represent the typical direct normal solar resource over the 1998 - 2005 period covered by the data.

For modeling flat plate PV systems, you may want to consider using specific year files instead of the TDY files. I think you can do that by replacing the URL string segment " mercator.nrel.gov/perez_tdy/ " with " mercator.nrel.gov/perez_2005/ " to download the 2005 year file instead of the file.

Best regards,
Paul.

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

Moderators: pgilman
Powered by Kunena Forum