Tutorial 12)
Transit search

Now, let's take a step back.

Imagine your team gave you some light curves, and YOU are the one who has to search them for transits in the first place! Cool!

But what if the data looks... horrible? Be it a spotted star or instrumental systematics, fear not! We got your back!

For successful transit searches, even in the presence of systematics, allesfitter provides a convenient wrapper around wotan and tls.

All Tutorial 11 codes and data are available on GitHub. Just click one of the buttons below.

##############################################

# The simplest way

##############################################

from allesfitter import read_csv

from allesfitter.detection.transit_search import tls_search


time, flux, flux_err = read_csv('Leonardo.csv')

tls_search(time, flux, flux_err)



##############################################

# Fine-tuning for the best performance

##############################################

from allesfitter import read_csv

from allesfitter.detection.transit_search import tls_search

from allesfitter.detection.transit_search import get_tls_kwargs_by_tic


time, flux, flux_err = read_csv('Leonardo.csv')

flatten = {'method':'biweight', 'window_length':1}

slide_clip = {'window_length':1, 'high':3, 'low':20}

tls_kwargs = get_tls_kwargs_by_tic(259377017)

tls_search(time, flux, flux_err, wotan_kwargs={'flatten':flatten, 'slide_clip':slide_clip}, tls_kwargs=tls_kwargs)



##############################################

# To see all the possibilities, please check out the Python Script and Jupyter Notebook tutorials!

##############################################