Instrument models
This module contains models to perform NSC on GLINT Mark II (2019-2021) and LBTI nuller.
- How to build a model:
1st argument = null depth,
2nd = wavelength scale
3rd = int representing the iteration over wavelength scale
next: “constants” values (not random values for MC)
end: quantities generated by MC
- instrument_models.glint_model(na, wavelength, wl_idx, spec_chan_width, spectra, zeta_minus_A, zeta_minus_B, zeta_plus_A, zeta_plus_B, opd, injA, injB, dark_null, dark_antinull)
Model of the GLINT instrument (version of the instrument 2019 - 2021).
Parameters
- nafloat
Self-calibrated null depth.
- wavelength1d-array
Wavelength in the same unit as the OPD.
- wl_idxint
wavelength cursor.
- spec_chan_widthfloat
Width of a spectral channel, in the same unit as
wavelength.- spectra2d-array
Spectrum of the source seen by both aperture.
- zeta_minus_A1d-array
Splitting ratio between the null output and the photometric output of beam A.
- zeta_minus_B1d-array
Splitting ratio between the null output and the photometric output of beam B.
- zeta_plus_A1d-array
Splitting ratio between the anti-null output and the photometric output of beam A.
- zeta_plus_B1d-array
Splitting ratio between the anti-null output and the photometric output of beam B.
- opd1d-array
Sequence of OPD.
- injA1d-array
Sequence of injection of beam A.
- injB1d-array
Sequence of injection of beam B.
- dark_null1d-array
Detector noise in the null output.
- dark_antinull1d-array
Detector noise in the anti-null output.
Returns
- null1d-array
Sequence of simulated null depth.
- Iminus1d-array
Sequence of simulated null output.
- Iplus1d-array
Sequence of simulated anti-null output.
- instrument_models.lbti_model(na, wavelength, wl_idx, spec_chan_width, phase_bias, opd, IA, IB, thermal_bckg, sigma_eps)
Compute the null depth.
Compute the null depth from generated random values of photometries, detector noise and OPD. The estimator is the ratio of the null over the antinull fluxes.
Parameters
- nafloat
Self-calibrated null depth.
- wavelength1d-array
Wavelength in the same unit as the OPD.
- wl_idxint
wavelength cursor.
- spec_chan_widthfloat
Width of a spectral channel, in the same unit as
wavelength.- phase_biasfloat
Constant term of the phase, in radians.
- opd1d-array
Sequence of OPD. If single value, must be in an array of shape (1,).
- IA1d-array
Sequence of intensity of beam 1 contributing to the interferences. If single value, must be in an array of shape (1,).
- IB1d-array
Sequence of intensity of beam 2 contributing to the interferences. If single value, must be in an array of shape (1,).
- thermal_bckg1d-array
Sequence of therma background. If single value, must be in an array of shape (1,).
- sigma_eps1d-array
Sequence of intra-frame phase fluctuations. If single value, must be in an array of shape (1,).
Returns
- null1d-array
Sequence of simulated null depth. If cupy is installed, this is a cupy (GPU hosted) array
- Iminus1d-array
Sequence of simulated destructive interference. If cupy is installed, this is a cupy (GPU hosted) array
- Iplus1d-array
Sequence of simulated constructive interference. If cupy is installed, this is a cupy (GPU hosted) array