exa.core.util.phase_helper.add_phase_amplitude#
- add_phase_amplitude(data_array, target_dataset, phase_coord, prefix='', add_fit=False)#
Adds the phase and amplitude calculated by
get_phase_array()to the target dataset.- Parameters:
data_array (DataArray) – array containing the data, one dimension of which is phase
target_dataset (Dataset) – dataset to add the phase and amplitude arrays to
phase_coord (str) – name of the phase coordinate in the data array
prefix (str) – name to attach to the phase and amplitude arrays
add_fit (bool) – whether to also add the fit to the dataset
- Returns:
nothing, modifies the target_dataset