Esempio n. 1
0
 def test_in_degrees_per_year_from_century_ra_deg_arc(self):
     ra = RightAscension(degrees=90)
     proper_motion = ProperMotion(ra, time='century')
     assert_equal(proper_motion.in_degrees_per_year(), 90 / 100)
Esempio n. 2
0
 def test_in_degrees_per_year_ra_time(self):
     ra = RightAscension('12:00:00')
     proper_motion = ProperMotion(ra)
     assert_equal(proper_motion.in_degrees_per_year(), 180)
Esempio n. 3
0
 def test_in_degrees_per_year_from_century_dec_radians(self):
     dec = Declination(radians=pi / 4)
     proper_motion = ProperMotion(dec, time='century')
     assert_equal(proper_motion.in_degrees_per_year(), 45 / 100)
Esempio n. 4
0
 def test_in_degrees_per_year_ra_deg_arc(self):
     ra = RightAscension(degrees=90)
     proper_motion = ProperMotion(ra)
     assert_equal(proper_motion.in_degrees_per_year(), 90)
Esempio n. 5
0
 def test_in_degrees_per_year_ra_deg_milliarcseconds(self):
     ra = RightAscension(degrees='0 0 0.001')
     proper_motion = ProperMotion(ra)
     assert_almost_equal(proper_motion.in_degrees_per_year(), 2.77778e-07,
                         5)
Esempio n. 6
0
 def test_in_degrees_per_year_dec_radians(self):
     dec = Declination(radians=pi / 4)
     proper_motion = ProperMotion(dec)
     assert_equal(proper_motion.in_degrees_per_year(), 45)
Esempio n. 7
0
 def test_in_degrees_per_year_from_century_dec_time(self):
     dec = Declination(degrees=6, units='time')
     proper_motion = ProperMotion(dec, time='century')
     assert_equal(proper_motion.in_degrees_per_year(), 90 / 100)
Esempio n. 8
0
 def test_in_degrees_per_year_dec_time(self):
     dec = Declination(degrees=6, units='time')
     proper_motion = ProperMotion(dec)
     assert_equal(proper_motion.in_degrees_per_year(), 90)
Esempio n. 9
0
 def test_in_degrees_per_year_dec_deg_arc(self):
     dec = Declination(degrees=90)
     proper_motion = ProperMotion(dec)
     assert_equal(proper_motion.in_degrees_per_year(), 90)
Esempio n. 10
0
 def test_in_degrees_per_year_ra_radians(self):
     ra = RightAscension(radians=pi / 2)
     proper_motion = ProperMotion(ra)
     assert_equal(proper_motion.in_degrees_per_year(), 90)
Esempio n. 11
0
 def test_in_degrees_per_year_from_century_ra_time(self):
     ra = RightAscension('12:00:00')
     proper_motion = ProperMotion(ra, time='century')
     assert_equal(proper_motion.in_degrees_per_year(), 180 / 100)