1818
1919from pvlib ._deprecation import pvlibDeprecationWarning
2020import warnings
21+ from pvlib ._deprecation import deprecated
2122
2223
2324# Deprecation warning based on https://peps.python.org/pep-0562/
@@ -3086,8 +3087,13 @@ def campbell_norman(zenith, transmittance, pressure=101325.0,
30863087
30873088 return irrads
30883089
3089-
3090- def _liujordan (zenith , transmittance , airmass , dni_extra = 1367.0 ):
3090+ @deprecated (
3091+ since = "0.15.2" ,
3092+ removal = "0.17.0" ,
3093+ name = "_liujordan" ,
3094+ addendum = None ,
3095+ )
3096+ def _liujordan (zenith : pd .Series , transmittance : float , airmass : float , dni_extra = 1367.0 ) -> pd .DataFrame :
30913097 '''
30923098 Determine DNI, DHI, GHI from extraterrestrial flux, transmittance,
30933099 and optical air mass number.
@@ -3106,11 +3112,11 @@ def _liujordan(zenith, transmittance, airmass, dni_extra=1367.0):
31063112 transmittance: float
31073113 Atmospheric transmittance between 0 and 1.
31083114
3109- pressure : float, default 101325.0
3110- Air pressure
3115+ airmass : float
3116+ Absolute airmass.
31113117
31123118 dni_extra: float, default 1367.0
3113- Direct irradiance incident at the top of the atmosphere.
3119+ Direct irradiance incident at the top of the atmosphere. [W/m²]
31143120
31153121 Returns
31163122 -------
@@ -3126,6 +3132,10 @@ def _liujordan(zenith, transmittance, airmass, dni_extra=1367.0):
31263132 .. [2] Liu, B. Y., R. C. Jordan, (1960). "The interrelationship and
31273133 characteristic distribution of direct, diffuse, and total solar
31283134 radiation". Solar Energy 4:1-19
3135+
3136+ .. deprecated:: 0.15.2
3137+ The ``_liujordan`` function is deprecated and will be removed in 0.17.0.
3138+ Use the ``liujordan`` function instead.
31293139 '''
31303140
31313141 tau = transmittance
0 commit comments