liger_iris_pipeline.readout.fit_ramp_numba
Functions
|
Fits ramps using the (M)CDS method. |
|
Top-level function for fitting ramps. |
- liger_iris_pipeline.readout.fit_ramp_numba.fit_ramps_mcds(times, ramps, num_coadd=1)[source]
Fits ramps using the (M)CDS method.
- Args:
times (np.ndarray): Read times. ramps (np.ndarray): 3D array of ramp data with shape (ny, nx, n_reads, n_groups). num_coadd (int): Number of coadds. num_coadd=1 for CDS.
- Returns:
dict[str, np.ndarray]: Dictionary with keys ‘slope’ and ‘slope_err’ containing the fitted slopes and errors.
- liger_iris_pipeline.readout.fit_ramp_numba.fit_ramps_ols(times, ramps)[source]
Top-level function for fitting ramps.
- Args:
times (np.ndarray): Read times. ramps (np.ndarray): 4D array of ramp data with shape (ny, nx, n_groups, n_reads).
- Returns:
dict[str, np.ndarray]: Dictionary with keys ‘slope’ and ‘slope_err’.