cwi_fit_covar¶
-
cwitools.scripts.fit_covar.
fit_covar
(cube, var, xybins=None, wrange=None, alpha_bounds=None, norm_bounds=None, thresh_bounds=None, mask_sky=False, obj=None, plot=False, log=None, silent=None)¶ Fit covariance calibration curve given 3D data and variance.
Parameters: - cube (str) – Path to input data cube
- var (str) – Path to input variance cube
- xybins (list) – List of integer bin sizes, k, such that the data is binned ‘k x k’ spatially. Default is 1 to 1/5 size of the smaller spatial axis. e.g. for input data with 100x60 spatial dimensions, the bin sizes will be [1, 2, 3, …, 11]
- wrange (int tuple) – Wavelength range to focus on for calibration.
- alpha_bounds (float tuple) – Fitting bounds on the alpha parameter
- norm_bounds (float tuple) – Fitting bounds on the normalization factor
- thresh_bounds (float tuple) – Fitting bounds on the kernel-size threshold that separates the logarithmic/flat model regimes.
- mask_sky (bool) – Set to TRUE to auto-mask sky lines
- obj (str) – Path to FITS containing 3D object mask of regions to exclude.
- plot (bool) – Set to True to show diagnostic plots.
- log (str) – Path to log file to save output to.
- silent (bool) – Set to TRUE to suppress standard output.
Returns: None