.help mk2dspec Aug90 noao.artdata .ih NAME mk2dspec -- Make/add 2D spectra using 1D spectra templates .ih USAGE mk2dspec input .ih PARAMETERS .ls input Spectra to create or modify. .le .ls output = "" Output spectra when modifying input spectra. If no output spectra are given then existing spectra in the input list are modified directly. If an output list is given then it must match in number the input list. .le .ls models = "" List of model parameter files. If the list of model files is shorter than the list of input images then the last model file is reused. The model parameter files contain lines giving one dimensional spectrum template name, intensity scale, type of cross dispersion profile, profile width in the center line, change of width per line, profile position in the center line, and change of position per line (see the DESCRIPTION section). .le .ls comments = yes Include comments recording task parameters in the image header? .le WHEN CREATING NEW SPECTRA .ls title = "" Image title to be given to the spectra. Maximum of 79 characters. .le .ls ncols = 100, nlines = 512 Number of columns and lines. .le .ls header = "artdata$stdheader.dat" Image or header keyword data file. If an image is given then the image header is copied. If a file is given then the FITS format cards are copied. This only applies to new images. The data file consists of lines in FITS format with leading whitespace ignored. A FITS card must begin with an uppercase/numeric keyword. Lines not beginning with a FITS keyword such as comments or lower case are ignored. The user keyword output of \fBimheader\fR is an acceptable data file. See \fBmkheader\fR for further information. .le .ih DESCRIPTION This task creates or modifies two dimensional spectra by taking one dimensional spectra, convolving them with a spatial profile across the dispersion, and adding them into two dimensional images. The one dimensional spectra may be real data or artificial data created with the task \fBmk1dspec\fR. No noise is included but may be added with the task \fBmknoise\fR. The spatial profile is fully subsampled and may vary in width and position along the dispersion axis. The spatial axis is along the first dimension and the dispersion is along the second dimension. For new images a set of header keywords may be added by specifying an image or data file with the \fIheader\fR parameter (see also \fBmkheader\fR). If a data file is specified lines beginning with FITS keywords are entered in the image header. Leading whitespace is ignored and any lines beginning with words having lowercase and nonvalid FITS keyword characters are ignored. In addition, comments may be added to the image header recording the model file name and the contents of the model file. The spatial profile models are specified in one or more model parameter files. These files contain lines giving a one dimensional spectrum template name, intensity scale, type of cross dispersion profile, profile width in the center line, change of width per line, profile position in the center line, and change of position per line. More specifically: .ls