everest
2.0.9
  • Overview
  • Using Everest
  • The Catalog
  • The Code
    • Github Project Page
    • User Interface
    • Code Engine
      • basecamp.py - The Everest base class
      • config.py - Misc settings
      • detrender.py - De-trending models
      • dvs.py - Data Validation Summary
      • fits.py - FITS conversion
      • gp.py - Gaussian Processes
      • inject.py - Transit injection
      • masksolve.py - Solve a masked linear problem quickly
      • mathutils.py - Math utils
      • pool.py - Multiprocessing
      • standalone.py - Standalone de-trending
      • transit.py - Transit models
      • utils.py - General utils
    • Missions
  • The Papers
  • Old Versions
everest
  • everest »
  • The Code»
  • Code Engine»
  • standalone.py - Standalone de-trending

standalone.py - Standalone de-trending¶

Provides the DetrendFITS() function for manual de-trending of user-provided K2 FITS files.

class everest.standalone.ApertureSelector(time, images, title='Aperture')¶
PadWithZeros(vector, pad_width, iaxis, kwargs)¶
bkgstd¶
colbkg¶
flux¶
lcbkg¶
lcstd¶
mouse_click(event)¶
mouse_drag(event)¶
replot(val)¶
update()¶
update_bkg()¶
update_lc()¶
update_lcbkg()¶
everest.standalone.DetrendFITS(fitsfile, raw=False, season=None, clobber=False, **kwargs)¶

De-trend a K2 FITS file using everest.detrender.rPLD.

Parameters:
  • fitsfile (str) – The full path to the FITS file
  • aperture (ndarray) – A 2D integer array corresponding to the desired photometric aperture (1 = in aperture, 0 = outside aperture). Default is to interactively select an aperture.
  • kwargs – Any kwargs accepted by everest.detrender.rPLD.
Returns:

An everest.Everest instance.

everest.standalone.GetData(fitsfile, EPIC, campaign, clobber=False, saturation_tolerance=-0.1, bad_bits=[1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17], get_hires=True, get_nearby=True, aperture=None, **kwargs)¶

Returns a DataContainer instance with the raw data for the target.

Parameters:
  • fitsfile (str) – The full raw target pixel file path
  • clobber (bool) – Overwrite existing files? Default False
  • saturation_tolerance (float) – Target is considered saturated if flux is within this fraction of the pixel well depth. Default -0.1
  • bad_bits (array_like) – Flagged :py:obj`QUALITY` bits to consider outliers when computing the model. Default [1,2,3,4,5,6,7,8,9,11,12,13,14,16,17]
  • get_hires (bool) – Download a high resolution image of the target? Default True
  • get_nearby (bool) – Retrieve location of nearby sources? Default True
Next Previous

© Copyright 2017, Rodrigo Luger. Last updated on Dec 08, 2017.

Built with Sphinx using a theme provided by Read the Docs.