Skip to content

Commit ce3d9b5

Browse files
committed
Update irradiance.py
1 parent 7abccda commit ce3d9b5

File tree

1 file changed

+32
-31
lines changed

1 file changed

+32
-31
lines changed

pvlib/irradiance.py

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_extra_radiation(datetime_or_doy, solar_constant=1366.1,
4141
Day of year, array of days of year, or datetime-like object
4242
4343
solar_constant : float, default 1366.1
44-
The solar constant.
44+
The solar constant. [Wm⁻²]
4545
4646
method : string, default 'spencer'
4747
The method by which the ET radiation should be calculated.
@@ -61,7 +61,7 @@ def get_extra_radiation(datetime_or_doy, solar_constant=1366.1,
6161
The extraterrestrial radiation present in watts per square meter
6262
on a surface which is normal to the sun. Pandas Timestamp and
6363
DatetimeIndex inputs will yield a Pandas TimeSeries. All other
64-
inputs will yield a float or an array of floats.
64+
inputs will yield a float or an array of floats. See :term:`dni_extra`.
6565
6666
References
6767
----------
@@ -162,18 +162,19 @@ def aoi_projection(surface_tilt, surface_azimuth, solar_zenith, solar_azimuth):
162162
Parameters
163163
----------
164164
surface_tilt : numeric
165-
Panel tilt from horizontal.
165+
Panel tilt from horizontal [°]. See :term:`surface_tilt`.
166166
surface_azimuth : numeric
167-
Panel azimuth from north.
167+
Panel azimuth from north [°]. See :term:`surface_azimuth`.
168168
solar_zenith : numeric
169-
Solar zenith angle.
169+
Solar zenith angle. See :term:`solar_zenith`.
170170
solar_azimuth : numeric
171-
Solar azimuth angle.
171+
Solar azimuth angle. See :term:`solar_azimuth`.
172172
173173
Returns
174174
-------
175175
projection : numeric
176176
Dot product of panel normal and solar angle.
177+
See :term:`aoi_projection`.
177178
"""
178179

179180
projection = (
@@ -202,18 +203,18 @@ def aoi(surface_tilt, surface_azimuth, solar_zenith, solar_azimuth):
202203
Parameters
203204
----------
204205
surface_tilt : numeric
205-
Panel tilt from horizontal.
206+
Panel tilt from horizontal [°]. See :term:`surface_tilt`.
206207
surface_azimuth : numeric
207-
Panel azimuth from north.
208+
Panel azimuth from north [°]. See :term:`surface_azimuth`.
208209
solar_zenith : numeric
209-
Solar zenith angle.
210+
Solar zenith angle [°]. See :term:`solar_zenith`.
210211
solar_azimuth : numeric
211-
Solar azimuth angle.
212+
Solar azimuth angle [°]. See :term:`solar_azimuth`.
212213
213214
Returns
214215
-------
215216
aoi : numeric
216-
Angle of incidence in degrees.
217+
Angle of incidence [°]. See :term:`aoi`.
217218
"""
218219

219220
projection = aoi_projection(surface_tilt, surface_azimuth,
@@ -236,20 +237,20 @@ def beam_component(surface_tilt, surface_azimuth, solar_zenith, solar_azimuth,
236237
Parameters
237238
----------
238239
surface_tilt : numeric
239-
Panel tilt from horizontal.
240+
Panel tilt from horizontal [°]. See :term:`surface_tilt`.
240241
surface_azimuth : numeric
241-
Panel azimuth from north.
242+
Panel azimuth from north [°]. See :term:`surface_azimuth`.
242243
solar_zenith : numeric
243-
Solar zenith angle.
244+
Solar zenith angle [°]. See :term:`solar_zenith`.
244245
solar_azimuth : numeric
245-
Solar azimuth angle.
246+
Solar azimuth angle [°]. See :term:`solar_azimuth`.
246247
dni : numeric
247-
Direct normal irradiance, see :term:`dni`. [Wm⁻²]
248+
Direct normal irradiance [Wm⁻²]. See :term:`dni`.
248249
249250
Returns
250251
-------
251252
beam : numeric
252-
Beam component
253+
Beam component [Wm⁻²].
253254
"""
254255
beam = dni * aoi_projection(surface_tilt, surface_azimuth,
255256
solar_zenith, solar_azimuth)
@@ -284,21 +285,21 @@ def get_total_irradiance(surface_tilt, surface_azimuth,
284285
Parameters
285286
----------
286287
surface_tilt : numeric
287-
Panel tilt from horizontal. [degree]
288+
Panel tilt from horizontal [°]. See :term:`surface_tilt`.
288289
surface_azimuth : numeric
289-
Panel azimuth from north. [degree]
290+
Panel azimuth from north [°]. See :term:`surface_azimuth`.
290291
solar_zenith : numeric
291-
Solar zenith angle. [degree]
292+
Solar zenith angle [°]. See :term:`solar_zenith`.
292293
solar_azimuth : numeric
293-
Solar azimuth angle. [degree]
294+
Solar azimuth angle [°]. See :term:`solar_azimuth`.
294295
dni : numeric
295-
Direct Normal Irradiance. [W/m2]
296+
Direct normal irradiance [Wm⁻²]. See :term:`dni`.
296297
ghi : numeric
297-
Global horizontal irradiance. [W/m2]
298+
Global horizontal irradiance. [Wm⁻²]
298299
dhi : numeric
299-
Diffuse horizontal irradiance. [W/m2]
300+
Diffuse horizontal irradiance. [Wm⁻²]
300301
dni_extra : numeric, optional
301-
Extraterrestrial direct normal irradiance. [W/m2]
302+
Extraterrestrial direct normal irradiance. [Wm⁻²]
302303
airmass : numeric, optional
303304
Relative airmass (not adjusted for pressure). [unitless]
304305
albedo : numeric, default 0.25
@@ -371,13 +372,13 @@ def get_sky_diffuse(surface_tilt, surface_azimuth,
371372
solar_azimuth : numeric
372373
Solar azimuth angle. [degree]
373374
dni : numeric
374-
Direct Normal Irradiance. [W/m2]
375+
Direct Normal Irradiance. [Wm⁻²]
375376
ghi : numeric
376-
Global horizontal irradiance. [W/m2]
377+
Global horizontal irradiance. [Wm⁻²]
377378
dhi : numeric
378-
Diffuse horizontal irradiance. [W/m2]
379+
Diffuse horizontal irradiance. [Wm⁻²]
379380
dni_extra : numeric, optional
380-
Extraterrestrial direct normal irradiance. [W/m2]
381+
Extraterrestrial direct normal irradiance. [Wm⁻²]
381382
airmass : numeric, optional
382383
Relative airmass (not adjusted for pressure). [unitless]
383384
model : str, default 'isotropic'
@@ -390,7 +391,7 @@ def get_sky_diffuse(surface_tilt, surface_azimuth,
390391
Returns
391392
-------
392393
poa_sky_diffuse : numeric
393-
Sky diffuse irradiance in the plane of array. [W/m2]
394+
Sky diffuse irradiance in the plane of array. [Wm⁻²]
394395
395396
Raises
396397
------
@@ -2823,7 +2824,7 @@ def orgill_hollands(ghi, zenith, datetime_or_doy, dni_extra=None,
28232824
Day of year or array of days of year e.g.
28242825
pd.DatetimeIndex.dayofyear, or pd.DatetimeIndex.
28252826
dni_extra : numeric, optional
2826-
Extraterrestrial direct normal irradiance. [W/m2]
2827+
Extraterrestrial direct normal irradiance. [Wm⁻²]
28272828
min_cos_zenith : numeric, default 0.065
28282829
Minimum value of cos(zenith) to allow when calculating global
28292830
clearness index `kt`. Equivalent to zenith = 86.273 degrees.

0 commit comments

Comments
 (0)