Synopsis
Write a dataset to an output file.
Syntax
write_dataset(ds, filename, clobber=False, history=True)
Description
Argument | Description |
---|---|
ds | A CrateDataset object |
filename | The output file name. To change the format from FITS add a kernel specifier as described in 'ahelp dmopt' and 'ahelp dmascii'. |
clobber | Set to True if the output file already exists and you wish to over-write it, since the default behavior is to raise an IOError in this case. |
history | Should the HISTORY and COMMENT records be written out? The default is True. |
The write_dataset is used to write out a CrateDataset, and follows ahelp write_file.
Changes in CIAO 4.13
The write_dataset routine is now exported from the pycrates module. In earlier versions of CIAO it was only availabe from the pycrates.hlui module.
Bugs
See the bug pages on the CIAO website for an up-to-date listing of known bugs.
Refer to the CIAO bug pages for an up-to-date listing of known issues.
See Also
- contrib
- make_image_crate, make_table_crate, scale_image_crate, smooth_image_crate, write_arrays, write_columns
- crates
- add_col, add_crate, add_key, add_piximg, cratedataset, delete_col, delete_key, delete_piximg, get_crate, read_dataset, read_file, read_pha, read_rmf, write_file, write_pha, write_rmf