Skip to content

hdtee/nirspec_drp

 
 

Repository files navigation

nsdrp

PREREQUISITES:

  1. Anaconda Python 2.7 is required to run the NIRSPEC DRP (NSDRP). It can be downloaded and installed following the directions found at https://www.continuum.io/downloads.

  2. Verify correct installation by typing "python" on the command line. The terminal will display the version number and the distribution, i.e. Anaconda.

  3. The NSDRP software is maintained on GitHub. Download the code from https://github.com/2ichard/nirspec_drp.git and install by decompressing the folder in the directory of your choice.

CONSTRAINTS:

The NSDRP is designed to be fully automated to run without any user's interaction. In addition, it is intended to produce only quick-look, browse extracted spectra for the purpose of assessing the scientific quality and content of the raw data. It may not be able to reduce all types of NIRSPEC data. Specifically, it can only reduce data obtained in high-dispersion mode, and is optimized for and works best on frames having: - single point source in slit - reasonably bright targets with detectable continuum - NIRSPEC-1 through NIRSPEC-7 filters - well-separated orders without overlapping - sufficient exposure times (~> 30s) with detectable sky lines

Finally, the NSDRP should be run only on files downloaded from the Keck Observatory Archive (KOA, http://koa.ipac.caltech.edu/) since it needs to know the correct image type (on-sky object or calibrations) of the data frames. Only NIRSPEC files ingested into the archive are guaranteed to contain this information.

EXECUTING NIRSPEC DRP:

  1. Simple command line usage: python nsdrp.py in_dir out_dir

    Note that you must provide the full directory path of the python file (nsdrp.py) if your current working directory is not the source code.

    OH sky lines are used to refine the theoretical wavelength scale. These lines are listed in the ir_ohlines.dat file which is included in the download. In case you would like to use a different file, it can be specified by using an additional command line argument described in advanced usage.

    in_dir: Path to directory which contains the raw FITS files to be reduced. This must include at least 1 object frame and 1 flat image. For testing purposes, two sample NIRSPEC files are included in the download under the directory 'rawfits'. To check that the installation is successful, try running the pipeline on this directory and verify that it completes without any errors. The descriptions of the output products are provided in the document NSDRP.Products.pdf.

    out_dir: Path to the root of the output directory to use for storage of generated data products. This directory will be created if it does not pre-exist.

  2. Advanced Usage

    Additional command line arguments are available. These are listed and described after executing: python nsdrp.py -h

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%