peakmap

Builds a map of emission-line strength from a spectral-cube NDF.

Description:

This shell script reads a three-dimensional spectral-cube NDF and presents you with a white-light image of the cube. You can then select an X-Y position using the cursor. The script will extract and display this reference spectrum. You will then be prompted to specify various fitting parameters, such as the peak position, using the cursor. The script will then attempt to fit the emission line. The fit will be displayed and you are consulted regarding the goodness of fit. If you consider the fit to be good enough, the script will attempt to perform similar fits to all spectra within the cube, building a two-dimensional NDF image of the strength of the line. These will use the same initial parameters as the reference spectrum, unless option -a is selected. You may view this image drawn with a key (option -d), and overlay a contour plot (with a key) of the white-light image (option -c).

If you do not force the fit to be considered ‘good’ by using the -f command-line option, the script will offer the opportunity to manually refit the spectral feature for individual pixels, such as those that were unsuccessfully fitted by the automatic procedure. In this case, the line-strength map will be plotted and replotted after the new fit, regardless of the -p option.

Usage:

peakmap [-a] [-c number] [-ci index] [-f] [-i filename] [-l logfile]

        [-o filename] [-p] [-v] [-z/+z]

Command-line Arguments

Notes:

Implementation Status:

This script invokes a collection of A-tasks from the Kappa and Figaro packages.