Cfitsio Toolkit - fitswrite
- : fitswrite(data,
filename)
- : fitswrite(data,
filename, propertyname, propertyvalue)
Write image data data to FITS file filename. If the fie already exists, overwrite it.
Inputs
data - imagedata to write to a file.
filename - filename to write to.
propertyname, propertyvalue - property name/value pairs
Additional properties can be set as propertyname, propertyvalue pairs. Known property names are:
- WriteMode
Set mode for writing to image as ’overwrite’ (default) or ’append’ to append images.
- Compression
Set compression type to use for image as ’none’ (default), ’gzip’, ’rice’, ’hcompress’ or ’plio’.
Outputs
None
Examples
filename = tempname(); X = double([1:3;4:6]); fitswrite(X, filename);