Quick Start/Command Summary¶
Complete night reduction:
cd to your data directory.
Save a copy of your files in a “raw” directory–this code overwrites the originals!
mkdir raw
cp *.fits raw
General user¶
Start ipython and load the script (skip this if you are on Caltech astro network):
%run /path/to/dbsp.py
Caltech astro network users¶
For users on the Caltech astro network, log in to any machine and execute:
cd /path/where/the/data/are
cp -r /home/ia/DBSP_pipeline/uparm .
cp /home/ia/DBSP_pipeline/login.cl .
/usr/local/anaconda2/bin/ipython
%run /home/ia/DBSP_pipeline/dbsp_new.py
Exclude any images that you don’t want to analyze (use your log; especially focus/test exposures from the beginning of the night):
mark_bad([47,49,50],side='blue')
mark_bad([35],side='red')
Create arcs and dome flats (run this after you have at least one science exposure):
create_arc_dome()
Process flux calibration standards, if desired. If not, skip this step and set flux=False in extract1D(). See
below for telluric correction on the red side.
store_standards([41,42,43], side='blue')
Extract data:
extract1D(61,side='blue')
For basic telluric correction on the red side, first extract an appropriate telluric calibrator, then pass it to store_standards and extract1D:
extract1D(77,side='red', flux=False)
store_standards([41,42,43], side='red', telluric_cal_id = 77)
extract1D(63,side='red',flux=True, telluric_cal_id = 77)
To process a large number of science spectra in a row:
batch_process(20, 45, side='blue', quicklook='no')
Finally, join spectra from the blue and red sides, identify pairs (or more) of images:
combine_sides([61],[63,64])