spectrochempy.center# center(dataset, dim='y', inplace=False)[source]# Subtract the mean along a dimension (mean-centering). Parameters: dataset (NDDataset) – The input data. dim (str or int, optional, default:’y’) – Dimension along which the mean is computed and subtracted. inplace (bool, optional, default:False) – If True, centering is performed in place. Returns: NDDataset – The centered dataset. Examples >>> dataset = scp.read("irdata/nh4.spg") >>> nd = dataset.center(dim="x")