Data.clip

Data.clip(clipper, column=None)

Clips the data based on the column and the clipper value.

Parameters:
  • 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.setas column assignments are used.