Advertisement
Anon2005

Astro3

Jan 29th, 2020
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.70 KB | None | 0 0
  1. from ephem import readtle
  2. from picamera import PiCamera
  3. from time import sleep
  4.  
  5. class MyStruct():
  6.     def __init__(self, field1, field2, field3):
  7.         self.field1 = field1
  8.         self.field2 = field2
  9.         self.field3 = field3
  10.  
  11. name = "ISS (ZARYA)"
  12. line1 = "1 25544U 98067A   18356.58700427  .00000680  00000-0  17564-4 0  9997"
  13. line2 = "2 25544  51.6379 159.8223 0004659 171.1463 304.0053 15.54085692147811"
  14.  
  15. camera = PiCamera()
  16. camera.resolution = (2592, 1944)  # max resolution
  17.  
  18. for i in range(3*60):
  19.     camera.capture('image{:3d}'.format())  # take a picture every minute for 3 hours
  20.     sleep(60)
  21.  
  22. iss = readtle(name, line1, line2)
  23. iss.compute()
  24. print(iss.sublat, iss.sublong)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement