I am wondering weather is possible to directly run the PVwatts model without using a weather file, and directly assigning the sequences of weather data to the SolarResource.solar_resource_data attribute. I tried the following, but I always get Annual Energy = 0, and all elements of ac out = 0. What am I doing wrong? Or is what I am trying to do not possible.
import PySAM.Pvwattsv7 as pv
model = pv.default('PVWattsNone')
wspd = [0, 0, 0.83... # 8760 elements of data. ie len(wspd = 8760)
tdry = [10.3, 10.54...
dn = [0, 0...
dh = [0, 0...
year = [2019, 2019 ...
month = [6, 6 ...
day = [1, 1 ...
hour = [0, 0, ...
minute = [0, 15 ...
model.SolarResource.assign({'solar_resource_data':{'dn':dn,
'df':dh,
'tdry':tdry,
'wspd':wspd,
'lat':51.4,
'lon':1.1,
'tz':0,
'Elevation':16,
'Year':year,
'Month':month,
'Day':day,
'Hour':hour,
'Minute':minute,
'albedo':0.5}})
model.execute(1)
model.ac_annual #0.0 kWh