Skip to main content

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]

Metadata

Release files for DBSP-DRP 1.0.0.post4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for DBSP-DRP 1.0.0.post4
File Size Uploaded Provenance
DBSP_DRP-1.0.0.post4.tar.gz 13.6 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for DBSP-DRP 1.0.0.post4
File Interpreter ABI Platform
DBSP_DRP-1.0.0.post4-py3-none-any.whl Python 3 none any Details

Total release size: 26.3 MB

Release files / DBSP_DRP-1.0.0.post4.tar.gz

Download URL DBSP_DRP-1.0.0.post4.tar.gz
Size 13.6 MB
Tags Source
SHA-256 checksum
How to use checksums
5451f2e058e88768c1b6bf22a8064a9be96a99c086a79fed84ddcc7f01f224b2
BLAKE2b-256 checksum
How to use checksums
138ba20366d36601ddcdc4c5620860b168ffd1bc49e8af311ffe1d3d20dd37ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / DBSP_DRP-1.0.0.post4-py3-none-any.whl

Download URL DBSP_DRP-1.0.0.post4-py3-none-any.whl
Size 12.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
43892b608ff573a4ae66f172c019a90b9fabea974db9fb02929f9cbf70623402
BLAKE2b-256 checksum
How to use checksums
8995cb2c16eebec893f281a75f10fe59d77344322b87e481353af71dafaefde5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Security for DBSP-DRP 1.0.0.post4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page