Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from ephem import readtle
- from picamera import PiCamera
- from time import sleep
- class MyStruct():
- def __init__(self, field1, field2, field3):
- self.field1 = field1
- self.field2 = field2
- self.field3 = field3
- name = "ISS (ZARYA)"
- line1 = "1 25544U 98067A 18356.58700427 .00000680 00000-0 17564-4 0 9997"
- line2 = "2 25544 51.6379 159.8223 0004659 171.1463 304.0053 15.54085692147811"
- camera = PiCamera()
- camera.resolution = (2592, 1944) # max resolution
- for i in range(3*60):
- camera.capture('image{:3d}'.format()) # take a picture every minute for 3 hours
- sleep(60)
- iss = readtle(name, line1, line2)
- iss.compute()
- print(iss.sublat, iss.sublong)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement