Delete an image from a crate.
The delete_image 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.
slsh> cr = read_file("image.fits");
slsh> print(get_image_shape(cr));
512
512
slsh> delete_image(cr);
1
Delete the image from the crate.
See the
bug pages
on the CIAO website for an up-to-date listing of known bugs.
- sl.crates
-
add_col,
add_image,
add_key,
delete_col,
delete_key,
get_image,
get_image_shape,
get_imagevals,
read_arf,
read_file,
read_pha,
read_rmf,
set_imagevals,
write_arf,
write_file,
write_pha,
write_rmf
- sl.crates_contrib
-
make_table_crate,
write_columns
|