def test_spa_physical_dst(): times = pd.date_range(datetime.datetime(2003,10,17,13,30,30), periods=1, freq='D') ephem_data = solarposition.spa(times, golden).ix[0] assert_almost_equals(50.111622, ephem_data['zenith'], 6) assert_almost_equals(194.340241, ephem_data['azimuth'], 6) assert_almost_equals(39.888378, ephem_data['elevation'], 6)
def test_spa_physical_dst(): times = pd.date_range(datetime.datetime(2003, 10, 17, 13, 30, 30), periods=1, freq='D') ephem_data = solarposition.spa(times, golden).ix[0] assert_almost_equals(50.111622, ephem_data['zenith'], 6) assert_almost_equals(194.340241, ephem_data['azimuth'], 6) assert_almost_equals(39.888378, ephem_data['elevation'], 6)
def test_spa_localization(): assert_frame_equal(solarposition.spa(times, tus), solarposition.spa(times_localized, tus))