pyepr.fieldsweep_analysis.FieldSweepAnalysis

class pyepr.fieldsweep_analysis.FieldSweepAnalysis(dataset)

Analysis and calculation of FieldSweep Experiment.

Parameters:
datasetxarray.Dataarray

_description_

Parameters:

dataset (xarray.DataArray)

data
find_max()

Calculates the maximum field

Returns:
float

Max field

Return type:

float

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.

Parameters:

LO (float)

Return type:

float

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

Parameters:
  • norm (bool)

  • axis (str)

Return type:

matplotlib.figure.Figure