Skip to main content

"Automated Data Reduction Pipeline for Palomar's Double Spectrograph"

Project description

Documentation Status Test DOI

PyPI version conda-forge version pip downloads conda downloads

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 the following publications, or use the BibTeX provided below. DOI DOI

Additionally, please cite PypeIt, with the BibTeX entries provided below (the Zenodo BibTex is for PypeIt 1.6.0, used in this version of DBSP_DRP).

DBSP_DRP BibTeX

@article{dbsp_drp:joss,
  doi = {10.21105/joss.03612},
  url = {https://doi.org/10.21105/joss.03612},
  year = {2022},
  publisher = {The Open Journal},
  volume = {7},
  number = {70},
  pages = {3612},
  author = {Milan Sharma Mandigo-Stoba and Christoffer Fremling and Mansi M. Kasliwal},
  title = {DBSP_DRP: A Python package for automated spectroscopic data reduction of DBSP data},
  journal = {Journal of Open Source Software}
}
@misc{dbsp_drp:arxiv,
      title={DBSP_DRP: A Python package for automated spectroscopic data reduction of DBSP data}, 
      author={Milan Sharma Mandigo-Stoba and Christoffer Fremling and Mansi M. Kasliwal},
      year={2021},
      eprint={2107.12339},
      archivePrefix={arXiv},
      primaryClass={astro-ph.IM}
}
@software{dbsp_drp:zenodo,
  author       = {Mandigo-Stoba, Milan Sharma and
                  Fremling, Christoffer and
                  Kasliwal, Mansi M.},
  title        = {{DBSP\_DRP: A Python package for automated 
                   spectroscopic data reduction of DBSP data}},
  month        = feb,
  year         = 2022,
  publisher    = {Zenodo},
  version      = {v1.0.0},
  doi          = {10.5281/zenodo.6241526},
  url          = {https://doi.org/10.5281/zenodo.6241526}
}

PypeIt BibTeX

@article{pypeit:joss_pub,
    doi = {10.21105/joss.02308},
    url = {https://doi.org/10.21105/joss.02308},
    year = {2020},
    publisher = {The Open Journal},
    volume = {5},
    number = {56},
    pages = {2308},
    author = {J. Xavier Prochaska and Joseph F. Hennawi and Kyle B. Westfall and Ryan J. Cooke and Feige Wang and Tiffany Hsyu and Frederick B. Davies and Emanuele Paolo Farina and Debora Pelliccia},
    title = {PypeIt: The Python Spectroscopic Data Reduction Pipeline},
    journal = {Journal of Open Source Software}
}

@software{pypeit:zenodov_v1_6,
  author       = {J. Xavier Prochaska and
                  Joseph Hennawi and
                  Ryan Cooke and
                  Kyle Westfall and
                  Feige Wang and
                  Debora Pelliccia and
                  EmAstro and
                  Milan Roberson and
                  T. E. Pickering and
                  tiffanyhsyu and
                  badpandabear and
                  Asher Wasserman and
                  Timothy Ellsworth Bowers and
                  Nicolas Tejos and
                  Alexa Villaume and
                  Brad Holden and
                  marijana777 and
                  Sunil Simha and
                  JT Schindler and
                  David Young and
                  Andreas Flörs and
                  Matt Wilde and
                  S.Tang and
                  Erik Tollerud and
                  Jacob Isbell and
                  Kristen Thyng and
                  Dan Foreman-Mackey and
                  David Jones and
                  Edward Betts and
                  Zlatan Vasović},
  title        = {pypeit/PypeIt: Version 1.6.0},
  month        = oct,
  year         = 2021,
  publisher    = {Zenodo},
  version      = {1.6.0},
  doi          = {10.5281/zenodo.5548381},
  url          = {https://doi.org/10.5281/zenodo.5548381}
}

Prerequisites

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

$ conda env create -f environment.yml

Installing DBSP_DRP using conda does not require this step.

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 conda

$ conda install -c conda-forge dbsp_drp

or pip

$ pip install dbsp-drp

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]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DBSP_DRP-1.0.0.post4.tar.gz (13.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

DBSP_DRP-1.0.0.post4-py3-none-any.whl (12.7 MB view details)

Uploaded Python 3

File details

Details for the file DBSP_DRP-1.0.0.post4.tar.gz.

File metadata

  • Download URL: DBSP_DRP-1.0.0.post4.tar.gz
  • Upload date:
  • Size: 13.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for DBSP_DRP-1.0.0.post4.tar.gz
Algorithm Hash digest
SHA256 5451f2e058e88768c1b6bf22a8064a9be96a99c086a79fed84ddcc7f01f224b2
MD5 233c5b90cd1d53d2a8da54da341cdcc1
BLAKE2b-256 138ba20366d36601ddcdc4c5620860b168ffd1bc49e8af311ffe1d3d20dd37ae

See more details on using hashes here.

File details

Details for the file DBSP_DRP-1.0.0.post4-py3-none-any.whl.

File metadata

  • Download URL: DBSP_DRP-1.0.0.post4-py3-none-any.whl
  • Upload date:
  • Size: 12.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for DBSP_DRP-1.0.0.post4-py3-none-any.whl
Algorithm Hash digest
SHA256 43892b608ff573a4ae66f172c019a90b9fabea974db9fb02929f9cbf70623402
MD5 0dcfaed7ba24adc3183d4cd87349df3b
BLAKE2b-256 8995cb2c16eebec893f281a75f10fe59d77344322b87e481353af71dafaefde5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page