Skip to main content

Build Status Coverage Status Documentation Status

HENDRICS - High ENergy Data Reduction Interface from the Command Shell

Description

This set of command-line scripts based on Stingray is designed to do correctly and fairly easily a quick-look (spectral-)timing analysis of X-ray data, treating properly the gaps in the data due, e.g., to occultation from the Earth or passages through the SAA. Originally, its development as MaLTPyNT - Matteo’s Libraries and Tools in Python for NuSTAR Timing - was driven by the need of performing aperiodic timing analysis on NuSTAR data, whose long dead time made it difficult to treat power density spectra with the usual tools. By exploiting the presence of two independent detectors, one could use the cospectrum as a proxy for the power density spectrum (for an explanation of why this is important, look at Bachetti et al., ApJ, 800, 109 -arXiv:1409.3248).

Today, this set of command line scripts is much more complete and it is capable of working with the data of many more satellites. Among the features already implemented are power density and cross spectra, time lags, pulsar searches with the Epoch folding and the Z_n^2 statistics, color-color and color-intensity diagrams. More is in preparation: rms-energy, lag-energy, covariance-energy spectra, Lomb-Scargle periodograms and in general all that is available in Stingray. The analysis done in HENDRICS will be compatible with the graphical user interface DAVE, so that users will have the choice to analyze single datasets with an easy interactive interface, and continue the analysis in batch mode with HENDRICS. The periodograms produced by HENDRICS (like a power density spectrum or a cospectrum), can be saved in a format compatible with XSpec or ISIS, for those who are familiar with those fitting packages. Despite its original main focus on NuSTAR, the software can be used to make standard aperiodic timing analysis on X-ray data from, in principle, any other satellite (for sure XMM-Newton and RXTE).

The documentation can be found here.

A tutorial is also available here.

Installation instructions

To install stable or beta releases:

$ pip install hendrics

For development versions:

$ git clone git@github.com/StingraySoftware/HENDRICS
$ cd HENDRICS
$ python setup.py install

License and notes for the users

This software is released with a 3-clause BSD license. You can find license information in the LICENSE.rst file.

If you use this software in a publication, please refer to its Astrophysics Source Code Library identifier:

  1. Bachetti, M. 2018, HENDRICS: High ENergy Data Reduction Interface from the Command Shell, record ascl:1805.019.

and please also cite stingray <https://stingray.science/stingray/citing.html>

In particular, if you use the cospectrum, please also refer to:

  1. Bachetti et al. 2015, ApJ , 800, 109.

If you have found a bug please report it by creating a new issue on the HENDRICS GitHub issue tracker.

Development guidelines

Please follow the development workflow for the Astropy project. In the hendrics/tests directory, there is a test suite called test_fullrun.py. These tests use the actual command line scripts, and should always pass (albeit with some adaptations). The other test suites, e.g. test_unit.py, tests the API.

Release files for hendrics 8.5.1

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

Source distribution (sdist)

Source distribution for hendrics 8.5.1
File Size Uploaded
hendrics-8.5.1.tar.gz 41.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for hendrics 8.5.1
File Interpreter ABI Platform
hendrics-8.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 76.5 MB

Release files / hendrics-8.5.1.tar.gz

Download URL hendrics-8.5.1.tar.gz
Size 41.0 MB
Tags Source
SHA-256 checksum
How to use checksums
561c1674147116410e51cd2468632681615686cc76d62be2959ef0bc9aefc5c1
BLAKE2b-256 checksum
How to use checksums
8d239e1afd2732f1d6c6bdc8437df11b87b812412fd9abe6c58e91514b477997
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Release files / hendrics-8.5.1-py3-none-any.whl

Download URL hendrics-8.5.1-py3-none-any.whl
Size 35.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
5240644cdca7d5749089c712680106f4e4a082603ab8cc4efb12ecc4159c2d95
BLAKE2b-256 checksum
How to use checksums
86715fa0244109eeab332b516c456c7262032ceca0cd4c0cb1e5a5994e9a8ce9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11
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