Skip to content

Commit 0781787

Browse files
RDaxiniAdamRJensenechedey-lskandersolarcwhanse
authored
Change Variables and Symbols page into a Glossary of terms (#2234)
* initial test * Update irradiance.py * update list of terms * update dni description in irradiance.py * minor edits, aoi definition * Update glossary.rst * Update glossary.rst * remove in-text dni term glossary link * delete one surface_tilt definition * review: dni definition Co-Authored-By: Adam R. Jensen <[email protected]> * remove old files, add general text to glossary * remove first bullet, add colon, on SoDa line * Update glossary.rst * conciseness (suggestion) * updated aoi definition #2247 * update references old variables style rules page * remove old page link from v0.3.0 whatsnew * Update index.rst Co-Authored-By: Echedey Luis <[email protected]> * Update v0.11.2.rst * Update docs/sphinx/source/user_guide/glossary.rst Co-authored-by: Kevin Anderson <[email protected]> * Update docs/sphinx/source/contributing/style_guide.rst Co-authored-by: Cliff Hansen <[email protected]> * add underscore * changed reference label * update labels * name: nomenclature, update labels * update whatsnew wording * update file name --------- Co-authored-by: Adam R. Jensen <[email protected]> Co-authored-by: Echedey Luis <[email protected]> Co-authored-by: Kevin Anderson <[email protected]> Co-authored-by: Cliff Hansen <[email protected]>
1 parent e77714c commit 0781787

File tree

11 files changed

+205
-94
lines changed

11 files changed

+205
-94
lines changed

docs/sphinx/source/contributing/style_guide.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pvlib python generally follows the `PEP 8 -- Style Guide for Python Code
1313
is 79 characters.
1414

1515
pvlib python uses a mix of full and abbreviated variable names. See
16-
:ref:`variables_style_rules`. We could be better about consistency.
16+
:ref:`nomenclature`.
1717
Prefer full names for new contributions. This is especially important
1818
for the API. Abbreviations can be used within a function to improve the
1919
readability of formulae.

docs/sphinx/source/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pvlib python
2626
that-use-pvlib-python>`_ page for inspiration and listing of your
2727
application.
2828

29-
There is a :ref:`variable naming convention <variables_style_rules>` to
29+
There is a :ref:`variable naming convention <nomenclature>` to
3030
ensure consistency throughout the library.
3131

3232

docs/sphinx/source/user_guide/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ User Guide
1515
clearsky
1616
bifacial
1717
weather_data
18-
variables_style_rules
1918
singlediode
19+
nomenclature
2020
faq
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
.. _nomenclature:
2+
3+
Nomenclature
4+
============
5+
6+
There is a convention on consistent variable names throughout the library:
7+
8+
.. glossary::
9+
10+
airmass
11+
Airmass
12+
13+
airmass_absolute
14+
Absolute airmass
15+
16+
airmass_relative
17+
Relative airmass
18+
19+
albedo
20+
Ratio of reflected solar irradiance to global horizontal irradiance
21+
[unitless]
22+
23+
aoi
24+
Angle of incidence. Angle between the surface normal vector and the
25+
vector pointing towards the sun’s center
26+
27+
aoi_projection
28+
cos(aoi)
29+
30+
ape
31+
Average photon energy
32+
33+
apparent_zenith
34+
Refraction-corrected solar zenith angle in degrees
35+
36+
bhi
37+
Beam/direct horizontal irradiance
38+
39+
dhi
40+
Diffuse horizontal irradiance
41+
42+
dni
43+
Direct normal irradiance [Wm⁻²]. Irradiance received per unit area by a
44+
surface perpendicular (normal) to the sun's rays that propagate in a
45+
straight line from the sun.
46+
47+
dni_clear
48+
Clear sky direct normal irradiance
49+
50+
dni_extra
51+
Direct normal irradiance at top of atmosphere (extraterrestrial)
52+
53+
effective_irradiance
54+
Effective irradiance
55+
56+
eta_inv
57+
Inverter efficiency
58+
59+
eta_inv_nom
60+
Nominal inverter efficiency
61+
62+
eta_inv_ref
63+
Reference inverter efficiency
64+
65+
g_poa_effective
66+
Broadband plane of array effective irradiance
67+
68+
gamma_pdc
69+
Module temperature coefficient. Typically in units of 1/C.
70+
71+
ghi
72+
Global horizontal irradiance
73+
74+
ghi_extra
75+
Horizontal irradiance at top of atmosphere (extraterrestrial)
76+
77+
gri
78+
Ground-reflected irradiance
79+
80+
i_sc
81+
Short circuit module current
82+
83+
i_x, i_xx
84+
Sandia Array Performance Model IV curve parameters
85+
86+
latitude
87+
Latitude
88+
89+
longitude
90+
Longitude
91+
92+
pac, ac
93+
AC power
94+
95+
pdc, dc
96+
DC power
97+
98+
pdc0
99+
Nameplate DC rating
100+
101+
photocurrent
102+
Photocurrent
103+
104+
poa_diffuse
105+
Total diffuse irradiation in plane. Sum of ground and sky diffuse.
106+
107+
poa_direct
108+
Direct/beam irradiation in plane
109+
110+
poa_global
111+
Global irradiation in plane. sum of diffuse and beam projection.
112+
113+
poa_ground_diffuse
114+
In plane ground reflected irradiation
115+
116+
poa_sky_diffuse
117+
Diffuse irradiation in plane from scattered light in the atmosphere
118+
(without ground reflected irradiation)
119+
120+
precipitable_water
121+
Total precipitable water contained in a column of unit cross section
122+
from earth to top of atmosphere
123+
124+
pressure
125+
Atmospheric pressure
126+
127+
relative_humidity
128+
Relative humidity
129+
130+
resistance_series
131+
Series resistance
132+
133+
resistance_shunt
134+
Shunt resistance
135+
136+
saturation_current
137+
Diode saturation current
138+
139+
solar_azimuth
140+
Azimuth angle of the sun in degrees East of North
141+
142+
solar_zenith
143+
Zenith angle of the sun in degrees
144+
145+
surface_azimuth
146+
Azimuth angle of the surface
147+
148+
surface_tilt
149+
Panel tilt from horizontal [°]. For example, a surface facing up = 0°,
150+
surface facing horizon = 90°.
151+
152+
temp_air
153+
Temperature of the air
154+
155+
temp_cell
156+
Temperature of the cell
157+
158+
temp_dew
159+
Dewpoint temperature
160+
161+
temp_module
162+
Temperature of the module
163+
164+
transposition_factor
165+
The gain ratio of the radiation on inclined plane to global horizontal
166+
irradiation: :math:`\frac{poa\_global}{ghi}`
167+
168+
tz
169+
Timezone
170+
171+
v_mp, i_mp, p_mp
172+
Module voltage, current, power at the maximum power point
173+
174+
v_oc
175+
Open circuit module voltage
176+
177+
wind_direction
178+
Wind direction
179+
180+
wind_speed
181+
Wind speed
182+
183+
184+
For further explanation of the variables, common symbols, and
185+
units, refer to the following sources from `SoDa Service <http://www.soda-pro.com/home>`_:
186+
187+
* `Acronyms, Terminology and Units <https://www.soda-pro.com/help/general/acronyms-terminology-and-units>`_
188+
* `Plane orientations and radiation components <https://www.soda-pro.com/help/general/plane-orientations-and-radiation-components>`_
189+
* `Time references <https://www.soda-pro.com/help/general/time-references>`_
190+
191+
.. note:: These further references might not use the same terminology as
192+
*pvlib*. But the physical process referred to is the same.

docs/sphinx/source/user_guide/variables_style_rules.rst

-25
This file was deleted.

docs/sphinx/source/user_guide/weather_data.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ a :py:class:`pandas.DataFrame` of the actual dataset, plus a metadata
8383
dictionary. Most :py:mod:`pvlib.iotools` functions also have
8484
a ``map_variables`` parameter to automatically translate
8585
the column names used in the data file (which vary widely from dataset to dataset)
86-
into standard pvlib names (see :ref:`variables_style_rules`).
86+
into standard pvlib names (see :ref:`nomenclature`).
8787

8888
Typical usage looks something like this:
8989

docs/sphinx/source/whatsnew/v0.11.2.rst

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Documentation
2525
page. (:issue:`2202`, :pull:`2226`)
2626
* Updated :py:func:`~pvlib.irradiance.reindl` to include definitions of terms
2727
and a new "notes" section (:issue:`2183`, :pull:`2193`)
28+
* Added a new :ref:`nomenclature` page, in place of the Variables and Symbols
29+
page, using the sphinx glossary directive. (:issue:`1421`, :pull:`2234`)
2830
* Explained how to write docstrings for new functions in :ref:`example-docstring`
2931
(:discussion:`2081`, :pull:`2254`)
3032

docs/sphinx/source/whatsnew/v0.3.0.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Enhancements
4747
* :ref:`installation` (:issue:`135`)
4848
* :ref:`contributing` (:issue:`46`)
4949
* :ref:`timetimezones` (:issue:`47`)
50-
* :ref:`variables_style_rules` (:issue:`102`)
50+
* Variables and Symbols (:issue:`102`)
5151
* Classes (:issue:`93`) (Moved to :ref:`api` in :issue:`258`)
5252

5353
* Adds support for Appveyor, a Windows continuous integration service.

pvlib/data/variables_style_rules.csv

-56
This file was deleted.

pvlib/iotools/midc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def read_midc(filename, variable_map={}, raw_data=False, **kwargs):
193193
194194
See the MIDC_VARIABLE_MAP for collection of mappings by site.
195195
For a full list of pvlib variable names see the
196-
:ref:`variables_style_rules`.
196+
:ref:`nomenclature`.
197197
198198
Be sure to check the units for the variables you will use on the
199199
`MIDC site <https://midcdmz.nrel.gov/>`_.

pvlib/irradiance.py

+5-7
Original file line numberDiff line numberDiff line change
@@ -734,16 +734,14 @@ def haydavies(surface_tilt, surface_azimuth, dhi, dni, dni_extra,
734734
The Hay and Davies model determines the diffuse irradiance from
735735
the sky (ground reflected irradiance is not included in this
736736
algorithm) on a tilted surface using the surface tilt angle, surface
737-
azimuth angle, diffuse horizontal irradiance, direct normal
738-
irradiance, extraterrestrial irradiance, sun zenith angle, and sun
739-
azimuth angle.
737+
azimuth angle, diffuse horizontal irradiance, direct normal irradiance,
738+
extraterrestrial irradiance, sun zenith angle, and sun azimuth angle.
740739
741740
Parameters
742741
----------
743742
surface_tilt : numeric
744-
Surface tilt angles in decimal degrees. The tilt angle is
745-
defined as degrees from horizontal (e.g. surface facing up = 0,
746-
surface facing horizon = 90)
743+
Panel tilt from the horizontal, in decimal degrees, see
744+
:term:`surface_tilt`.
747745
748746
surface_azimuth : numeric
749747
Surface azimuth angles in decimal degrees. The azimuth
@@ -754,7 +752,7 @@ def haydavies(surface_tilt, surface_azimuth, dhi, dni, dni_extra,
754752
Diffuse horizontal irradiance. [Wm⁻²]
755753
756754
dni : numeric
757-
Direct normal irradiance. [Wm⁻²]
755+
Direct normal irradiance, see :term:`dni`. [Wm⁻²]
758756
759757
dni_extra : numeric
760758
Extraterrestrial normal irradiance. [Wm⁻²]

0 commit comments

Comments
 (0)