Giter Site home page Giter Site logo

jorgemarpa / tess-backdrop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ssdatalab/tess-backdrop

0.0 1.0 0.0 602.12 MB

Tool to correct the background scattered light in TESS FFIs

License: MIT License

Makefile 0.98% Python 98.89% Jupyter Notebook 0.13%

tess-backdrop's Introduction

TESS Backdrop

Test status pypi status

Check out the documentation.

tess-backdrop is a tool to 1) create a background correction for TESS images 2) apply a background correction to any block of TESS data.

What does tess-backdrop make?

tess-backdrop makes sets of fits files for every TESS sector, camera and CCD. These fits files are quite small (10s of Mb) and contain all the information needed to create a scattered light background correction for any pixel, at any time. Below is an example of the sorts of corrections tess_backdrop makes.

Each of the background estimates is fast to evaluate for any given TESS FFI dataset. This means you can apply the scattered light correction really quickly, without having to download anything else from MAST.

How do you install tess-backdrop?

You can install with pip using

pip install tess-backdrop

How do you use tess-backdrop?

There are tutorials available on our documentation pages. Here are some really simple examples. You can obtain a TESSCut TPF using lightkurve

import lightkurve as lk
tpf = lk.search_tesscut('TIC 441075486', sector=2).download(cutout_size=(20, 21), quality_bitmask=None)

You can then correct the background in the TPF using

import tess_backdrop as tbd

b = tbd.BackDrop()
b.load(sector=2, camera=1, ccd=3)
corrected_tpf = b.correct_tpf(tpf)

Or you could create a corrected light curve using

r = tbd.TESSCutCorrector(tpf, aperture_mask=tpf.create_threshold_mask())
corrected_lc = r.correct(npca_components=10, spline_timescale=1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.