Not getting results on the graph

21 views
Skip to first unread message

Ruslan Hesenov

unread,
May 8, 2024, 6:48:12 AMMay 8
to pvlib-python
Hello, I tried to get irradiance conditions with the below code, but I could not get any results, could you help me please?
import pvlib
from pvlib.modelchain import ModelChain
from pvlib.location import Location
from pvlib.pvsystem import PVSystem
from pvlib.temperature import TEMPERATURE_MODEL_PARAMETERS
import pandas as pd
import matplotlib.pyplot as plt
location = Location(latitude=50.94, longitude=6.95, tz= 'Europe/Berlin',altitude= 80, name= 'Turku' )
print(location)

sandia_modules = pvlib.pvsystem.retrieve_sam('SandiaMod')
cec_inverters = pvlib.pvsystem.retrieve_sam('CECInverter')

module = sandia_modules['Canadian_Solar_CS5P_220M___2009_']
inverter = cec_inverters['ABB__MICRO_0_25_I_OUTD_US_208__208V_']

temperature_parameters = TEMPERATURE_MODEL_PARAMETERS ['sapm']['open_rack_glass_glass']

system = PVSystem(surface_tilt=45, surface_azimuth=180,
                  module_parameters=module,
                  inverter_parameters= inverter,
                  temperature_model_parameters=temperature_parameters)


modelchain = ModelChain(system, location)

times = pd.date_range(start='2021-01-01', end= '2022-01-01', freq='ME', tz= location.tz)

clear_sky = location.get_clearsky(times)

clear_sky.plot(figsize=(16,9))
plt.show()
Reply all
Reply to author
Forward
0 new messages