pomme.object¶
- class pomme.object.AstroObject(name, distance=None, radial_velocity=None)¶
Bases:
objectClass to store data about an astrophysical object, such as distance, radial velocity, and sky coordinates.
- class pomme.object.SimbadGetter(name: str)¶
Bases:
objectClass to query data from the SIMBAD data base.
- get_distance()¶
Getter for the distance to the astrophysical object, using Simbad. Code adapted from: https://gist.github.com/elnjensen/ce2367faf0d876def1ff68b6154e102b
- Returns:
dist – Distance to astrophysical object, from Simbad.
- Return type:
astropy.units.quantity.Quantity object
- get_radial_velocity()¶
Getter for the radial velocity of the astrophysical object, using Simbad.
- Returns:
velo – Radial velocity of the astrophysical object, from Simbad.
- Return type:
astropy.units.quantity.Quantity object
- Raises:
RuntimeError – If the object has no radial velocity in the SIMBAD database.