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 |
>>> crate = read_file("image.fits")
>>> newimg = CrateData()
>>> newimg.name = "NEWIMG"
>>> add_image(crate, newimg)
1
>>>
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.
- py.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
|