Automated Chandra X-ray Data Pipeline and Merger
Project description
Chanmerge
Chanmerge is a specialized Python library designed to automate the retrieval, reprocessing, and merging of Chandra X-ray Observatory data.
Scientific Workflow
The library automates a rigorous X-ray analysis chain to ensure data consistency and reproducibility:
- Catalog Cross-Matching: Dynamically queries the
chanmasterarchival database usingastroquery.heasarcto ensure all relevant spatial data within the user-defined search radius is captured. - Calibration Alignment: Standardizes the reprocessing of raw event files using the
chandra_reproalgorithm, ensuring every observation is synchronized with the latest CALDB (Calibration Database) updates. - Flux Synthesis: Automates the multi-step
merge_obsprocess, including exposure map generation and aspect solution handling, to produce integrated flux images across specified energy bands. - Automated Workspace Management: Sanitizes file structures and handles directory-level organization, mitigating the risk of manual processing errors during large-scale archival studies.
Installation
Prerequisites
- Python 3.12+
- CIAO 4.16+ (Must be initialized in the environment)
Setup
pip install chanmerge
Quick Start
To begin your analysis, use the following Python command:
from chanmerge import auto_merge_obs
auto_merge_obs(
ra="13:25:27.6",
dec="-43:01:09",
energy_band="hard",
radius_arcmin=15.0,
outdir="chanmerge-test"
)
Coordinate Formats (Important!)
The ra and dec parameters accept coordinates as strings. You can provide them in two different ways:
-
Sexagesimal (Recommended): Just pass the standard string format.
ra="13:25:27.6", dec="-43:01:09"
-
Decimal Degrees: If you prefer using decimal coordinates, you must append a
dat the end of the string so the backend parser knows it is a degree.ra="201.342d", dec="-43.0192d"
> **WARNING:** If you input a raw decimal string without the `d` suffix (e.g., `ra="201.342"`), the pipeline will default to parsing the Right Ascension as *hours* instead of degrees. This will not crash the script, but it will cause the telescope to query an entirely wrong region of the sky!
Author
Ahmet Sercan Kıyak
Boğaziçi University, Department of Physics
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chanmerge-1.0.2.tar.gz.
File metadata
- Download URL: chanmerge-1.0.2.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa2bfc4565333b9b9398dbbca8a4c3f02498e6df4a29b76713507f1b9307e991
|
|
| MD5 |
6dee803b04227e492afe5cfc7e937493
|
|
| BLAKE2b-256 |
abc207ad574a7f29b043f2a5f6c0f80134d27ae6ef42189725a4eec8e4b1d838
|
File details
Details for the file chanmerge-1.0.2-py3-none-any.whl.
File metadata
- Download URL: chanmerge-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b56ce2df24801280e3edf7bca8101cd6ce506ea9f010b84b7239b720a908eaca
|
|
| MD5 |
0c936aeaefb5b6c23e9b14f7e783fb20
|
|
| BLAKE2b-256 |
3d40f7198b2df5e34635f96da8c5ead4be5ad0fccd3e4439988a2d67dd61f446
|