dbsp_drp

DBSP_DRP is a Data Reduction Pipeline for Palomar's workhorse spectrograph DBSP. It is built on top of PypeIt. DBSP_DRP automates the reduction, fluxing, telluric correction, and combining of the red and blue sides of one night's data. It adds several GUIs to allow for easier control of your reduction: - select which data to reduce, and verify the correctness of your FITS headers in an editable table GUI - manually place traces for a sort of manually "forced" spectroscopy with the `-m` option - after manually placing traces, manually select sky regions and tweak the FWHM of your manual traces


License
BSD-3-Clause
Install
conda install -c conda-forge dbsp_drp

Documentation

Documentation Status Test

DBSP_DRP

Description

DBSP_DRP is a Data Reduction Pipeline for Palomar's workhorse spectrograph DBSP. It is built on top of PypeIt. DBSP_DRP automates the reduction, fluxing, telluric correction, and combining of the red and blue sides of one night's data. It adds several GUIs to allow for easier control of your reduction:

  • select which data to reduce, and verify the correctness of your FITS headers in an editable table GUI
  • manually place traces for a sort of manually "forced" spectroscopy with the -m option
  • after manually placing traces, manually select sky regions and tweak the FWHM of your manual traces

The latest documentation can be found on Read the Docs.

Citation

If you use DBSP_DRP in your research, please cite this repository

DBSP_DRP (2021). https://github.com/finagle29/DBSP_DRP

or use this BibTeX reference

@misc{dbsp_drp2021,
    title     = "DBSP_DRP",
    year      = "2021",
    publisher = "GitHub",
    url       = "https://github.com/finagle29/dbsp_drp"}
  }

and please also cite PypeIt.

Citation

If you use DBSP_DRP in your research, please also reference PypeIt.

Prerequisites

DBSP_DRP's dependencies are detailed in environment.yml. You can install all prerequisites by downloading the environment.yml file, navigating to the directory containing it in your terminal window and running

$ conda env create -f environment.yml

The telluric correction code provided by PypeIt relies on a large (5 GB) atmospheric model file, TellFits_Lick_3100_11100_R10000.fits, which can be downloaded here and must be installed into the pypeit/data/telluric/ directory of your PypeIt installation.

An easier alternative is to use the download_tellfile script to download and install the atmospheric model file for you.

Installation

You can install using pip

$ pip install git+https://github.com/finagle29/DBSP_DRP.git

Or you can install from source

$ git clone https://github.com/finagle29/DBSP_DRP.git
$ cd DBSP_DRP
$ pip install -e .

Usage

$ dbsp_reduce -r /path/to/data/DBSP_YYYYMMDD -d /path/to/data/DBSP_YYYYMMDD_redux
    [-a {red,blue}] [-i] [-m] [--debug] [-j N] [-p PARAMETER_FILE] [-t] [-c]
    [--splicing-interpolate-gaps]