FCMeasurement.
transform
(transform, direction='forward', channels=None, return_all=True, auto_range=True, use_spln=True, get_transformer=False, ID=None, apply_now=True, args=(), **kwargs)[source]¶Applies a transformation to the specified channels.
The transformation parameters are shared between all transformed channels. If different parameters need to be applied to different channels, use several calls to transform.
Specifies the transformation to apply to the data.
Names of channels to transform. If None is given, all channels will be transformed.
Warning
Remember that transforming all channels does not always make sense. For example, when working with the time channel, one should probably keep the data as is.
If True data range (machine range) is automatically extracted from $PnR field of metadata.
Warning
If the data has been previously transformed its range may not match the $PnR value. In this case, auto_range should be set to False.
>>> trans = original.transform('hlog')
>>> trans = original.transform('tlog', th=2)
>>> trans = original.transform('hlog', d=log10(2**18), auto_range=False)
>>> trans = original.transform('hlog', r=1000, use_spln=True, get_transformer=True)
>>> trans = original.transform('hlog', channels=['FSC-A', 'SSC-A'], b=500).transform('hlog', channels='B1-A', b=100)