liger_iris_sim.sky.ohlines

Functions

sim_ohline_lorenztian(wave, wavecenter, ...)

Simulate a single OH line with a Lorentzian profile.

sim_ohlines(wave, resolution)

Simulate the OH lines.

_get_ohlines_filepath()[source]
sim_ohline_lorenztian(wave: ndarray, wavecenter: float, flux: float, resolution: float, intrinsic_resolution: float | None = 100000.0)[source]

Simulate a single OH line with a Lorentzian profile.

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

  • wavecenter (float) – The center of the line.

  • flux (float) – The integrated flux of the line in any units.

  • resolution (float) – The spectral resolution.

  • intrinsic_resolution (float | None, optional) – The intrinsic spectral resolution of the line. If None, the line is assumed to be a delta function.

Returns:

spec (np.ndarray) – The simulated OH line spectrum sampled on wave. Output units are photons / (m^2 * s * arcsec^2 * wavebin).

sim_ohlines(wave: ndarray, resolution: float) ndarray[source]

Simulate the OH lines.

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

  • resolution (float) – The spectral resolution.

Returns:

ohspec (np.ndarray) – The OH spectrum.