File: example5_oec.py

package info (click to toggle)
astroquery 0.3.9%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 16,220 kB
  • sloc: xml: 113,675; python: 31,588; makefile: 137; ansic: 88; sh: 46
file content (10 lines) | stat: -rw-r--r-- 252 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
from astroquery import open_exoplanet_catalogue as oec
from astroquery.open_exoplanet_catalogue import findvalue

cata = oec.get_catalogue()
kepler68b = cata.find(".//planet[name='Kepler-68 b']")
print(findvalue(kepler68b, 'mass'))

"""
0.02105109
"""