|
19 | 19 | from pvlib.location import Location
|
20 | 20 |
|
21 | 21 | tus = Location(32.2, -111, 'US/Arizona', 700, 'Tucson')
|
22 |
| -times = pd.date_range(start=datetime.datetime(2014,1,1), end=datetime.datetime(2014,1,2), freq='1Min') |
| 22 | +times = pd.date_range(start=datetime.datetime(2014,1,1), |
| 23 | + end=datetime.datetime(2014,1,2), freq='1Min') |
23 | 24 | ephem_data = solarposition.get_solarposition(times, tus, method='pyephem')
|
24 |
| -irrad_data = clearsky.ineichen(times, tus, solarposition_method='pyephem') |
25 |
| -aoi = irradiance.aoi(0, 0, ephem_data['apparent_zenith'], ephem_data['apparent_azimuth']) |
| 25 | +irrad_data = clearsky.ineichen(times, tus, linke_turbidity=3, |
| 26 | + solarposition_method='pyephem') |
| 27 | +aoi = irradiance.aoi(0, 0, ephem_data['apparent_zenith'], |
| 28 | + ephem_data['apparent_azimuth']) |
26 | 29 | am = atmosphere.relativeairmass(ephem_data.apparent_zenith)
|
27 |
| -meta = { 'latitude': 37.8, 'longitude': -122.3, 'altitude': 10, 'Name': 'Oakland', 'State': 'CA', 'TZ': -8} |
| 30 | + |
| 31 | +meta = {'latitude': 37.8, |
| 32 | + 'longitude': -122.3, |
| 33 | + 'altitude': 10, |
| 34 | + 'Name': 'Oakland', |
| 35 | + 'State': 'CA', |
| 36 | + 'TZ': -8} |
28 | 37 |
|
29 | 38 | pvlib_abspath = os.path.dirname(os.path.abspath(inspect.getfile(tmy)))
|
30 | 39 |
|
|
0 commit comments