Skip to content

Code for localizing variable star signatures in TESS Photometry

License

Notifications You must be signed in to change notification settings

Higgins00/TESS-Localize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

148 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TESS-Localize

Code for localizing variable star signatures in TESS Photometry.

The primary use of this package is to identify the location on the TPF where sources of variablity found in the aperture originate. The user only needs to provide a list of frequencies found in the aperture that belong to the same source and the number of principal components needed to be removed from the light curve to ensure it is free of systematic trends. A more detailed usage example can be found in the examples folder.

See the paper describing the methodology behind this software on ADS. If you use this code in published work, please cite the paper as "Higgins, M. E. & Bell, K. J. 2022, AAS Journals (submitted); arXiv:2204.06020".

Installation

To install use

pip install tess_localize

Or clone this repository and run

cd TESS_Localize
pip install .

Usage

import TESS_Localize as tl
import lightkurve as lk
import astropy.units as u

frequency_list = [9.51112996, 19.02225993, 28.53338989, 38.04451986, 47.55564982, 57.06677979, 66.57790975, 76.08903972]

search_result = lk.search_targetpixelfile('TIC117070953')
tpf = search_result.download(quality_bitmask='default')

tutorial_example = tl.Localize(targetpixelfile=tpf, gaia=True, magnitude_limit=18,
                                  frequencies=frequency_list, frequnit=u.uHz, principal_components = 3)

Useful Functions:

tutorial_example.pca()

Result: Plots of the individual prinicpal components and plots of the lightcurve before and after removing them.

pca

tutorial_example.info()

Result: Gaia sources filtered by their distance from the fitted location of the source, and the fit statistics.

result1

tutorial_example.plot(frequencylist_index=2,method='snr')

Result: An image of the signal to noise heatmap created from the amplitude of the most significant frequency at every pixel. The white dots are Gaia sources, and the black 'X' is the best fit location of the source.

Plot

About

Code for localizing variable star signatures in TESS Photometry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages