addsky for adding sky lines to a series of spectra

addsky loads a file defining skylines and uses this to add fakes sky lines to a frame or a series of frames.

Invocation

addspec skylines data scale xover yover [seed xd yd yrms]

Command line arguments

skylines---Name of the skyline definition file
data---Name of data file or list of data files to add sky lines to. These will be overwritten on output.
scale---Scale factor to multiply the input strengths by to give an easy way to change the effective brightness, telescope size etc. 1 implies no change.
xover---Oversampling factor (in terms of unbinned pixels) in the X direction, i.e. spectral direction.
seed---Random number seed. This and succedding arguments is only prompted for if there is more than one data file
xdrift, ydrift---Drift per image in x and y. Note that X is the dispersion direction and therefore represents flexure while Y includes guiding as well.
yrms---RMS scatter in Y.
seeing1---Starting seeing, in pixels. It is assumed that the spectrum profile is gaussian. Then a linear ramp of seeing will be added to them with image number. The seeing is added in quadrature to the specified width.
seeing2---Ending seeing, in pixels. It is assumed that the profiles given are without any seeing added.
nreset---Reset drift every nreset images. Simulates a position correction at the telescope.

Classes

This command is a member of the classes: Programs, Spectra, Testing.

Author: T.R. Marsh
Created: 18 October 2005
Revised: 02 December 2006


Page generated Fri Jul 5 12:23:42 2013