Open Source Projects

Here you can find a list of my open source libraries used in peer-reviewed publications. Click on the project names for more information.

newdust

A modular Python library for modeling interstellar dust extinction and attenuation. It computes dust optical properties (absorption and scattering) as well as X-ray scattering halo images. Users can build and manipulate their own grain size distributions, compositions, and scattering physics. Common dust grain size distributions, shapes, and optical constants are included for convenience.

First presented in Corrales et al. (2016), used in Corrales et al. 2017, 2023, 2024, and 2025.

pyXsis

The Pythonic X-ray Spectral Interpretation System

A lightweight Python library for working with one dimensional X-ray spectra with the specutils API. It provides fast spectrum binning, background handling and subtraction, stacking and comparison tools, some simple spectral models, and plotting helpers. So far it has been designed and test-driven on Chandra HETG spectra only. It provides a simple framework for working with X-ray spectra in Python without the need to install XSPEC.

First presented in Corrales et al. (2020), used in Balakrishnan et al. 2024a, 2024b

Public Datasets

Here you can find a list of my public datasets produced for peer-reviewed publications. Click on the project titles to access the datasets.

Tholin optical constants and cross-sections

This work is published in Corrales et al. (2023). The dataset includes optical constants for photochemical hazes grown in a laboratory environment with different C/O ratios (published in Gavilan et al., 2018).

Fe L optical constants extracted from Lee et al. (2009)

This work is published in Corrales et al. (2024). The dataset includes optical constants for Fe L absorption measurements presented in Lee et al. (2009).

Chandra HETG Spectrum of Quiescent Emission from Sgr A*

This work is published in Corrales et al. (2020).

Tutorials

I have written and contributed to a number of publicly available tutorials. Click on the project titles to access the content.

Identifying Dust Features in High Resolution X-ray Spectra

Presented at the AtomDB Spectroscopy School in 2020, this tutorial describes the impact of dust scattering halos on high resolution spectra of point sources. It discuss the various trade-offs of current models and demonstrates how to set up an appropriate ISM extinction scheme with publicly available XSPEC models.

Learn Astropy tutorials