Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. from astropy.io import ascii
  2. from astropy import units as u
  3. from poliastro.atmosphere.models import COESA62
  4. from prettytable import PrettyTable
  5. import numpy as np
  6.  
  7. coesa62 = COESA62()
  8.  
  9. t = PrettyTable()
  10. t.align='l'
  11. t.border=False
  12.  
  13. t.add_column("Z [km]", coesa62._Zb_table.to(u.km).round(0).value)
  14. t.add_column("H [km]", coesa62._Hb_table.to(u.km).round(0).value)
  15. t.add_column("Tm [K]", coesa62._Tb_table.to(u.K).round(2).value)
  16. t.add_column("p[mbar]", coesa62._pb_table.to(u.mbar).value)
  17.  
  18. atmosphere_file = open('coesa62.dat', 'w')
  19. atmosphere_file.write(str(t))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement