23
23
24
24
times_localized = times .tz_localize (tus .tz )
25
25
26
- ephem_data = solarposition .get_solarposition (times , tus , method = 'pyephem' )
26
+ ephem_data = solarposition .get_solarposition (times , tus .latitude ,
27
+ tus .longitude , method = 'pyephem' )
27
28
28
- irrad_data = clearsky .ineichen (times , tus , linke_turbidity = 3 ,
29
+ irrad_data = clearsky .ineichen (times , tus .latitude , tus .longitude ,
30
+ altitude = tus .altitude , linke_turbidity = 3 ,
29
31
solarposition_method = 'pyephem' )
30
32
31
33
dni_et = irradiance .extraradiation (times .dayofyear )
@@ -168,9 +170,10 @@ def test_globalinplane():
168
170
169
171
170
172
def test_disc_keys ():
171
- clearsky_data = clearsky .ineichen (times , tus , linke_turbidity = 3 )
173
+ clearsky_data = clearsky .ineichen (times , tus .latitude , tus .longitude ,
174
+ linke_turbidity = 3 )
172
175
disc_data = irradiance .disc (clearsky_data ['ghi' ], ephem_data ['zenith' ],
173
- ephem_data .index )
176
+ ephem_data .index )
174
177
assert 'dni' in disc_data .columns
175
178
assert 'kt' in disc_data .columns
176
179
assert 'airmass' in disc_data .columns
@@ -187,7 +190,8 @@ def test_disc_value():
187
190
188
191
189
192
def test_dirint ():
190
- clearsky_data = clearsky .ineichen (times , tus , linke_turbidity = 3 )
193
+ clearsky_data = clearsky .ineichen (times , tus .latitude , tus .longitude ,
194
+ linke_turbidity = 3 )
191
195
pressure = 93193.
192
196
dirint_data = irradiance .dirint (clearsky_data ['ghi' ], ephem_data ['zenith' ],
193
197
ephem_data .index , pressure = pressure )
0 commit comments