Skip to content

Outputs and interpretation

Image products

Path Product
00-data/ Your original source frames
01-mask/ Detection masks
02-id/ Feature labels used for identification/association
03-assoc/ Associated frame labels with cross-frame identities
dataframe.json Tabulated feature properties

Read a result with astropy.io.fits.getdata(...). Zero is background; polarity is encoded by label sign. Tracking assigns consistent identities across frames.

Read the table

import pandas as pd

table = pd.read_json("tracking-run/dataframe.json")
print(table.columns)
print(table.head())

Each row describes a tracked feature, with array-valued columns for its evolution. Use Frames and the input cadence to construct its time axis.

Column Meaning
label Associated signed feature identifier
X, Y Feature centre in pixels, weighted by max(abs(signal) - l_thr, 0), with X along columns and Y along rows
Area Number of pixels per feature per frame
Flux Mean signed source value over the labelled feature; retains image units
Frames Zero-based frame indices contributing to the feature
Lifetime Number of retained frames, not seconds
Vx, Vy Barycentre velocities scaled using dx / dt
ecc Equal-area-circle overlap fraction about the barycentre; not standard region eccentricity

Mean signal and magnetic flux

Flux is the mean signed signal within a feature, for example mean magnetic flux density in a calibrated magnetogram. Calculating total magnetic flux also requires pixel area, calibration, and geometrical information.

Velocities use central finite differences with clamped endpoint indices. With dx in km/pixel and dt in seconds, they are in km/s. The velocity components follow the image axes.

stdVx and stdVy store the standard deviation of each velocity sequence. The ecc value is the fraction of labelled pixels inside an equal-area circle centred on the barycentre.

Optional Doppler tabulation adds LOS_V arrays from the paired Dopplergrams, with zero map values replaced by NaN. Inspect the actual columns and retain the input map units.

Interpretation checks

Review tracks at splitting, merging, disappearance, and field-of-view boundaries. Association depends on overlap between consecutive detections. Gaps and large displacements can interrupt tracks. Check thresholds, cadence, minimum duration, alignment, and spatial sampling before interpreting velocities or oscillations.

The basic tracking example demonstrates the complete workflow.

Implementation sources

soft.py