Skip to main content

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

Project description

Documentation Status Test

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 publication, and optionally this repository itself.

@misc{dbsp_drp2021_arxiv,
      title={DBSP_DRP: A Python package for automated spectroscopic data reduction of DBSP data}, 
      author={Milan S. Roberson and Christoffer Fremling and Mansi M. Kasliwal},
      year={2021},
      eprint={2107.12339},
      archivePrefix={arXiv},
      primaryClass={astro-ph.IM}
}
@misc{dbsp_drp2021_github,
    title     = "DBSP_DRP",
    year      = "2021",
    publisher = "GitHub",
    url       = "https://github.com/finagle29/dbsp_drp"}
  }

and please also cite PypeIt.

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.tar.gz (13.6 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: DBSP_DRP-1.0.0.tar.gz
  • Upload date:
  • Size: 13.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.9

File hashes

Hashes for DBSP_DRP-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7e3dc7ba211d1305d8eaef5b8d6527a2d85cf8e26b28be550fe0dfbc0256a852
MD5 c949fbbcbed6b7b3e0386ccdf7d1105e
BLAKE2b-256 58c4b2ecf80836eedbc9d7a202fc28dd0283bc60d7f86a6c7a65d3c6800c1e0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: DBSP_DRP-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.9

File hashes

Hashes for DBSP_DRP-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a71f36db253f8d64bcf854de9da4624b23863abf7112423542dfea43ace26cc
MD5 9b60aad857122947710dd6b4f3f69cbc
BLAKE2b-256 849d41d967f5fcc8bc22f83b2286334b107d80d4df2d6363af1c0311e9d435bc

See more details on using hashes here.

Supported by

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