The SWEET-Cat catalog¶
- class PyAstronomy.pyasl.SWEETCat(skipUpdate=False)¶
Access the SWEET-Cat catalog.
The SWEET-Cat catalog provides parameters for planet host stars.
The following data are provided
Column
Description
Unit
star
Name of the star
hd
The HD number (if available)
ra
The right ascension
hms
dec
The declination
dms
vmag
V magnitude
mag
ervmag
Error on V magnitude
mag
par
Parallax
mas
erpar
Error on parallax
mas
parsource
If par is from Simbad or calculated
teff
Effective temperature
K
erteff
Error on effective temperature
K
logg
Surface gravity
cgs
erlogg
Error on surface gravity
cgs
logglc
Surface gravity from LC
cgs
erlogglc
Error on surface gravity from LC
cgs
vt
Micro turbulence
km/s
ervt
Error on micro turbulence
km/s
metal
Metallicity ([Fe/H])
ermetal
Error on metallicity
mass
Mass calculated from Torres et al.
Solar
ermass
Error on calculated mass
Solar
author
Author of source
link
Link to paper in ADS
source
1 means CAUP’s method. 0 otherwise
update
When the parameters were updated
comment1
Special comment
comment2
Blank
Detailed information can be found here: https://www.astro.up.pt/resources/sweet-cat/ and in the associated publications.
- Attributes
- datapandas data frame
The catalog data
Methods
changeDownloadCycle
(c)Change the time after which the data are updated.
dataAge
()Determine the "age" of the data.
Trigger download of data.
needsUpdate
()Determine whether data need to be updated.
- downloadData()¶
Trigger download of data.
Example: Access catalog via pandas data frame¶
from __future__ import print_function
from PyAstronomy import pyasl
sc = pyasl.SWEETCat()
# Access via pandas data frame
# Show first three rows
print(sc.data[0:3])
print()
# Which stars are available?
print("Available stars: ", sc.data["star"].values)
print()
# Check whether star is "available"
star = "XO-5"
starInTable = (star in sc.data.star.values)
print("Is " + star + " in the table? ", starInTable)
if starInTable:
# Get information on that star
print("Data for star: ", star)
info = sc.data[sc.data["star"] == star]
print(info)
print()
print("Get the effective temperature")
teff, erteff = info["teff"], info["erteff"]
print("Effective temperature of " + star + " = %6.1f +/- %6.1f K" % (teff, erteff))