class FieldSweepAnalysis(dataset)

Analysis and calculation of FieldSweep Experiment.

Parameters:
datasetxarray.Dataarray

_description_

data
find_max()

Calculates the maximum field

Returns:
float

Max field

calc_gyro(LO=None)

Calculates the gyromagnetic ratio for a given frequency

Parameters:
det_frqfloat

The detection frequency for the field sweep.

Returns:
float

The gyromagnetic ratio in G/GHz.

calc_noise_level(SNR_target=30)
smooth(*args, **kwargs)

Generates a smoothed version of the data using a 1D smoothing spline.

Returns:
np.ndarray

The smoothed data.

fit(spintype='N', **kwargs)
plot(norm=True, axis='field', axs=None, fig=None)

Generate a field sweep plot

Parameters:
normbool, optional

Nomarlisation of the plot to a maximum of 1, by default True

axisstr, optional

plot field sweep on either the “field” axis or “freq” axis

Returns:
Matplotlib.Figure

matplotlib figure