Begin with the actual product and columns
The input is the SPOC Sector 1 light-curve product for TIC 25155310, WASP-126: tess2018206045859-s0001-0000000025155310-0120-s_lc.fits. Its data release is 42 and processing version spoc-5.0.10-20200904. The original file has 20076 rows. Its exact source checksum, original header blocks and deterministic extraction recipe accompany the small observed input.
Five windows are centered on BTJD 1327.52 plus successive periods of 3.2888 days, each extending 0.28 days on either side. These windows were specified in time; their selection does not clip low or high flux. The working period agrees with the discovery paper’s Table 6 initialization. The actual fit will refine it.
The CSV retains 2017 original rows, their source row and window, cadence number, quality, SAP and PDCSAP flux/errors, removed background/errors and centroid/position information. Blank nonfinite values remain blank. The accepted set has 2007 rows after requiring zero quality, finite time and PDC flux/error, and positive error. All ten rejected rows remain in the original CSV.
Reading: TESS Science Data Products Description, Revision F · Maxted et al. 2016, Five WASP-South Planets, arXiv v1
Check time, background and the correction already applied
The TIME column is in days, Barycentric Dynamical Time, with reference Julian date 2457000 and a midpoint time stamp. The listed TIMECORR has already been applied to TIME. Adding it again would shift the event instead of improving the timestamp.
Flux is in electrons per second. SAP_BKG records the background that the pipeline removed; it is not another sky subtraction. PDCSAP also corrects captured aperture fraction and known-source crowding. The original CROWDSAP is 0.97252083 and FLFRCSAP 0.88525611. Preserve them as provenance; do not repeat those corrections on PDC flux.
The cadence span is 120 seconds. Single-frame accumulation, readout and onboard rejection make the live time different; the original header records these separately. The fit approximates the measurement with a uniform 120-second window. Frame-level rejection details remain unresolved within that approximation.
Reading: TESS Science Data Products Description, Revision F · MAST TESS Data Product Overview
Run the package in an ordinary folder
Save the linked scientific files together. The observed input and frozen outputs are ordinary public downloads. An optional original-FITS refresh additionally needs Astropy and checks the original file hash before extracting the same windows. The ordinary fit uses the retained CSV, not Astropy or a network service.
The first command fits observations. The second independently generates analytic synthetic references and dense exposure averages. Those are distinct calculations with different labels. Detached runs on the recorded host reproduce the saved JSON. Across numerical libraries, compare the values with stated tolerances and inspect any changes in the optimizer path.
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements.txt
python3 -W error replay-transits.py --data . --out transit-fit-rerun.json
python3 -W error reference-transits.py --input synthetic-input.json --out analytic-reference-rerun.json
Reading: batman author tutorial and pinned package 2.5.3 · TESS Science Data Products Description, Revision F
Fit the transit and a baseline for each window
Normalize accepted PDC values and their errors by one saved median flux. Fit radius ratio, impact parameter, scaled orbital axis, epoch and period. The default brightness coefficients are fixed to 0.45 and 0.20 as an explicit teaching assumption. Additional contaminant light is set to zero after the pipeline correction.
At each trial, compute the circular transit, average it over each two-minute window, and solve a separate baseline intercept and linear trend for every observed window. These nuisance coefficients are solved by weighted linear least squares within the nonlinear fit. They help describe local baseline drift; they do not guarantee removal of stellar or instrumental structure.
The objective uses the supplied pointwise errors. Four starting paths check for alternative minima. The resulting conditional best fit is approximately , , , with and . Its circularly inferred density is about . The fixed stellar-brightness, circular-orbit and dilution assumptions accompany these results.
Reading: Mandel & Agol 2002, Analytic Lightcurves, arXiv v1 · TESS Science Data Products Description, Revision F
Read the path profile before quoting an error
The saved profile fixes 25 impact parameters from zero to 1.2, refitting the other parameters each time. The best point reaches the nonnegative boundary. At fixed impacts 0.20, 0.35 and 0.50, the objective rises by about 0.86, 3.40 and 10.46. The curve in the figure is a conditional objective profile, not a posterior probability density.
A naive high-impact start can produce no overlap, leaving the optimizer on a flat light curve with no useful gradient. The script retains that failed-start objective and also starts from a physically overlapping radius. This matters in the high-impact tail: an optimization success flag by itself does not establish that the desired transit minimum was explored.
The residual RMS is about 0.00131 in normalized flux. Adjacent residual correlation is near minus 0.0024; 124 complete fifteen-cadence blocks have scatter about 1.04 times the white-noise scaling. Those diagnostics describe this sample; independent residuals and calibrated parameter confidence levels require further testing.
Reading: Dawson & Johnson 2012, Photoeccentric Effect I, v3 · TESS Science Data Products Description, Revision F
Change the assumptions and refine the exposure
A uniform stellar disk gives approximately and for these same observations. Adding an assumed extra companion-to-host light ratio of 0.3 after PDC gives . These are sensitivity fits with changed source assumptions. They are not evidence that either assumption is true.
The two-minute window is well resolved here: at fixed best parameters, nine-node and sixty-five-node averages differ by at most about seven hundredths of a millionth in flux. Refitting with seventeen nodes changes the reported radius ratio very little. The instantaneous fit changes the duration only slightly in this two-minute example; a much longer exposure can have a larger effect, as the synthetic long-exposure preset shows.
Keep the full samples, residuals, impact profile, initialization outcomes and sensitivity fits when modifying the experiment. A useful next step would constrain the star’s band-dependent limb brightness or residual contaminating light independently, then revisit the conditional parameter range.
Reading: Kipping 2010, Finite Integration Time, arXiv v1 · MAST TESS Data Product Overview