CenterFit

CenterFit#

class CenterFit(becExp)#

Bases: BecAnalysis

CenterFit fit thermal cloud centers vs scanned variable.

Uses center positions from DensityFit to estimate trends versus the scanned variable with user-selected 1D fit models (linear, parabolic, sine, triangle). Produces x/y center plots with fits and a parameter table summarizing slope, acceleration, or slosh parameters. Not intended for sub-ROIs.

Associated Charts:
  • Chart(1): “Center fit” - Cloud center position vs parameter with fit curves

Constructor Summary
CenterFit(becExp)#

Construct CenterFit analyzer.

Parameters:

becExp (BecExp) – Owning experiment

Property Summary
CondensateCenterAcceleration#

Reserved: Parabolic acceleration for condensate center [pixels/VarUnit^2]

CondensateCenterMean#

Reserved: Mean condensate center position [\(x\); \(y\)] [pixels]

CondensateCenterRange#

Reserved: Condensate center position range [\(x\); \(y\)] [pixels]

CondensateCenterSlope#

Reserved: Linear slope for condensate center [pixels/VarUnit]

CondensateCenterSloshAmplitude#

Reserved: Oscillation amplitude for condensate center [pixels]

CondensateCenterSloshFrequency#

Reserved: Oscillation frequency for condensate center [Hz or 1/VarUnit]

CondensateCenterSloshOffset#

Reserved: Center offset for condensate center [pixels]

FitDataCondensate#

Reserved for future condensate center trajectory fits

FitDataThermal#

Two fit objects (x,y) applied to thermal cloud center trajectories

FitMethod = "LinearFit1D"#

1D fit model: "LinearFit1D"|\"ParabolicFit1D\"|"SineFit1D"|"TriangleFit1D"

IsSaveCenter logical = false#

Flag to save mean center position to CloudCenterData.mat for reuse

MinimumFitNumber = 1#

Minimum number of runs required to perform the selected fit model

ThermalCloudCenterAcceleration#

Parabolic fit acceleration [pixels/VarUnit^2 or m/s^2 for time scans]

ThermalCloudCenterMean#

Mean thermal cloud center position [\(x\); \(y\)] [pixels]

ThermalCloudCenterRange#

Thermal cloud center position range [\(x\); \(y\)] [pixels]

ThermalCloudCenterSlope#

Linear fit slope for center vs parameter [pixels/VarUnit]

ThermalCloudCenterSloshAmplitude#

Sine/Triangle fit oscillation amplitude [pixels]

ThermalCloudCenterSloshFrequency#

Sine/Triangle fit frequency [Hz for time scans, 1/VarUnit otherwise]

ThermalCloudCenterSloshOffset#

Sine/Triangle fit center offset [pixels]

Method Summary
initialize()#

Initialize plots, fit objects, and parameter table.

Sets up dual-axis plots for x/y center trajectories, initializes fit objects based on FitMethod, and creates parameter table. Requires DensityFit in analysis pipeline.

refresh()#

Recompute and redraw all center-fit outputs.

save()#

Save figure and optionally persist center reference for reuse.

When IsSaveCenter is true, writes/updates CloudCenterData.mat with mean center for this trial.

updateData(~)#

Compute fit parameters for cloud centers vs scanned variable.

For each axis (x,y), prepares FitDataThermal and extracts slope/acceleration/slosh parameters depending on FitMethod when sufficient runs exist.

Parameters:

~ (double) – Unused run index placeholder (processes all runs)

updateFigure(~)#

Update center vs scan plots and parameter table.

Parameters:

~ (double) – Unused run index placeholder