1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
| from ephem import * mars = Mars('1970') print('%s, %s, %.10f' % (mars.name, mars.elong, mars.size))
sun = Sun('1970') print('%s, %s, %.10f' % (sun.name, sun.elong, sun.size))
moon = Moon('1970') print('%s, %s, %.10f' % (moon.name, moon.elong, moon.size))
mercury = Mercury('1970') print('%s, %s, %.10f' % (mercury.name, mercury.elong, mercury.size))
venus = Venus('1970') print('%s, %s, %.10f' % (venus.name, venus.elong, venus.size))
jupiter = Jupiter('1970') print('%s, %s, %.10f' % (jupiter.name, jupiter.elong, jupiter.size))
saturn = Saturn('1970') print('%s, %s, %.10f' % (saturn.name, saturn.elong, saturn.size))
uranus = Uranus('1970') print('%s, %s, %.10f' % (uranus.name, uranus.elong, uranus.size))
neptune = Neptune('1970') print('%s, %s, %.10f' % (neptune.name, neptune.elong, neptune.size))
pluto = Pluto('1970') print('%s, %s , %.10f' % (pluto.name, pluto.elong, pluto.size)) Mars, 62:04:48.0, 5.9295825958 Sun, 0:00:00.0, 1951.8359375000 Moon, -89:27:48.3, 1831.0117187500 Mercury, 18:52:17.4, 7.5804867744 Venus, -5:42:32.4, 9.9605798721 Jupiter, -67:50:24.1, 34.2474060059 Saturn, 111:52:32.6, 18.8122367859 Uranus, -91:26:29.1, 3.8586533070 Neptune, -40:17:59.5, 2.1982953548 Pluto, -102:16:48.8 , 0.2606950402
hlon — Heliocentric longitude (see next paragraph)
|