Exoplanet#

class stellarphot.settings.Exoplanet(*arg, epoch: Annotated[Time, AstropyValidator] | None = None, period: Annotated[Quantity, _UnitQuantTypePydanticAnnotation, WithPhysicalType(physical_type=time)] | None = None, identifier: str, coordinate: Annotated[SkyCoord, AstropyValidator], depth: float | None = None, duration: Annotated[Quantity, _UnitQuantTypePydanticAnnotation, WithPhysicalType(physical_type=time)] | None = None)[source]#

Bases: BaseModelWithTableRep

Create an object representing an Exoplanet.

Parameters:
epochastropy.time.Time, optional

Epoch of the exoplanet.

periodastropy.units.Quantity, optional

Period of the exoplanet.

Identifierstr

Identifier of the exoplanet.

coordinateastropy.coordinates.SkyCoord

Coordinates of the exoplanet.

depthfloat

Depth of the exoplanet.

durationastropy.units.Quantity, optional

Duration of the exoplanet transit.

Examples

To create an Exoplanet object, you can pass in the epoch,

period, identifier, coordinate, depth, and duration as keyword arguments:

>>> from astropy.time import Time
>>> from astropy.coordinates import SkyCoord
>>> from astropy import units as u
>>> planet  = Exoplanet(epoch=Time(2455909.29280, format="jd"),
...                     period=1.21749 * u.day,
...                     identifier="KELT-1b",
...                     coordinate=SkyCoord(ra="00:01:26.9169",
...                                         dec="+39:23:01.7821",
...                                         frame="icrs",
...                                         unit=("hour", "degree")),
...                     depth=0.006,
...                     duration=120 * u.min)

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.