| extdel | stsdas.toolbox.imgtools.mstools | extdel |
extdel -- Delete single extensions from a FITS file.
extdel filename
This task can ONLY be used with a FITS image; (ie. no tables) they will cause this task to crash!
The extdel task is for deleting individual FITS extensions, not entire imsets. It is good for cleaning up any extraneous FITS extensions that may have gotten into your FITS datafile. It is completely interactive and simple to use as it lists all the extensions in a file and you can then input the FITS extension number (in the left-most column) that you would like to zap.
1. The extdel task is easy to use, and basically requires the input data (a FITS file) and the knowledge of what you want to do with them.
ms> extdel IN=junk.fits OUT=test.fits
You will notice a Warning message as the task tries to delete test.fits before writing the new file there; from temporary files that are cleaned up before exiting. Again, if you had chosen the same name as OUTPUT as you had for INPUT you would not see a Warning and have no chance to save the INPUT file from being changed.
2. The task is designed to prompt you for all the information that it needs so you can simply type ms> extdel test.fits or ms> extdel And answer the following prompts. A helpful listing of SCI extensions is provided to make answering the DELNUM prompt much easier and safer.
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.
imsdel