Пример #1
0
def computeplanets(jd,longit,lat,doprint) :

   label = [None,'Mercury','Venus',None,'Mars','Jupiter','Saturn',
	'Uranus','Neptune','Pluto']
   _skysub.comp_el(jd)
   if doprint == 1 :
      print "Planets for ",
      _skysub.print_all(jd)
      print "UT.",
#   mags = planetmags(jd) 
   planetpos = py_get_planets(jd,longit,lat,doprint) 
   planets = [None]  # blank for position zero
   for i in range(1,10) :
      if i != 3 :
         planets = planets + [[label[i],planetpos[i][0],planetpos[i][1]]]
			# ,mags[i]]]  # dropping the magnitudes.
      else :
         planets = planets + [None]
   return planets
Пример #2
0
def computeplanets(jd, longit, lat, doprint):

    label = [
        None, 'Mercury', 'Venus', None, 'Mars', 'Jupiter', 'Saturn', 'Uranus',
        'Neptune', 'Pluto'
    ]
    _skysub.comp_el(jd)
    if doprint == 1:
        print "Planets for ",
        _skysub.print_all(jd)
        print "UT.",
#   mags = planetmags(jd)
    planetpos = py_get_planets(jd, longit, lat, doprint)
    planets = [None]  # blank for position zero
    for i in range(1, 10):
        if i != 3:
            planets = planets + [[label[i], planetpos[i][0], planetpos[i][1]]]

# ,mags[i]]]  # dropping the magnitudes.
        else:
            planets = planets + [None]
    return planets
Пример #3
0
	def print_all(self, stdz = 0., use_dst = 0) :
		print "UT date and time: ",
		_skysub.print_all(self.jd)
Пример #4
0
 def print_all(self, stdz=0., use_dst=0):
     print "UT date and time: ",
     _skysub.print_all(self.jd)