spotter.light_curves#

Light curve and design matrix utilities for rotating and transited stars described by HEALPix maps.

This module provides functions to compute design matrices, light curves, and transit light curves for stars with arbitrary surface maps and limb darkening.

Functions#

design_matrix(→ jax.typing.ArrayLike)

Compute the design matrix for a rotating Star.

light_curve(→ jax.typing.ArrayLike)

Compute the light curve of a rotating Star.

transit_design_matrix(star, x, y, z, r[, time, normalize])

Compute the design matrix for a transited Star.

transit_light_curve(star[, x, y, z, r, time, normalize])

Compute the light curve of a transited Star.

Module Contents#

spotter.light_curves.design_matrix(star: spotter.star.Star, time: jax.typing.ArrayLike, normalize: bool = True) jax.typing.ArrayLike[source]#

Compute the design matrix for a rotating Star.

Parameters:
  • star (Star) – Star object.

  • time (ArrayLike) – Time array in days.

Returns:

matrix – Design matrix.

Return type:

ndarray

spotter.light_curves.light_curve(star: spotter.star.Star, time: jax.typing.ArrayLike, normalize=True) jax.typing.ArrayLike[source]#

Compute the light curve of a rotating Star.

Parameters:
  • star (Star) – Star object.

  • time (ArrayLike) – Time array in days.

  • normalize (bool, optional) – Whether to normalize the light curve (default True).

Returns:

lc – Light curve array.

Return type:

ndarray

spotter.light_curves.transit_design_matrix(star, x, y, z, r, time=None, normalize=True)[source]#

Compute the design matrix for a transited Star.

Parameters:
  • star (Star) – Star object.

  • x (float) – x coordinate of the disk center.

  • y (float) – y coordinate of the disk center.

  • z (float) – z coordinate of the disk center.

  • r (float) – Radius of the disk.

  • time (float or None, optional) – Time in days.

Returns:

matrix – Transit design matrix.

Return type:

ndarray

spotter.light_curves.transit_light_curve(star: spotter.star.Star, x: float = 0.0, y: float = 0.0, z: float = 0.0, r: float = 0.0, time: float = 0.0, normalize=True)[source]#

Compute the light curve of a transited Star.

Parameters:
  • star (Star) – Star object.

  • x (float, optional) – x coordinate of the disk center (default 0.0).

  • y (float, optional) – y coordinate of the disk center (default 0.0).

  • z (float, optional) – z coordinate of the disk center (default 0.0).

  • r (float, optional) – Radius of the disk (default 0.0).

  • time (float, optional) – Time in days (default 0.0).

  • normalize (bool, optional) – Whether to normalize the light curve (default True).

Returns:

lc – Transit light curve array.

Return type:

ndarray