| mkspec | noao.onedspec | mkspec |
mkspec -- generate an artifical spectrum or image (obsolete)
mkspec image_name image_title ncols nlines function
An artificial image is created with the specified name and length. The image may have a constant value (function=1), or may be a ramp with either positive or negative slope (function=2), or may be a black body curve (function=3).
Only those parameters specific to the functional form of the image need be specified. In all cases the parameters image_name, image_title, ncols, nlines, and function are required. If function=1, parameter constant is required; if function=2, start_level and end_level are required; if function=3, start_wave, end_wave, and temperature are required.
All black body functions are normalized to 1.0 at their peak intensity which may occur at a wavelength beyond the extent of the generated spectrum.
NOTE THAT THIS TASK IS OBSOLETE AND ARTDATA.MK1DSPEC SHOULD BE USED. In particular this task does not set the header dispersion coordinate system.
cl> mkspec allones "Spectrum of 1.0" 1024 1 1 constant=1.0 cl> mkspec ramp "From 100.0 to 0.0" 1024 64 2 start=100 \ >>> end=0.0 cl> mkspec bb5000 "5000 deg black body" 512 1 3 start=3000 \ >>> end=8000 temp=5000
artdata.mk1dspec, artdata.mk2dspec, artdata.mkechelle