FITS sequence tracking¶
Prepare a dedicated working directory¶
The pipeline expects one two-dimensional image per .fits file under 00-data/. Use zero-padded names because files are sorted lexicographically. Co-register frames beforehand and supply a consistent cadence and pixel scale.
Output folders are replaced on each run
track_all clears files in 01-mask/, 02-id/, and 03-assoc/, overwrites dataframe.json, and removes non-symlink temporary directories named temp0 through temp9. Use a dedicated run directory and retain results you need before rerunning.
Run the pipeline¶
Run SoFT.track_all with the data path and parameters for your observations. The basic tracking example provides a complete script.
from WaLSAlib import SoFT
SoFT.track_all(
datapath, cores, l_thr, min_size, dx, dt,
sign, separation, verbose=False, doppler=False,
)
datapath is the path to the working directory shown above. A trailing path separator is required, for example "tracking-run/" on macOS and Linux. cores sets the number of worker processes, sign selects "pos", "neg", or "both", and separation controls whether touching features can be divided. Run file-based tracking inside a script protected by if __name__ == "__main__": on platforms that spawn worker processes.
l_thr is in the image’s units, min_size is a pixel count, dx is km/pixel, and dt is seconds/frame when velocities are required in km/s. Choose these values from the observations and your feature definition.
Stages and products¶
The pipeline cleans output folders, detects and filters features, assigns unique IDs, associates frames, and writes property sequences. It returns None; results are files. See outputs and their physical meaning.
Tabulation retains tracks lasting at least four frames by default.
Add Doppler data¶
Set doppler=True only when matching Dopplergrams are available in 00b-doppler/*.fits. They must correspond to the source sequence in number, order, shape, and registration. The code uses sorted filenames, so verify that pairing explicitly. Doppler values retain the numerical units of the supplied maps.
Lower-level access¶
SoFT.associate(datapath, verbose=False, number_of_workers=None) associates existing intermediate ID products. Further workflow routines are available through SoFT.core.
For a complete, self-contained script with generated FITS data, use the tracking example.