Skip to content

Example package for packaging tutorial. Ignore this!

Notifications You must be signed in to change notification settings

bmorris3/leonard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

leonard: a simple light curve package

Store your light curves in a handy LightCurve object.

Install with:

pip install leonard

Getting started:

from leonard import LightCurve, hat11_params, get_example_data

# Download (or retrieve cached) example Kepler light curve
light_curve_paths = get_example_data()

# Get the HAT-P-11 system properties
params = hat11_params()

# Construct light curve object from the raw data
whole_lc = LightCurve.from_raw_fits(light_curve_paths, name='HAT11')

# Mask the out of transit portions of the light curve
transits_only_lc = LightCurve(**whole_lc.mask_out_of_transit(params))

# Split up the light curve into a list of transit light curves
transits = transits_only_lc.get_transit_light_curves(params)

# Select one transit to work on
transit = transits[3]

# Remove a linear baseline trend from the light curve
transit.remove_linear_baseline(params)

# Plot the light curve
transit.plot()

About

Example package for packaging tutorial. Ignore this!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages