spectrochempy.BaselineCorrection.compute¶
- BaselineCorrection.compute(*ranges, **kwargs)[source]¶
Base function for dataset baseline correction.
- Parameters
*ranges (a variable number of pair-tuples) – The regions taken into account for the manual baseline correction.
**kwargs – Optional keyword parameters (see Other Parameters).
- Other Parameters
dim (str or int, keyword parameter, optional, default=’x’.) – Specify on which dimension to apply the apodization method. If
dim
is specified as an integer it is equivalent to the usualaxis
numpy parameter.method (str, keyword parameter, optional, default=’sequential’) – Correction method among [‘multivariate’,’sequential’]
interpolation (string, keyword parameter, optional, default=’polynomial’) – Interpolation method for the computation of the baseline, among [‘polynomial’,’pchip’]
order (int, keyword parameter, optional, default=1) – If the correction method polynomial, this give the polynomial order to use.
npc (int, keyword parameter, optional, default=5) – Number of components to keep for the
multivariate
methodzoompreview (float, keyword parameter, optional, default=1.0) – The zoom factor for the preview in interactive mode
figsize (tuple, keyword parameter, optional, default=(8, 6)) – Size of the figure to display in inch