File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33global horizontal irradiance, direct normal irradiance,
44diffuse horizontal irradiance, and total irradiance
55under various conditions.
6-
7- Extraterrestrial radiation can be modeled using :func:`extraradiation`.
8-
9- .. ipython:: python
10-
11- import numpy as np
12- import pandas as pd
13- import matplotlib.pyplot as plt
14- import pvlib
15-
16- times = pd.date_range('2014-01-01', '2015-01-01', freq='1D')
17- spencer = pd.Series(pvlib.irradiance.extraradiation(times, method='spencer'), times)
18- asce = pd.Series(pvlib.irradiance.extraradiation(times, method='asce'), times)
19- ephem = pvlib.irradiance.extraradiation(times, method='pyephem') # approx 100x slower than the above.
20- spencer.plot(label='spencer')
21- asce.plot(label='asce')
22- ephem.plot(label='pyephem')
23- plt.legend()
24- @savefig extraradiation.png width=4in
25- plt.ylabel('Extraterrestrial radiation (W/m^2)')
26-
276"""
287
298from __future__ import division
You can’t perform that action at this time.
0 commit comments