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/
@@ -3087,7 +3088,14 @@ def campbell_norman(zenith, transmittance, pressure=101325.0,
30873088 return irrads
30883089
30893090
3090- def _liujordan (zenith , transmittance , airmass , dni_extra = 1367.0 ):
3091+ @deprecated (
3092+ since = "0.15.2" ,
3093+ removal = "0.17.0" ,
3094+ name = "_liujordan" ,
3095+ addendum = None ,
3096+ )
3097+ def _liujordan (zenith : pd .Series , transmittance : float ,
3098+ airmass : float , dni_extra = 1367.0 ) -> pd .DataFrame :
30913099 '''
30923100 Determine DNI, DHI, GHI from extraterrestrial flux, transmittance,
30933101 and optical air mass number.
@@ -3106,11 +3114,11 @@ def _liujordan(zenith, transmittance, airmass, dni_extra=1367.0):
31063114 transmittance: float
31073115 Atmospheric transmittance between 0 and 1.
31083116
3109- pressure : float, default 101325.0
3110- Air pressure
3117+ airmass : float
3118+ Absolute airmass.
31113119
31123120 dni_extra: float, default 1367.0
3113- Direct irradiance incident at the top of the atmosphere.
3121+ Direct irradiance incident at the top of the atmosphere. [W/m²]
31143122
31153123 Returns
31163124 -------
@@ -3126,6 +3134,11 @@ def _liujordan(zenith, transmittance, airmass, dni_extra=1367.0):
31263134 .. [2] Liu, B. Y., R. C. Jordan, (1960). "The interrelationship and
31273135 characteristic distribution of direct, diffuse, and total solar
31283136 radiation". Solar Energy 4:1-19
3137+
3138+ .. deprecated:: 0.15.2
3139+ The ``_liujordan`` function is deprecated and will be
3140+ removed in 0.17.0.
3141+ Use the ``liujordan`` function instead.
31293142 '''
31303143
31313144 tau = transmittance
0 commit comments