Public Code and Data
Deep integral-field data are only as good as their reduction. My thesis rests on Keck/KCWI data of faint, extended Lyα emission and of nearby AGN hosts, so I have put substantial work into the tools that turn raw KCWI exposures into science-ready cubes and maps. The original developers of each package built its foundation. My contributions extend it, aiming to make deep blue+red KCWI stacks as clean and as well registered as possible.
KCWI blue+red reduction workflow (PDF)
KCWI blue+red reduction, end to end
- 1Per-frame reductionKCWI DRP, automated masks, extra CR pass
- 2Saturation screenraw frames of bright QSOs
- 3Red-channel skyKSkyWizard, PCA sky subtraction
- 4Blue+red alignmentall frames, both channels, no point source
- 5Stackcommon grid, split-frame CR rejection, sky matching
- 6Check & analyzeblue vs red registration, then GIST/pPXF maps
The background and registration differences between the blue and red channels are removed, so the two halves of each spectrum join cleanly.
A new rejection method removes all cosmic-ray residuals above 2σ from the final stacks.
Frame-to-frame alignment is about an order of magnitude more accurate, even for extended or extremely faint sources with no point source to align on.
Automatic sky and source masks replace hand-drawn regions, cutting the hands-on time of a reduction considerably.
Built on the official Keck KCWI pipeline. My work on the per-frame reduction:
- Cosmic-ray rejection that no longer flags bright continuum sources (QSOs, galaxy nuclei) as cosmic rays
- Appropriate handling of the wavelength corrections
- Automated sky and source masks from source contours, for every exposure, replacing hand-drawn regions
Built on KcwiKit by Y. Chen, N. Prusinski and collaborators (ASCL 2404.003). My additions:
- Joint frame-to-frame and blue/red cross-channel alignment by cross-correlation. It needs no point source and works across position angles, registering both channels to ~0.01–0.02″.
- Post-DRP cosmic-ray rejection that compares each frame with the rest and removes nearly all CR residuals
- Post-DRP sky-level matching that removes sky-subtraction differences between the blue and red channels
Telluric correction and PCA sky subtraction for the KCWI red channel, developed by Z. Zhuang. My additions:
- Automated processing (the
autobranch) - Bug fixes
Extends the GIST pipeline (Bittner et al. 2019) for pPXF fits of combined blue+red KCWI cubes, in a development version that is not yet public:
- A corrected blue+red read-in: proper wavelength grid across the dichroic gap, plus mask and variance propagation
- Hierarchical spatial binning that follows surface brightness (Pipe3D/CAPIVARA-style), as an alternative to Voronoi
- Mask-aware S/N, a covariance check for drizzled cubes, and a number of robustness fixes
X-ray reflection models
NASA's code for photoionized plasmas, developed by T. Kallman and collaborators. My contributions make it accurate and stable at accretion-disk densities (> 1015 cm-3, up to beyond 1021 cm-3):
- Fixed a long-standing error in the Ca XIV/XV K-shell photoionization cross sections
- Fixed an initialization flaw that let uninitialized arrays cause unpredictable errors
- Added high-density plasma corrections to the atomic rates (notably recombination)
The XILLVER/RELXILL reflection models were developed by J. GarcĂa and collaborators. I led the development of the next-generation, high-density XILLVER built on the improved XSTAR (Ding et al. 2024):
- Predicts stronger Fe K and O resonance features from dense disks
- Offers a physical explanation for apparently supersolar iron abundances
- Aims at more realistic black hole spin and disk-composition estimates
