NRAO Home > CASA > CASA Cookbook and User Reference Manual

6.16.2 FITS Image Import (importfits)

You can also use the importfits task to import a FITS image into CASA image table format. Note, the CASA viewer can read fits images so you don’t need to do this if you just want to look a the image. The inputs for importfits are:

#  importfits :: Convert an image FITS file into a CASA image:  
 
fitsimage    =         ’’   #   Name of input image FITS file  
imagename    =         ’’   #   Name of output CASA image  
whichrep     =          0   #   Which coordinate representation (if multiple)  
whichhdu     =          0   #   Which image (if multiple)  
zeroblanks   =       True   #   If blanked fill with zeros (not NaNs)  
overwrite    =      False   #   Overwrite pre-existing imagename  
async        =      False   #   if True run in the background, prompt is freed

For example, we can read the above image back in

  importfits(’ngc5921.demo.cleanimg.image.fits’,’ngc5921.demo.cleanimage’)


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