You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While testing the grazing template in TLS, an issue appears with a fit that has a clear underestimation of the transit duration.
It is not clear if this is due to a bug in the code.
import numpy as np
import transitleastsquares
from transitleastsquares import transitleastsquares,cleaned_array,catalog_info,transit_mask
from matplotlib.backends.backend_pdf import PdfPages
import matplotlib.pyplot as plt
from astroquery.mast import Catalogs
While testing the grazing template in TLS, an issue appears with a fit that has a clear underestimation of the transit duration.
It is not clear if this is due to a bug in the code.
import numpy as np
import transitleastsquares
from transitleastsquares import transitleastsquares,cleaned_array,catalog_info,transit_mask
from matplotlib.backends.backend_pdf import PdfPages
import matplotlib.pyplot as plt
from astroquery.mast import Catalogs
def TLS(tic,Tmag,ra,dec,time,flux,detrended_flux,flux_err,Pmin,Pmax,duration_grid_step,ntransits_min):
Applies the TLS algorithm to the detrended data to search for transits
results = model.power(u=ab,period_min=Pmin,period_max=Pmax,duration_grid_step=duration_grid_step,M_star=mass_param, \
R_star=radius_param,M_star_max=1.5,transit_template='grazing')
tic=236887394
Pmin=0.5
Pmax=100.0
ntransits_min=2
duration_grid_step=1.1 # default=1.1
ticinfo = Catalogs.query_criteria(catalog="Tic", ID=tic) # stellar data from TIC
Vmag=ticinfo['Vmag'][0]
Tmag=ticinfo['Tmag'][0]
ra=ticinfo[0]['ra']
dec=ticinfo[0]['dec']
fname='detrended_lightcurve_'+str(tic)+'.dat'
data=np.genfromtxt(fname,dtype='float',delimiter=" ") # detrended flux time series
time=data[:,0]
flux=data[:,1]
detrended_flux=data[:,2]
nobs=len(time)
flux_err=np.ones((nobs))
results=TLS(tic,Tmag,ra,dec,time,flux,detrended_flux,flux_err,Pmin,Pmax,duration_grid_step,ntransits_min)
print(results)
detrended_lightcurve_236887394.txt
detection_TLS_236887394.pdf
The text was updated successfully, but these errors were encountered: