Skip to main content

A Python library to mitigate spatially-correlated systematic noise in Kepler light curves

Project description

spatial-detrend

License: GPL v3

Overview

Developed by Jamila Taaki (UIUC).

spatial-detrend is a Python library for detrending collections of lightcurves, using spatial (on the sensor) correlations of systematic/instrument noise. The spatial detrending method is described publication 'Robust Detrending of Spatially Correlated Systematics in Kepler Light Curves Using Low-Rank Methods'. The detrending method is built around a low-rank linear model that's conditioned on a total-variation spatial constraint. This constraint fundamentally models spatial systematic structure across the sensor, offering a robust, data-driven solution for systematics mitigation.

This library is currently in an experimental stage and has been tailored for specific use-cases as detailed in our accompanying Astrophysical Journal publication. It may not be highly generalizable across all kinds of datasets or astrophysical applications.

This library is compatible with Python 3.6 and later versions.

Example

Installation

You can install spatial-detrend using pip:

pip3 install spatial-detrend

Dependencies

Scipy, Numpy, Sklearn, Astropy (if using external data)

Use

If wish to start from scratch, download a collection of lightcurves from a single quarter

download data preprocess data generate weight matrices/difference operators call solver

Input data

Quarter 6 prepped data included for your convenience. For more prepped data see github repo!

Parameters

Worked examples

See examples folder for a demo.

Organization

spatial-detrend/
├── examples/
│   └── detrend_example.py
├── README.md
├── setup.py
└── spatial_detrend/
    ├── data/
    │   ├── cal_flux_10.p
    │   ......
    │   └── sort_6.p
    ├── methods/
    │   ├── simulate/
    │   │   └── sim_signal.py
    │   ├── solve/
    │   │   ├── solver.py
    │   │   └── solver_weights.py
    │   └── util.py
    └── preproc/
        ├── grid_data.py
        ├── kepler_util.py
        └── preprocess_data.py

Citation

If you find this package useful, please cite our Astrophysical Journal paper:

License

[spatial-detrend] is released under the GNU General Public License v3.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spatial-detrend-0.1.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spatial_detrend-0.1.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file spatial-detrend-0.1.0.tar.gz.

File metadata

  • Download URL: spatial-detrend-0.1.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.60.0 importlib-metadata/4.0.1 keyring/23.2.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9

File hashes

Hashes for spatial-detrend-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ff41b4499ff733ff12faa555fe58469baeb3531f56c3c1f3946d1e39c867dbd5
MD5 fc19f90fa71ef1e73e05a16b0d3112ed
BLAKE2b-256 6694fe763f7c582e9255e92b9eb5493d65679a2340a59935fe960d960073fd1c

See more details on using hashes here.

File details

Details for the file spatial_detrend-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: spatial_detrend-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.60.0 importlib-metadata/4.0.1 keyring/23.2.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9

File hashes

Hashes for spatial_detrend-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac6d401cecc9ef6281d9a383b59d29fb07b604e1283899a5210f58b6696af45f
MD5 274f7e60dd20aae76a4faddd604fdcaa
BLAKE2b-256 3067b30551e398813478e63abbe0de541481688a47c154a8c38ead992f6fac17

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page