Skip to main content

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.

Metadata

Release files for spatial-detrend 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spatial-detrend 0.1.0
File Size Uploaded Provenance Actions
spatial-detrend-0.1.0.tar.gz 12.0 kB Without provenance Details for spatial-detrend-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spatial-detrend 0.1.0
File Interpreter ABI Platform Actions
spatial_detrend-0.1.0-py3-none-any.whl Python 3 none any Details for spatial_detrend-0.1.0-py3-none-any.whl

Total release size: 27.2 kB

Release files / spatial-detrend-0.1.0.tar.gz

Download URL spatial-detrend-0.1.0.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ff41b4499ff733ff12faa555fe58469baeb3531f56c3c1f3946d1e39c867dbd5
BLAKE2b-256 checksum
How to use checksums
6694fe763f7c582e9255e92b9eb5493d65679a2340a59935fe960d960073fd1c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / spatial_detrend-0.1.0-py3-none-any.whl

Download URL spatial_detrend-0.1.0-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac6d401cecc9ef6281d9a383b59d29fb07b604e1283899a5210f58b6696af45f
BLAKE2b-256 checksum
How to use checksums
3067b30551e398813478e63abbe0de541481688a47c154a8c38ead992f6fac17
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for spatial-detrend 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page