imap_processing.idex.idex_l2a#

Perform IDEX L2a Processing.

Examples

from imap_processing.idex.idex_l1a import PacketParser
from imap_processing.idex.idex_l1b import idex_l1b
from imap_processing.idex.idex_l2a import idex_l2a

l0_file = "imap_processing/tests/idex/imap_idex_l0_sci_20231214_v001.pkts"
l1a_data = PacketParser(l0_file)
l1b_data = idex_l1b(l1a_data)
l2a_data = idex_l2a(l1b_data)
write_cdf(l2a_data)

Functions

analyze_peaks(tof_high, high_sampling_time, ...)

Fit an EMG curve to the Time of Flight data around each peak.

butter_lowpass_filter(time, signal[, cutoff])

Apply a Butterworth low-pass filter to remove high frequency noise from the signal.

calculate_area_under_emg(time_slice, param)

Calculate the area under the emg fit which is equal to the impact charge.

calculate_kappa(mass_scales, peaks_2d)

Calculate the kappa value for each mass scale.

calculate_snr(tof_high, hs_time)

Calculate the signal-to-noise ratio.

calculate_velocity_and_mass(sig_amp, t_rise, ...)

Calculate velocity and mass estimates.

chi_square(observed, expected, num_params)

Calculate the chi-square and reduced chi-square statistics.

estimate_dust_mass(low_sampling_time, ...[, ...])

Filter and fit the target or ion grid signals to get the total dust impact charge.

fit_emg(peak_time, peak_signal, event_num)

Fit an exponentially modified gaussian function to the peak signal.

fit_impact(time, time_of_impact, ...)

Fit function for the Ion Grid and two target signals.

idex_l2a(l1b_dataset, ancillary_files)

Will process IDEX l1b data to create l2a data products.

load_calibration_files(ancillary_files)

Load calibration files for IDEX L2A processing.

log_smooth_powerlaw(log_v, log_a, params)

Define a smoothly transitioning power law to fit the calibration curve to.

remove_signal_noise(time, signal, good_mask)

Remove linear, sine wave, and high frequency background noise from the input signal.

sine_fit(time, a, f, p)

Generate a sine wave with given amplitude, angular frequency, and phase.

time_to_mass(tof_high, high_sampling_time, ...)

Calculate a mass scale for each TOF array in 'TOF_high'.

Classes

BaselineNoiseTime(value)

Time range in microseconds that mark the baseline noise before a Dust impact.