liger_iris_sim.sky.background_sky

Functions

get_maunakea_sky_background([wave, ...])

get_maunakea_spectral_sky_emission(wave[, ...])

Compute the Maunakea sky emission spectrum.

get_maunakea_spectral_sky_transmission(wave, ...)

Compute the Maunakea sky transmission spectrum (0, 1).

get_maunakea_sky_background(wave: ndarray | None = None, filter_name: str | None = None, filter_info: dict | None = None, resolution: float | None = None, T_tel: float = 275, T_atm: float = 258, T_aos: float = 243, Em_tel: float = 0.09, Em_atm: float = 0.2, Em_aos: float = 0.01, include_oh: bool = True, airmass: float = 1, plate_scale: float | None = None)[source]
get_maunakea_spectral_sky_emission(wave: ndarray, resolution: float = None, T_tel: float = 275, T_atm: float = 258, T_aos: float = 243, Em_tel: float = 0.09, Em_atm: float = 0.2, Em_aos: float = 0.01, include_oh: bool = True, plate_scale: float | None = None) dict[source]

Compute the Maunakea sky emission spectrum.

Parameters:
  • wave (np.ndarray) – The wavelength array.

  • resolution (float | None) – The spectral resolution (taken to be constant across bandpass here).

  • T_tel (float, optional) – The telescope temperature. Defaults to 275.

  • T_atm (float, optional) – The atmospheric temperature. Defaults to 258.

  • T_aos (float, optional) – The AO temperature. Defaults to 243.

  • T_zod (float, optional) – The zodiacal light temperature. Defaults to 5800.

  • Em_tel (float, optional) – The telescope emission coefficient. Defaults to 0.09.

  • Em_atm (float, optional) – The atmospheric emission coefficient. Defaults to 0.2.

  • Em_aos (float, optional) – The AO emission coefficient. Defaults to 0.01.

  • include_oh (bool, optional) – If True, include the simulated OH lines. Defaults to True.

  • plate_scale (float, optional.) – Plate scale in arcsec / pixel (or spaxel). If provided, apply the plate scale correction to convert from per arcsec^2 to per pixel. Default is None.

Returns:

sky_data (dict) – A dictionary containing the sky emission spectrum and its components: - ‘wave’: The wavelength array in microns. - ‘sky_em’: The total sky emission spectrum (photons / (s * m^2 * arcsec^2 * wavebin)). - ‘bbtel’: The telescope blackbody spectrum component (photons / (s * m^2 * arcsec^2 * wavebin)). - ‘bbaos’: The AO blackbody spectrum component (photons / (s * m^2 * arcsec^2 * wavebin)). - ‘bbatm’: The atmospheric blackbody spectrum component (photons / (s * m^2 * arcsec^2 * wavebin)). - ‘bbzod’: The zodiacal light blackbody spectrum component (photons / (s * m^2 * arcsec^2 * wavebin)).

get_maunakea_spectral_sky_transmission(wave: ndarray, resolution: float | None, airmass: float = 1) ndarray[source]

Compute the Maunakea sky transmission spectrum (0, 1).

Parameters:
  • wave (np.ndarray) – The wavelength array in microns to sample the output transmission spectrum on.

  • resolution (float | None) – The spectral resolution. If None, no convolution is performed. Default is None.

  • airmass (float, optional) – The airmass. Default is 1.

Returns:

spec (np.ndarray) – The convolved and resampled transmission spectrum.