|AHELP for CIAO 4.2||
Delete an image from a crate.
- crate - input crate
The delete_piximg command removes the image from the crate. The command returns a "1" if the image is successfully deleted.
The image is only deleted from the data in the crate; it's not removed from the input file. The write_file command ("ahelp write_file") can be used to save the modified crate to a file.
>>> cr = read_file("image.fits") >>> print(get_piximg_shape(cr)) [512 512] >>> delete_piximg(cr) 1
Delete the image from the crate.
The command was renamed from delete_image to delete_piximg in CIAO 4.2 to avoid a conflict with a ChIPS command of the same name.
See the bug pages on the CIAO website for an up-to-date listing of known bugs.