2 from full_physics
import *
15 tm = datetime.datetime(2006,9,14,12,27,22,100)
21 tm = tm - datetime.timedelta(seconds=time.timezone)
23 tm += datetime.timedelta(hours=1)
25 p = SolarDopplerShiftPolynomial(tm,
26 DoubleWithUnit(77.1828918457,Unit(
"deg")),
27 DoubleWithUnit(74.128288269,Unit(
"deg")),
28 DoubleWithUnit(167.495071411,Unit(
"deg")),
29 DoubleWithUnit(416,Unit(
"m")))
31 assert_almost_equal(p.solar_distance.value, 1.0060305651331354)
33 wn = SpectralDomain([12929.94, 12979.93, 13029.93, 13079.93,
35 expected = np.array([12929.919173650407,
41 nptest.assert_array_almost_equal(p.doppler_stretch(wn).data, expected)