Using pvwatts losses with ModelChain #1357
-
Hi I am trying to use the Unfortunately, I am unsuccessful at correctly applying the helper-function at this point and haven't been able to find a working example online. Question 1: Input parameter units? Per documentation, the input and output unit is in Question 2: How do I add the
However, the output is: that the Any pointers are appreciated. thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @casaout, hopefully this clears things up a bit :)
The inputs are in
Each of these are percentage losses that get combined into a single overall loss fraction. So for example
The
Note that
Check out the
So the Here is a short example for using the from pvlib.modelchain import ModelChain
from pvlib.pvsystem import PVSystem
from pvlib.location import Location
import pandas as pd
system = PVSystem(losses_parameters={'age': 4},
module_parameters={'pdc0': 1, 'gamma_pdc': -0.004},
inverter_parameters={'pdc0': 1},
temperature_model_parameters={'a': -3.56, 'b': -0.075, 'deltaT': 3})
location = Location(latitude=32.2, longitude=-110.9)
weather = pd.DataFrame([[1050, 1000, 100, 30, 5]],
columns=['ghi', 'dni', 'dhi', 'temp_air', 'wind_speed'],
index=[pd.Timestamp('20170401 1200', tz='US/Arizona')])
mc = ModelChain(system, location, losses_model='pvwatts',
aoi_model='no_loss', spectral_model='no_loss')
mc.run_model(weather)
print(mc.results.ac) |
Beta Was this translation helpful? Give feedback.
Hi @casaout, hopefully this clears things up a bit :)
The inputs are in
%
, meaning a default value of 3 is interpreted as 3%=0.03. If the inputs were supposed to be unitless then the default value would beshading=0.03
.Each of these are percentage losses that get combined into a single overall loss fraction. So for example
shading=3
means that 3% of system production is lost to shading, or…