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

2 posts / 0 new
Last post
gsuttle
Sample SamUL script for batch processing PV Capacity Factors based on list of Lat/Longs?

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?

Paul Gilman

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 "http://mercator.nrel.gov/perez_tdy/" with "http://mercator.nrel.gov/perez_2005/" to download the 2005 year file instead of the file.

Best regards,
Paul.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer