spectrochempy.blackmanharrisο
- blackmanharris()def blackmanharris(dataset, **kwargs)[source]ο
Calculate a minimum 4-term Blackman-Harris apodization.
For multidimensional NDDataset, the apodization is by default performed on the last dimension.
The data in the last dimension MUST be time-domain or dimensionless, otherwise an error is raised.
- Parameters:
dataset (dataset) β Input dataset.
- Returns:
apodized β Dataset.
apod_arr β The apodization array only if βretapodβ is True.
**kwargs β Additional 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
dimis specified as an integer it is equivalent to the usualaxisnumpy parameter.inv (bool, keyword parameter, optional, default=False) β True for inverse apodization.
rev (bool, keyword parameter, optional, default=False) β True to reverse the apodization before applying it to the data.
inplace (bool, keyword parameter, optional, default=False) β True if we make the transform inplace. If False, the function return a new datase
retapod (bool, keyword parameter, optional, default=False) β True to return the apodization array along with the apodized object.