In [1]:
from apts import *
import pandas as pd
%matplotlib inline
In [2]:
e = Equipment()
sky_watcher = "Sky Watcher"
e.register(equipment.Camera(23.5, 15.6, 6000, 4000, "Nikon"))
e.register(equipment.Telescope(150, 750, sky_watcher, t2_output = True))
e.register(equipment.Barlow(2, sky_watcher, t2_output = True))
#e.register(equipment.Barlow(3, sky_watcher, t2_output = True))
e.register(equipment.Eyepiece(25, sky_watcher))
e.register(equipment.Eyepiece(10, sky_watcher))
#e.register(equipment.Eyepiece(6, sky_watcher))
e.plot_zoom()
In [3]:
e.plot_fov()
In [4]:
e.plot_connection_graph()
Out[4]:
In [5]:
data = e.data()
data[data.Useful== True].sort_values(['Zoom'], ascending=[0])
Out[5]:
In [6]:
place = Place(lat=50.1637973, lon=19.7855169, name="Example place")
o = Observation(place,e)
In [7]:
place.sunset_time()
Out[7]:
In [8]:
o.plot_weather()
In [9]:
o.is_weather_good()
Out[9]:
In [10]:
o.place.moon_phase()
Out[10]:
In [11]:
o.place.plot_moon_path()
Out[11]:
In [12]:
#n = Notify('lpozarlik@gmail.com')
#n.send(o)
In [13]:
o.local_planets.objects
Out[13]:
In [14]:
o.get_visible_planets()
Out[14]:
In [15]:
o.plot_visible_planets()
Out[15]:
In [16]:
o.get_visible_messier()
Out[16]:
In [17]:
o.plot_messier()
In [18]:
import numpy as np
import time
from datetime import datetime
import ephem
# Always get the latest ISS TLE data from:
# http://spaceflight.nasa.gov/realdata/sightings/SSapplications/Post/JavaSSOP/orbit/ISS/SVPOST.html
iss = ephem.readtle('ISS',
'1 25544U 98067A 17289.56535255 .00016717 00000-0 10270-3 0 9000',
'2 25544 51.6389 153.2478 0004983 22.1446 337.9921 15.54200052 623'
)
#while True:
# o.place.date = datetime.utcnow()
# iss.compute(o.place)
# print('iss: altitude %4.1f deg, azimuth %5.1f deg' % (np.degrees(iss.alt), np.degrees(iss.az)))
# time.sleep(1.0)