spectrochempy.pkο
- pk(dataset, phc0=0.0, phc1=0.0, exptc=0.0, pivot=0.0, **kwargs)[source]ο
Linear phase correction.
For multidimensional NDDataset, the phase is by default applied on the last dimension.
- Parameters:
dataset (nddataset) β Input dataset.
phc0 (float or
Quantity, optional, default=0 degree) β Zero order phase in degrees.phc1 (float or
Quantity, optional, default=0 degree) β First order phase in degrees.exptc (float or
Quantity, optional, default=0 us) β Exponential decay constant. If not 0, phc1 is ignored.pivot (float or
Quantity, optional, default=0 in units of the x coordinate) β Units if any must be compatible with last dimension units.
- Returns:
phased β Dataset.
- Other Parameters:
dim (str or int, keyword parameter, optional, default=βxβ.) β Specify on which dimension to apply the phase. If
dimis specified as an integer it is equivalent to the usualaxisnumpy parameter.inv (bool, keyword parameter, optional, default=False.) β True for inverse phasing.
inplace (bool, keyword parameter, optional, default=False.) β True if we make the transform inplace. If False, the function return a new dataset.
See also
ps_expExponential Phase Correction.
pkAutomatic or manual phasing.