Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

chandralc

chandralc: A Python Package for CXO Lightcurve Analysis

Code style: black

The chandralc Python package was developed to analyze Chandra X-ray Observatory lightcurves in a matter of seconds. With algorithms and programs to automatically extract, download, plot, and analyze data, it is the perfect tool to study CXO lightcurves efficiently and accurately.

chandralc is the perfect tool for citizen science. If you're interested in detecting extragalactic planets, feel free to shoot me an email at sam@qprogramming.net!

To see chandralc in action, check out the demo (currently in development).

Features:

Lightcurve Extraction

Extract lightcurves from one or more ObsIDs automatically. This feautre is not yet available publicly.

Downloads:

  • Large database of over 150,000 lightcurves from 10,000+ X-ray Sources
  • Downloading extracted lightcurves from 19+ galaxies.
  • Search for lightcurves with J2000 coordinates
  • Retrieve galaxy from lightcurve file names

Convert:

  • Convert FITS lightcurves to ASCII txt files

Analysis:

Observation Details
  • Total counts
  • Observation time (in kiloseconds)
  • Count rate (kiloseconds (rate_ks), seconds (rate_s))
  • Source coordinates (J2000 format)
  • ObsID (Observation ID of the lightcurve)
  • Galaxy (Messier or NGC)

Plots

  • Cumulative Count plots over time to view net counts over time
  • Lightcurves with custom binning to view data in the form of count rate per bin or net counts per bin over time.
  • Power Spectral Density (PSD) to identify periodicity and their time periods/frequencies.
  • Running Average Plot

State Detection

Note: the flare detection algorithm is currently under development and has not been extensively tested. The eclipse detection algorithm has been tested on a sample of 150,000+ X-ray lightcurves and it was able to rediscover known transits and eclipses (including that of the first extragalactic planet candidate). It has also been used by the author of this package to make new discoveries.

  • Flares
  • Eclipses

Astrophysics Database Connection

  • NASA ADS
    • Search for listings which include the source
    • Simple usage: only one method required (.search_ads())
Upcoming features:
  • Integration with galaXy
  • VizeR connection

Installation

  1. Install dependencies via the requirements.txt file: pip install requirements.txt
  2. Install the chandralc package via PIP: pip install chandralc
  3. File Databases will automatically be downloaded on import of package

[more details coming soon]

Cite chandralc

If you use chandralc in your research, please cite it as follows:

@MISC{chandralc,
	author = {{Kumar}, Sammarth},
	title = "{chandralc: Python Package for CXO Lightcurve Analysis}",
	keywords = {Software, Chandra, CXO, lightcurves },
	url = {https://github.com/sammarth-k/chandralc},
	howpublished = {https://github.com/sammarth-k/chandralc},
	year = {2021},
	month = {May},
}

Metadata

Release files for chandralc 0.0.2a0

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

Source distribution (sdist)

Source distribution for chandralc 0.0.2a0
File Size Uploaded Provenance Actions
chandralc-0.0.2a0.tar.gz 18.7 kB Without provenance Details for chandralc-0.0.2a0.tar.gz

Release files / chandralc-0.0.2a0.tar.gz

Download URL chandralc-0.0.2a0.tar.gz
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1b3a495c52eae1497b9e923c300b4a3a0e5222b215ad9d34195f350b80ba8a70
BLAKE2b-256 checksum
How to use checksums
76f3466cb29d2117bbb530fbe87f0d3e45555ba2f8c4b625304473ee43badf39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.7.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Security for chandralc 0.0.2a0

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.

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