skyscapes.physical_model.grid#

Grid-interpolated contrast (per-planet 2D interpax).

Classes#

GridPhysicalModel

Per-planet 2D interpolated contrast over (wavelength, phase-angle).

Module Contents#

class skyscapes.physical_model.grid.GridPhysicalModel[source]#

Bases: skyscapes.physical_model.base.AbstractPhysicalModel

Per-planet 2D interpolated contrast over (wavelength, phase-angle).

Distance and planet radius are ignored – the grid already encodes a flux ratio.

Attributes:

wavelengths_nm: 1-D wavelength grid [nm], shape (n_wl,). phase_angle_deg: 1-D phase-angle grid [deg], shape (n_phase,). contrast_grid: Contrast cube, shape (K, n_wl, n_phase).

wavelengths_nm: jaxtyping.Array#
phase_angle_deg: jaxtyping.Array#
contrast_grid: jaxtyping.Array#
contrast(phase_angle_rad, dist_AU, wavelength_nm, Rp_Rearth)[source]#

Per-planet contrast at (wavelength, phase).

Args:

phase_angle_rad: Phase angle per planet [rad], shape (K, T). dist_AU: Shape (K, T); ignored (grid encodes flux ratio). wavelength_nm: Scalar wavelength. Rp_Rearth: Shape (K,); ignored (grid encodes flux ratio).

Returns:

Contrast, shape (K, T).

Parameters:
  • phase_angle_rad (jaxtyping.Array)

  • dist_AU (jaxtyping.Array)

  • wavelength_nm (jaxtyping.Array)

  • Rp_Rearth (jaxtyping.Array)

Return type:

jaxtyping.Array

__repr__()[source]#

One-line summary of grid shape (K, n_wl, n_phase) and wl range.

Return type:

str