Check out the Hyperspy Workshop May 13-17, 2024 Online

filter_vectors_edge_ragged#

pyxem.utils.vectors.filter_vectors_edge_ragged(z, x_threshold, y_threshold)[source]#

Filters the diffraction vectors to accept only those not within a user specified proximity to detector edge.

Parameters:
  • x_threshold (float) – Maximum x-coordinate in calibrated units.

  • y_threshold (float) – Maximum y-coordinate in calibrated units.

Returns:

filtered_vectors – Diffraction vectors within allowed tolerances.

Return type:

numpy.ndarray