Hey All,I am validating the usage of SAM (via reV) and I am getting a strange result when looking at the 12x24s of actual generation compared to the modeled generation that is output from SAM. I am using the pvwatts7 module and I have the exact latitude and longitude of the farm. Here is a code snippet of how I am calling SAM within reV in python 3.9.18 using HSDS
year = 2020
if(run_solar):
data_file = '/nrel/nsrdb/v3/nsrdb_{}.h5'.format(year)
pp = ProjectPoints.lat_lon_coords(lat_lons, data_file, solar_tracking, 'solar')
solar_gen = Gen.reV_run('pvwattsv7', pp, sam_configs=solar_tracking, res_file=data_file, output_request=req)
timestamps = pd.date_range(start='{}-01-01 00:00:00'.format(year), periods=len(solar_gen.out['cf_profile']), freq='30T')
print(solar_gen.out['cf_profile'])
for index, id in enumerate(ids):
cf_df = pd.DataFrame(solar_gen.out['cf_profile'][:,index], columns=['Value'])
cf_df.index = timestamps
cf_df = cf_df.resample('H').mean()cf_df = cf_df.reset_index()
cf_df = cf_df.rename(columns={'index': 'Date'})
cf_df['Name'] = str(id) 'fixed'
And here is my json of parameters:
{"adjust:constant": 0,
"array_type": 2,
"azimuth": 180,
"capital_cost": 39767200,
"dc_ac_ratio": 1,
"fixed_charge_rate": 0.096,
"fixed_operating_cost": 260000,
"gcr": 0.1,
"inv_eff": 99,
"losses": 0,
"module_type": 2,
"system_capacity": 20000,
"tilt": 35,
"variable_operating_cost": 0}
Attached is a graph of the results compared to the actuals in which you can see that months 6-8 have a much lower capacity factor than the actuals and a much lower capacity than the model predicted in February! Please let me know if there is something I can do with my parameters or the model code to fix this aberration. Thank you!Luke