Skip to main content
QUICK REVIEW

[Paper Review] CWITools: A Python3 Data Analysis Pipeline for the Cosmic Web Imager Instruments

Dónal O’Sullivan, Yuguang Chen|arXiv (Cornell University)|Nov 10, 2020
Computational Physics and Python ApplicationsComputer Science1 references6 citations
TL;DR

CWITools is a Python3 open-source data analysis pipeline designed for three-dimensional integral field spectroscopy data from the Palomar and Keck Cosmic Web Imagers (PCWI and KCWI), enabling efficient reduction, extraction, synthesis, modeling, and measurement of faint high-redshift emission. It streamlines scientific workflows by transforming standard instrument data reduction pipeline outputs into surface brightness maps, spectra, velocity maps, and physical measurements with modular, adaptable components.

ABSTRACT

The Palomar Cosmic Web Imager (PCWI) and Keck Cosmic Web Imager (KCWI) are integral-field spectrographs on the Hale 5m telescope at Palomar Observatory and the Keck-2 10m telescope at W. M. Keck Observatory, respectively. In recent years, these instruments have been increasingly used to conduct survey work; in particular focused on the circumgalactic and intergalactic media at high redshift. Extracting faint signals from three-dimensional IFU data is a complex task which can become prohibitively difficult for large samples without the proper tools. We present CWITools, a package written in Python3 for the analysis of PCWI and KCWI data. CWITools is designed to provide a pipeline between the output of the standard instrument data reduction pipelines and scientific products such as surface brightness maps, spectra, velocity maps, as well as a wide array of associated models and measurements. While the package is designed specifically for PCWI and KCWI data, the package is open source and can be adapted to accommodate any three-dimensional integral field spectroscopy data. Here, we describe this pipeline, the methodology behind individual steps and provide example applications.

Motivation & Objective

  • To address the growing challenge of analyzing large samples of 3D IFU data from Cosmic Web Imager instruments.
  • To provide a flexible, user-friendly, and extensible data analysis pipeline that bridges standard instrument data reduction outputs and scientific products.
  • To support survey-scale science by automating complex steps such as coadding, masking, and spectral extraction for faint, extended emission.
  • To enable adaptation to other IFU instruments through modular design and format conversion utilities.
  • To reduce the time and complexity of data analysis for high-redshift circumgalactic and intergalactic medium studies.

Proposed method

  • The pipeline processes standard instrument data reduction pipeline (DRP) outputs—such as intensity, background, variance, and mask cubes—into calibrated, coadded 3D data cubes.
  • It employs a modular architecture with distinct stages: reduction (cropping, coadding, correction), extraction (source masking, background subtraction), synthesis (surface brightness and velocity maps), modeling (PSF fitting, radial profile analysis), and measurement (flux, velocity, and spatial extent quantification).
  • The package uses FITS-compliant data structures and supports flexible input through a .list configuration file that organizes input paths, unique IDs, and output directories per science target.
  • It includes instrument-specific data such as sky-line lists and grating/slicer configurations for PCWI and KCWI, with extensibility to other instruments via format conversion functions.
  • The pipeline supports both direct analysis of 3D data and derived 2D products, with tools for PSF modeling, radial profile fitting, and spectral extraction.
  • It is designed to be extensible, allowing adaptation to other IFUs through custom data format conversion and header keyword remapping functions.

Experimental results

Research questions

  • RQ1How can a standardized, modular, and extensible data analysis pipeline be developed to handle the complex reduction and analysis of 3D IFU data from the Cosmic Web Imagers?
  • RQ2What are the key bottlenecks in analyzing faint, extended emission in high-redshift surveys using IFU data, and how can they be mitigated through automation and tool integration?
  • RQ3To what extent can a pipeline designed for PCWI and KCWI be adapted to other integral field spectrographs with different data formats and instrumental characteristics?
  • RQ4What are the most effective methods for extracting physical measurements such as flux, velocity, and spatial extent from 3D IFU data cubes of faint nebular emission?
  • RQ5How can the pipeline be structured to support large-scale surveys while remaining flexible for diverse scientific objectives?

Key findings

  • CWITools successfully enables the extraction of surface brightness maps, spectra, and velocity maps from PCWI and KCWI data cubes with minimal user intervention.
  • The pipeline reduces the time and complexity of analyzing faint, extended emission by automating coaddition, masking, and spectral extraction steps.
  • The toolkit has been validated in the FLASHES survey, where it facilitated the detection of nebular emission around high-redshift QSOs at z=2–3.
  • The modular design allows for adaptation to other IFU instruments, such as MUSE, through simple data format conversion functions.
  • The package includes instrument-specific data such as sky-line lists and spectral resolution models, which can be extended for other observatories.
  • The pipeline’s extensibility is demonstrated by its ability to handle non-adjacent spaxel arrays through world-coordinate-based processing, though this requires careful re-implementation of spatially dependent algorithms.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.