tsadar.utils.process.lineouts#
Functions
|
Return electron and ion lineout pixel indices for the configured lineouts. |
|
Extracts and processes lineouts from electron and ion spectrometer data, applies background subtraction, normalization, and computes amplitude metrics for further analysis. Parameters ---------- elecData : np.ndarray 2D array of electron spectrometer data. ionData : np.ndarray 2D array of ion spectrometer data. BGele : np.ndarray Background electron data for subtraction. BGion : np.ndarray Background ion data for subtraction. axisxE : np.ndarray 1D array representing the spatial axis for electron data. axisxI : np.ndarray 1D array representing the spatial axis for ion data. axisyE : np.ndarray 1D array representing the spectral axis for electron data. axisyI : np.ndarray 1D array representing the spectral axis for ion data. shift_zero : float Value to shift the zero position for lineout extraction. IAWtime : float Ion acoustic wave time, used for aligning ion lineouts. xlab : str Label for the x-axis (not used in processing). sa : dict Dictionary containing spectral analysis parameters and weights. config : dict Configuration dictionary specifying extraction parameters, background, and processing options. Returns ------- all_data : collections.defaultdict Dictionary containing processed lineout data and amplitudes: - "noiseE": Background for electron data. - "noiseI": Background for ion data. - "e_data": Normalized electron lineout data (or zeros if not loaded). - "i_data": Normalized ion lineout data (or zeros if not loaded). - "e_amps": Amplitudes of electron lineouts (or zeros if not loaded). - "i_amps": Amplitudes of ion lineouts (or zeros if not loaded). Raises ------ NotImplementedError If the lineout or background type specified in config is not supported. |
- tsadar.utils.process.lineouts.compute_lineout_pixel_indices(config, axisxE, axisxI, shift_zero, IAWtime, type_name='lineouts')Source#
Return electron and ion lineout pixel indices for the configured lineouts.
- tsadar.utils.process.lineouts.get_lineouts(elecData, ionData, BGele, BGion, axisxE, axisxI, axisyE, axisyI, shift_zero, IAWtime, xlab, sa, config) DictSource#
Extracts and processes lineouts from electron and ion spectrometer data, applies background subtraction, normalization, and computes amplitude metrics for further analysis. Parameters ———- elecData : np.ndarray
2D array of electron spectrometer data.
- ionDatanp.ndarray
2D array of ion spectrometer data.
- BGelenp.ndarray
Background electron data for subtraction.
- BGionnp.ndarray
Background ion data for subtraction.
- axisxEnp.ndarray
1D array representing the spatial axis for electron data.
- axisxInp.ndarray
1D array representing the spatial axis for ion data.
- axisyEnp.ndarray
1D array representing the spectral axis for electron data.
- axisyInp.ndarray
1D array representing the spectral axis for ion data.
- shift_zerofloat
Value to shift the zero position for lineout extraction.
- IAWtimefloat
Ion acoustic wave time, used for aligning ion lineouts.
- xlabstr
Label for the x-axis (not used in processing).
- sadict
Dictionary containing spectral analysis parameters and weights.
- configdict
Configuration dictionary specifying extraction parameters, background, and processing options.
Returns#
- all_datacollections.defaultdict
- Dictionary containing processed lineout data and amplitudes:
“noiseE”: Background for electron data.
“noiseI”: Background for ion data.
“e_data”: Normalized electron lineout data (or zeros if not loaded).
“i_data”: Normalized ion lineout data (or zeros if not loaded).
“e_amps”: Amplitudes of electron lineouts (or zeros if not loaded).
“i_amps”: Amplitudes of ion lineouts (or zeros if not loaded).
Raises#
- NotImplementedError
If the lineout or background type specified in config is not supported.