Skip to main content

WATSON (Visual Vetting and Analysis of Transits from Space ObservatioNs) is a lightweight software package that enables a comfortable visual vetting of a transiting signal candidate from Kepler, K2 and TESS missions.

Any transiting candidate signal found in a space-based mission could have been potentially generated by different astrophysical sources or even by instrumental artifacts induced into a target's light curve. To rule-out these scenarios, the Science Processing Operation Center (SPOC) of the NASA implemented the Data Validation (DV) Reports, which are showing different metrics to qualify or discard an analyzed candidate. These scenarios are mainly

  • Transit shape model fit
  • Odd-even transits checks,
  • Weak secondary events
  • Centroids shifts
  • Optical ghost effects
  • Transit source offsets
  • Rolling band contamination histograms

WATSON is also implementing similar but more simplified checks for all of those scenarios (SPOC fits transits models and we just compute the SNR of the possible candidate signal) except the rolling band contamination. In addition, we included a new check comparing the transit SNRs in the different available cadences and also all the single-transit plots computed with the official pipeline aperture and a smaller one. With all of these data, we compute metrics that might alert the scientist about problematic signals not complying with any of the thresholds.

For more information check the docs: https://dearwatson.readthedocs.io

System dependencies

WATSON's Python dependencies are installed with pip, but PDF processing also requires the Poppler command-line tools. On Ubuntu/Debian, install the system dependencies before installing WATSON:

sudo apt-get update
sudo apt-get install -y build-essential gcc gfortran poppler-utils libssl-dev

pdf2image uses Poppler's pdfinfo and pdftoppm commands to read the official mission Data Validation Report PDFs and include their pages in the generated WATSON reports. Poppler is therefore an operating-system dependency, not a Python package dependency.

Code example

Let's say that you found a new candidate in the TOI-175 with a period of 1.04 days (this is a known false positive from the TESS mission). You could run WATSON easily with the next code chunk:

period = 1.0491800670761966
epoch = 1354.7155898963902
duration_mins = 54
depth_ppts = 0.158
sectors = 'all'
rp_rstar = 0.01205
a_rstar = 9 
ra = 124.531756290083
dec = -68.3129998725044
# We need to mask the previous candidates to ensure they don't add noise to the analysis
known_transits_mask = [{'P': 3.6906682312153136, 'T0': 1356.20298505518, 'D': 56}, 
                 {'P': 2.2531273092040185, 'T0': 1354.9020729263193, 'D': 45}, 
                 {'P': 7.450690528437917, 'T0': 1355.2917484673462, 'D': 69}]
your_execution_dir = os.getcwd() 
object_dir = your_execution_dir + '/results'
if not os.path.exists(object_dir):
    os.mkdir(object_dir)
Watson(object_dir).vetting("TIC 307210830", period, epoch, duration_mins, depth_ppts, sectors, rp_rstar,
                                       a_rstar=a_rstar, cadence=120,
                                       cpus=os.cpu_count() // 2,
                                       transits_list=None, ra=ra,
                                       dec=dec, clean=True, transits_mask=known_transits_mask)

This same example is done in one of our tutorials. Go and check it out!: TOI-175 tutorial

Metadata

Release files for dearwatson 2.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dearwatson 2.1.2
File Size Uploaded Provenance Actions
dearwatson-2.1.2.tar.gz 1.3 MB Without provenance Details for dearwatson-2.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dearwatson 2.1.2
File Interpreter ABI Platform Actions
dearwatson-2.1.2-py3-none-any.whl Python 3 none any Details for dearwatson-2.1.2-py3-none-any.whl

Total release size: 2.7 MB

Release files / dearwatson-2.1.2.tar.gz

Download URL dearwatson-2.1.2.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
3675e6d1b46ea79fdafdccf2c3d1555bfe57c4925ef3c5722b1e59166d74b8b4
BLAKE2b-256 checksum
How to use checksums
57e648180a1851f421661a7935d9586e27b8bdfead93b90677b78f21822d5e96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / dearwatson-2.1.2-py3-none-any.whl

Download URL dearwatson-2.1.2-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e12f8a5ec2e006ad5d2ac7ffab96f0dab1fcf5a3d61720c5da0cc72f67541c21
BLAKE2b-256 checksum
How to use checksums
a2f6deb84c833f31df5a89f6f25a752fdbc1ece0d2e1de344b76306d3c7116bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for dearwatson 2.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page