add_image(crate, cratedata);
- crate - input Crate object
- cratedata - CrateData object to be added
Add an image, represented by the cratedata argument, to the crate.
Any existing image in the crate will be replaced.
| crate |
a Crate object |
| cratedata |
CrateData object |
slsh> crate = read_file("image.fits");
slsh> newimg = CrateData();
slsh> newimg.name = "NEWIMG";
slsh> add_image(crate, newimg);
1
slsh>
Overwrite the image in the Crate stored in the variable "crate"
with an empty image called "NEWIMG".
See the
bug pages
on the CIAO website for an up-to-date listing of known bugs.
- sl.crates
-
add_col,
add_key,
delete_col,
delete_image,
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
|