11 November 2020

SPACEKIT Analyzer: plotting light curves

by Ru Kein

spacekit.Analyzer()

timeseries flux signal analysis

atomic_vector_plotter

Plots scatter and line plots of time series signal values.

from astropy.timeseries import TimeSeries
fits_file = 'ktwo246384368-c12_llc.fits'
ts = TimeSeries.read(fits_file, format='kepler.fits')
flux = ts['sap_flux']

Now that we have the flux signal values we can plot them as timeseries scatter and line plots.

from spacekit import analyzer
analyzer = Analyzer()
analyzer.atomic_vector_plotter(flux)

atomic vector plotter scatterplot
atomic vector plotter lineplot

planet_hunter

calculates period and plots folded light curve from single or multiple .fits files

signal = 'ktwo246384368-c12_llc.fits'
analyzer.planet_hunter(signal, fmt='kepler.fits')
k2 folded light curve

NEXT

spacekit.analyzer (part 2): frequency spectrographs

                       
           /\    _       _                           _                      *  
/\_/\_____/  \__| |_____| |_________________________| |___________________*___
[===]    / /\ \ | |  _  |  _  | _  \/ __/ -__|  \| \_  _/ _  \ \_/ | * _/| | |
 \./    /_/  \_\|_|  ___|_| |_|__/\_\ \ \____|_|\__| \__/__/\_\___/|_|\_\|_|_|
                  | /             |___/        
                  |/   
Your Browser Doesn't Support Canvas, Please Download Chrome or compatible browser. tags: astrophysics - spacekit