Star¶
- class phringe.core.sources.star.Star(*, name: str, distance: Union[str, float, Quantity], mass: Union[str, float, Quantity], radius: Union[str, float, Quantity], temperature: Union[str, float, Quantity], right_ascension: Union[str, float, Quantity], declination: Union[str, float, Quantity])¶
Class representation of a star.
- Parameters:
distance (str, float, or Quantity) – Distance between the host star and the instrument in units of length.
mass (str, float, or Quantity) – Mass of the host star in units of weight.
radius (str, float, or Quantity) – Radius of the host star in units of length.
temperature (str, float, or Quantity) – Temperature of the host star in units of temperature.
right_ascension (str, float, or Quantity) – Right ascension of the host star in units of degrees.
declination (str, float, or Quantity) – Declination of the host star in units of degrees.
- 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