Skip to content

SoFT — Solar Feature Tracking

SoFT detects signed features using thresholding and watershed segmentation, associates features by mutual overlap, and tabulates their evolution across a sequence.

from WaLSAlib import SoFT

The module provides detection, identification, associate, and track_all; the full core is accessible through SoFT.core. Optional scientific helpers are in SoFT.extras.

Detection and tracking

For one image, call SoFT.detection(image, l_thr=..., sign="both"), then SoFT.identification(labels, min_size=...) to remove small features. sign accepts "pos", "neg", or "both". A label is an integer identifying the pixels belonging to one feature. Positive and negative labels encode feature polarity; zero marks the background.

With separation=False, the algorithm uses one seed per connected component. With True, adaptive seed spacing can divide touching structures. Compare both modes against your feature definition and noise level.

Tracking is a separate file-based workflow using a directory of FITS frames. It associates identities through mutual pixel-overlap checks; this requires aligned images and enough overlap between consecutive detections.

Read FITS sequence tracking and outputs, or follow the basic tracking example.

Scientific use

Choose thresholds using calibrated signal/noise and an explicit feature definition. Minimum size, splitting, merging, cadence, and alignment affect lifetimes and derived motions.

The detection, overlap-based association, and tabulation method is described by Berretti et al. (2025). Cite this method and WaLSAlib when using SoFT in research.

Implementation sources

soft.py