Planet

class phringe.core.sources.planet.Planet(*, name: str, propagate_orbit: bool, mass: Union[str, float, Quantity], radius: Union[str, float, Quantity], temperature: Union[str, float, Quantity], semi_major_axis: Union[str, float, Quantity], eccentricity: float, inclination: Union[str, float, Quantity], raan: Union[str, float, Quantity], argument_of_periapsis: Union[str, float, Quantity], true_anomaly: Union[str, float, Quantity], sed_loader: Optional[SEDLoader], grid_position: Tuple = None)

Class representation of a planet.

Parameters:
  • propagate_orbit (bool) – Whether the planet’s orbit is propagated in time. If not, it is assumed to be static.

  • mass (float or str or Quantity) – The mass of the planet in units of weight.

  • radius (float or str or Quantity) – The radius of the planet in units of length.

  • temperature (float or str or Quantity) – The effective temperature of the planet in units of temperature.

  • semi_major_axis (float or str or Quantity) – The semi-major axis of the planet’s orbit in units of length.

  • eccentricity (float) – The eccentricity of the planet’s orbit.

  • inclination (float or str or Quantity) – The inclination of the planet’s orbit in units of degrees.

  • raan (float or str or Quantity) – The right ascension of the ascending node of the planet’s orbit in units of degrees.

  • argument_of_periapsis (float or str or Quantity) – The argument of periapsis of the planet’s orbit in units of degrees.

  • true_anomaly (float or str or Quantity) – The true anomaly of the planet’s orbit in units of degrees.

  • sed_loader (SEDLoader, optional) – The object to load custom SEDs. If None, a blackbody spectrum is generated.

  • grid_position (Tuple[int, int], optional) – The grid position of the planet in the sky. If None, the position is calculated from its orbital elements.

n_grid_points()

Return the number of grid points (pixels) covered by the source.

Returns:

The number of grid points.

Return type:

int

property sky_brightness_distribution: Tensor

Return the angular sky brightness distribution of the source of shape n_wavelengths x n_time_steps x n_grid x n_grid.

Returns:

The sky brightness distribution as a 4D array of shape n_wavelengths x n_time_steps x n_grid x n_grid

Return type:

torch.Tensor

property sky_coordinates: Tensor

Return the angular sky coordinates of the source of shape 2 x n_wavelengths x n_time_steps x n_grid x n_grid.

Returns:

The angular sky coordinates as a 4D array of shape 2 x n_wavelengths x n_time_steps x n_grid x n_grid

Return type:

torch.Tensor

property spectral_energy_distribution: Tensor

Return the spectral energy distribution of the source of shape n_wavelengths x n_grid x n_grid.

Returns:

The spectral energy distribution as a 1D array of shape n_wavelengths.

Return type:

torch.Tensor