Hello,
I'm trying to use PySAM to simulate solar systems based on commercial weather data and am having trouble determining the correct format for the dictionary of resource data. The documentation (
pysam-docs.readthedocs.io/en/latest/modules/Pvwattsv5.html#PySAM.Pvwattsv5.Pvwattsv5.LocationAndResource.solar_resource_data
) mentions that you can assign weather data from dictionary but is unclear on the structure of the dictionary for 'solar_resource_data'.
I tried a format the dictionary as the parameter names with a list of the data:
{ 'dn' : list of dn data,
'di' : list of di data,
...
}
When I try to execute a model with the data, I get the error:
'error: pvwattsv5 execution error. exec fail(pvwattsv5): subhourly weather files must specify the minute for each record'
Is this a results of formatting the data improperly or is there another way to specify the time periods?
Thank you for any help,
David