integrate_disc#
- abtem.measurements.integrate_disc(measurement, position, radius, return_mean=False, border='wrap', interpolate=None)[source]#
Integrate the values of a 2d measurement on a disc-shaped region.
- Parameters:
measurement (2d measurement) – The measurement to integrate
position (two floats) – Center of disc-shaped integration region
radius (float) – Radius of disc-shaped integration region
return_mean (bool) – If true return the mean, otherwise return the sum.
border (str) –
Specify how to treat integration regions that cross the image border. The valid values and their behaviours are: ‘wrap’
The measurement is extended by wrapping around to the opposite edge.
- ’raise’
Raise an error if the integration region crosses the measurement border.
interpolate (float or False) – The image will be interpolated to this sampling. Units of Angstrom.
- Returns:
Integral value
- Return type:
float