Documentation of the determination of the zeta coefficients¶
This script gives the conversion coefficient between the null/antinull outputs and the photometric ones, for every spectral channels.
It also estimate the splitting and coupling coefficients for characterization purpose.
The data to process consists in files acquired when each beam is active one after the other.
The name of the file must contain the keyword pX
where X is the id of the beam (1 to 4).
The script concatenate all the files of a given active beam into one frame then extract the intensities into everey output. The zeta coefficient (conversion factor) are computed by doing the ratio of the interferometric output over the photometric one.
Nota Bene: one spectral channel consists in one column of pixel. The whole width of the frame is used, including the part with no signal. Consequently, some coefficients (zeta, splitting or coupling) are absurd.
- The inputs are set in the
Inputs
section: - datafolder: string, folder containing the files to process for all beams
- root: string, path to the root folder containing all the subfolders containing all the products needed
- calibration_path: string, folder containing the calibration data (spectral and geometric calibrations)
- output_path: string, path to the folder where the products of the script are saved
- The settings are in the
Settings
section: - no_noise: bool,
True
if data is noise-free (e.g. comes from a simulation) - nb_img: tuple, bounds between frames are selected. Leave
None
to start from the first frame or to finish to the last one (included). - debug: bool, set to
True
to check if the methodgetSpectralFlux
correctly behaves (e.g. good geometric calibration). It is strongly adviced to change nb_img to only process one frame. - save: bool, set to
True
to save the zeta coefficient.
- no_noise: bool,
- The outputs are:
- Some plots for characterization and monitoring purpose, they are not automatically saved.
- An HDF5 file containing the zeta coefficient.
-
glint_zeta_coeff.
gaussian
(x, A, loc, sig)¶ Computes a Gaussian curve
Parameters: x: values where the curve is estimated.
a: amplitude of the Gaussian.
x0: location of the Gaussian.
sig: scale of the Gaussian.
Returns: Gaussian curve.