BUGS · SEE_ALSO
fxdelete -- Generic FITS multi-extension delete utility
fxdelete input_list groups
- input [string]
- Can be a list of FITS filenames with or without extension number.
- groups = "" [string]
- Specify the list of extensions to delete from the those files without explicit extension number. This list is applied to all input files.
- verbose = yes
- Print each operation as it takes place?
Fdelete will delete one or more FITS units in place from a Multiple extension file or a list of files.
FITS extensions are numbered from zero -as the primary unit, with one as the first extension two as the second extension and so on.
Notice that if you delete the PHU (group zero), fxdelete will not create a dummy PHU on the modified file.
1. Delete group 3 from input.fits. im> fxdelete input.fits 2. To delete extensions 1,3,5 from input file g10.fits. im> fxdelete g10.fits groups="1,3,5" 3. Delete extensions. Notice that for those files without an extension, the group extension list applies. im> fxdelete fa.fits,fb.fits,fc.fits groups="1,3,4"
Fdelete does not accept EXTNAME or EXTVER values yet. Cannot delete PHU (group 0).