NRAO Home > CASA > CASA Cookbook and User Reference Manual

6.16.1 FITS Image Export (exportfits)

To export your images to fits format use the exportfits task. The inputs are:

#  exportfits :: Convert a CASA image to a FITS file  
imagename    =         ’’   #  Name of input CASA image  
fitsimage    =         ’’   #  Name of output image FITS file  
velocity     =      False   #  Use velocity (rather than frequency) as spectral axis  
optical      =      False   #  Use the optical (rather than radio) velocity convention  
bitpix       =        -32   #  Bits per pixel  
minpix       =          0   #  Minimum pixel value  
maxpix       =          0   #  Maximum pixel value  
overwrite    =      False   #  Overwrite pre-existing imagename  
dropstokes   =      False   #  Drop the Stokes axis?  
stokeslast   =       True   #  Put Stokes axis last in header?  
async        =      False   #  If true the taskname must be started using exportfits(...)

The dropstokes or stokeslast parameter may be needed to make the FITS image compatible with an external application.

For example,

   exportfits(’ngc5921.demo.cleanimg.image’,’ngc5921.demo.cleanimg.image.fits’)


More information about CASA may be found at the CASA web page

Copyright © 2010 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search