fxdelete: Delete FITS extensions in place
Package: fitsutil
Usage
fxdelete input_list groups
Parameters
- 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?
Description
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.
Notes
Notice that if you delete the PHU (group zero), fxdelete will not create a dummy PHU on the modified file.
Examples
1. Delete group 3 from input.fits.
im> fxdelete input.fits[3]
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[5],fc.fits groups="1,3,4"
Bugs
Fdelete does not accept EXTNAME or EXTVER values yet. Cannot delete PHU (group 0).
See also
imcopy, fxheader