crop#
- EBSD.crop(*args, **kwargs)[source]#
Crops the data in a given axis. The range is given in pixels.
This docstring was copied from HyperSpy’s Signal2D.crop. Some inconsistencies with the kikuchipy version may exist.
- Parameters:
- axis
int
orstr
Specify the data axis in which to perform the cropping operation. The axis can be specified using the index of the axis in axes_manager or the axis name.
- start
int
,float
,or
None
The beginning of the cropping interval. If type is
int
, the value is taken as the axis index. If type isfloat
the index is calculated using the axis calibration. If start/end isNone
the method crops from/to the low/high end of the axis.- end
int
,float
,or
None
The end of the cropping interval. If type is
int
, the value is taken as the axis index. If type isfloat
the index is calculated using the axis calibration. If start/end isNone
the method crops from/to the low/high end of the axis.- convert_unitsbool
Default is
False
. IfTrue
, convert the units using theconvert_units()
method of theAxesManager
. IfFalse
, does nothing.
- axis