arpes.preparation.axis.normalize_dim#
- arpes.preparation.axis.normalize_dim(arr, dim_or_dims, *, keep_id=False)[source]#
Normalizes the intensity.
all values along axes other than dim_or_dims have the same value.
The function normalizes so that the average value of cells in the output is 1.
- Parameters:
arr – Input data which should be normalized
dim_or_dims – The set of dimensions which should be normalized
keep_id – Whether to reset the data’s id after normalization
- Returns:
The normalized data.