Data.clip¶
- Data.clip(clipper: Tuple[float, float] | Sequence[float | int | complex] | ndarray[tuple[Any, ...], dtype[_ScalarT]], column: str | int | Pattern | Sequence[int | str | Pattern] = None) Data¶
Clips the data based on the column and the clipper value.
- Parameters:
datafile (Data) – If not being used as a bound menthod, specifies the instance of Data to work with.
column (index) – Column to look for the maximum in
clipper (tuple or array) – Either a tuple of (min,max) or a numpy.ndarray - in which case the max and min values in that array will be used as the clip limits
- Returns:
(
Stoner.Data) – The newly modified Data object.
Note
If column is not defined (or is None) the
DataFile.setascolumn assignments are used.