-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update get_extra_radiation references
#2437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 16 commits
bbfe282
bead0e3
93f675b
a65e881
f85ce83
aaee8da
bdc3311
96ce102
97d3bcc
6db356b
dd94707
592f8f4
d8fbffb
78d1be7
196e0eb
96485d2
1d59f93
616ccfc
9f084c4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,27 +33,31 @@ def __getattr__(attr): | |
| def get_extra_radiation(datetime_or_doy, solar_constant=1366.1, | ||
| method='spencer', epoch_year=2014, **kwargs): | ||
| """ | ||
| Determine extraterrestrial radiation from day of year. | ||
| Determine extraterrestrial radiation from day of year. Specific references | ||
| for each method of caclulating the earth-sun distance are cited in the | ||
| parameter descriptions below, while a more general discussion of the | ||
| different models may also be found in [1]_, [2]_, and [3]_. | ||
|
|
||
| Parameters | ||
| ---------- | ||
| datetime_or_doy : numeric, array, date, datetime, Timestamp, DatetimeIndex | ||
| Day of year, array of days of year, or datetime-like object | ||
|
|
||
| solar_constant : float, default 1366.1 | ||
| The solar constant. | ||
| The solar constant. [Wm⁻²] | ||
|
|
||
| method : string, default 'spencer' | ||
| The method by which the ET radiation should be calculated. | ||
| Options include ``'pyephem', 'spencer', 'asce', 'nrel'``. | ||
| method : string, default `spencer` | ||
| The method by which the extraterrestrial radiation should be | ||
| calculated. Options include: `pyephem`, `spencer` [4]_, `asce` [5]_, | ||
| 'nrel' [6]_. | ||
|
|
||
| epoch_year : int, default 2014 | ||
| The year in which a day of year input will be calculated. Only | ||
| applies to day of year input used with the pyephem or nrel | ||
| applies to day of year input used with the `pyephem` or `nrel` | ||
| methods. | ||
|
|
||
| kwargs : | ||
| Passed to solarposition.nrel_earthsun_distance | ||
| Passed to :py:func:`~pvlib.solarposition.nrel_earthsun_distance`. | ||
|
|
||
| Returns | ||
| ------- | ||
|
|
@@ -69,19 +73,25 @@ def get_extra_radiation(datetime_or_doy, solar_constant=1366.1, | |
| Clear Sky Models: Implementation and Analysis", Sandia National | ||
| Laboratories, SAND2012-2389, 2012. | ||
RDaxini marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| .. [2] http://solardata.uoregon.edu/SolarRadiationBasics.html, Eqs. | ||
| SR1 and SR2 | ||
| .. [2] J. A. Duffie and W. A. Beckman, "Solar Radiation" in Solar | ||
| Engineering of Thermal Processes, 5th ed, New York, USA, J. Wiley | ||
| and Sons, 2020. | ||
RDaxini marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| .. [3] Partridge, G. W. and Platt, C. M. R. 1976. Radiative Processes | ||
| in Meteorology and Climatology. | ||
| .. [3] "Solar Radiation Basics". University of Oregon. Accessed: 04 April, | ||
| 2025. [Online.] Available https://web.archive.org/web/20240424224453/http://solardata.uoregon.edu/SolarRadiationBasics.html | ||
RDaxini marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| .. [4] Duffie, J. A. and Beckman, W. A. 1991. Solar Engineering of | ||
| Thermal Processes, 2nd edn. J. Wiley and Sons, New York. | ||
| .. [4] J. W. Spencer, "Fourier series representation of the sun," Search, | ||
| vol. 2, p. 172, 1971. | ||
|
|
||
| .. [5] ASCE, 2005. The ASCE Standardized Reference Evapotranspiration | ||
| Equation, Environmental and Water Resources Institute of the American | ||
| Civil Engineers, Ed. R. G. Allen et al. | ||
| """ | ||
| .. [5] R. G. Allen, Environmental, and E. Water Resources institute. Task | ||
| Committee on Standardization of Reference, The ASCE standardized | ||
| reference evapotranspiration equation. Reston, Va.: American Society of | ||
| Civil Engineers, 2005 | ||
RDaxini marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| .. [6] I. Reda, A. Andreas, "Solar position algorithm for solar | ||
| radiation applications" NREL Golden, USA. NREL/TP-560- 34302, 2008. | ||
|
||
|
|
||
| """ # noqa: E501 | ||
|
|
||
| to_doy, to_datetimeindex, to_output = \ | ||
| _handle_extra_radiation_types(datetime_or_doy, epoch_year) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.