Example #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
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
Example #3
0
	def print_all(self, stdz = 0., use_dst = 0) :
		print "UT date and time: ",
		_skysub.print_all(self.jd)
 def print_all(self, stdz=0., use_dst=0):
     print "UT date and time: ",
     _skysub.print_all(self.jd)