Skip to content
Interface for DECam to the LSST stack.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This obs_decam package is for interfacing DECam with the LSST Data Management software.

This package is not a part of the official LSST Data Management stack, and is hosted by the LSST project only as a courtesy to the astronomical community. The LSST does not commit to supporting this package, and makes no warranty about its quality or performance. It is licensed under the GNU Public License version 3.

The initial version of this package was provided by Paul Price (, and though he also makes no commitment to support it, users are welcome to contact him and/or the LSST Data Management mailing list ( with questions.


LSST Data Management System Copyright 2012-2016 AURA/LSST.

This package is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see


Documentation of the LSST Science Pipelines is at

  1. Create a data repository directory:

     $ mkdir /path/to/repo
     $ echo lsst.obs.decam.DecamMapper > /path/to/repo/_mapper
  2. Get and build obs_decam:

     $ cd /path/to/work
     $ git clone git://
     $ cd obs_decam
     $ setup -t <CURRENT_TAG> -r .
     $ scons install declare --tag=current
  3. Import instcal/dqmask/wtmap data into the data repository:

     $ /path/to/repo --filetype instcal --mode=link instcal/*.fits.fz
  4. Alternatively, import raw and calibration data into the data repository, for example:

     $ /path/to/repo --filetype raw /path/to/raw/*.fits.fz
     $ /path/to/repo/  --calib /path/to/calib/repo/ --calibType defect /path/to/calib/*fits --validity 0
     $ /path/to/repo/  --calib /path/to/calib/repo/ /path/to/bias-and-flat-files/*fits --validity 999
     $ /path/to/repo/  --calib /path/to/calib/repo/ /path/to/fringe-files/*fits --validity 999

    By default, ingesting calibration data only creates a repository database. When ingesting biases and flats, if you would like to also link these files (in the same way as images are ingested), use --mode=link. This functionality is not currently supported for other calibTypes (i.e., defect or fringe).

  5. Process data:

     $ /path/to/repo/ --id visit=283453 ccdnum=10 --output /path/to/your/output/repo/ -C /path/to/your/config/override/file --config calibrate.doAstrometry=False calibrate.doPhotoCal=False
  6. To read instcal files from the community pipeline, replace the ISR task with DecamNullIsrTask by using a config override file containing the following:

     from lsst.obs.decam.decamNullIsr import DecamNullIsrTask
  7. To process raw data with the Community-Pipeline calibration products, retarget the ISR task to DecamCpIsrTask by using the config override file config/

You can’t perform that action at this time.