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:
BaseModelWithTableRepCreate an object representing an Exoplanet.
- Parameters:
- epoch
astropy.time.Time, optional Epoch of the exoplanet.
- period
astropy.units.Quantity, optional Period of the exoplanet.
- Identifierstr
Identifier of the exoplanet.
- coordinate
astropy.coordinates.SkyCoord Coordinates of the exoplanet.
- depthfloat
Depth of the exoplanet.
- duration
astropy.units.Quantity, optional Duration of the exoplanet transit.
- epoch
Examples
- To create an
Exoplanetobject, 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.selfis explicitly positional-only to allowselfas a field name.