I run the following code to estimate DNI and DHI from GHI using the Erbs model available in Sandia's PVLIB.
The original code as here is:
pvlib.irradiance.erbs(ghi, zenith, datetime_or_doy, min_cos_zenith=0.065, max_zenith=87)
My code is:
df= pvlib.irradiance.erbs(df.ghi, sun.zenith, df.index, min_cos_zenith=0.065, max_zenith=85)
But my code returns erbs() got an unexpected keyword argument 'min_cos_zenith'
. Any help is appreciated.
I use:
Python 3.7.3
PVLIB 0.6.1
Pandas 0.24.2
EDIT:
Maybe the solution is to upgrade to PVLIB v0.6.2. But, how to upgrade it. In my machine, none of the following works: pip install pvlib
, pip install --upgrade pvlib
, pip install pvliv ==0.6.2