specextract – Extract 1-D spectra from 2-D image
specextract images outfiles (method) (section) (thresh) (minsize) (outformat) (clobber) (logfile) (verbose)
SPECEXTRACT will create 1D spectra from a 2D image. The task will extract the spectrum from coordinates which are provided by the user or will identify objects and extract them from the spectra.
If section is set to None, SPECTEXTRACT will identify objects in the image. It will calculate the median array along the spectra axis, and then detect sources that are three sigma above the background along that array. The program will also deblend sources that are detected.
For each region specified by section or each object detected, SPECEXTRACT will extract that region from the image. In ‘normal’ mode, the task will extract the summed counts from tehe region. At this time, this is the only mode supported.
The user has two options for the output format. Outformat can either be set to an ascii file or a FITS table. If it is an ascii file, a single file will be created with the first column being wavelength, the second column being counts, and the third column being the error on those counts. The error is either determined either from the variance frame or from the square root of the counts if no variance frame exists. If more than one source exists is identified in the image, than
EXAMPLES 1. To extra a spectrum from a 2D image with specextact:
--> specextract images='pmbxpP201104250029.fits' outfile='pmbxpP201104250029.txt'
method='normal' section='[900:1100]'
Individual unbinned raw full-frame RSS files can be 112MB in size. It is recommended to use workstations with a minimum of 512MB RAM. On a linux machine with 2.8 Ghz processor and 2 Gb of RAM, one 2051x2051 image in 0.15 sec.
The weighted option is not currently implimented.
Send feedback and bug reports to salthelp@saao.ac.za