get_magnitudes#
- DiffractionVectors.get_magnitudes(columns=None, *args, **kwargs)[source]#
Calculate the magnitude of diffraction vectors.
- Parameters:
columns (list, optional) – The columns of the diffraction vectors to be used to calculate the magnitude. If not given, the first two columns will be used.
*args – Arguments to be passed to map().
**kwargs – Keyword arguments to map().
- Returns:
magnitudes – A signal with navigation dimensions as the original diffraction vectors containg an array of gvector magnitudes at each navigation position.
- Return type:
BaseSignal