| ecextract | stsdas.toolbox.imgtools.mstools | ecextract |
ecextract -- Select all extensions of one selected type from a FITS file
WARNING: This task can ONLY be used with a FITS image; (ie. no tables) they will cause this task to crash!
USAGE ecextract filename
The ecextract task is for simply selecting all extensions of a (1) selected type into a different file. There will be a display of types available for selection before you have to provide your choice for selection. You will be able to see, in real-time, the construction of your output file.
1. The ecextract task is an easy way of grouping all of the file extensions you want into another FITS file and discarding those you think you could do without.
ms> ecextract NICdata.fits NICSCI.fits SCI
This command will create a FITS file of ONLY the SCI extensions from the imsets that a NICMOS observation provides.
You are able to request the same output name as your input name and the task will comply with your request. The danger is that your input file WILL be OVERWRITTEN! You will lose forever the contents of that input file as it is replaced with the output. You may want to do this but you should just be aware of the circumstance and reminded that you can choose a different filename for your output.
This script was written by E. W. Wyckoff, SSG.
For assistance using this or any other tasks, please contact help@stsci.edu or call the help desk at 410-338-1082.