NRAO Home > CASA > CASA Task Reference Manual

0.1.47 importfits

Requires:

Synopsis
Convert an image FITS file into a CASA image

Description

Convert an image FITS file into a CASA image

Keyword arguments: fitsimage – Name of input image FITS file default: none; example=’3C273XC1.fits’ imagename – Name of output CASA image default: none; example: imagename=’3C273XC1.image’ whichrep – If fits image has multiple coordinate reps, choose one. default: 0 means first; example: whichrep=1 whichhdu – If fits file contains multiple images, choose this one (0 == first) default=-1 use the first valid one; example: whichhdu=1 zeroblanks – Set blanked pixels to zero (not NaN) default=True; example: zeroblanks=True overwrite – Overwrite pre-existing imagename default=False; example: overwrite=True defaultaxes – Add the default 4D coordinate axes where they are missing default=False, example: defaultaxes=True defaultaxesvalues – List of values to assign to added degenerate axes when defaultaxes==True (ra,dec,freq,stokes) default = [], example: defaultaxesvalues=[’13.5h’, ’-2.5deg’, ’88.5GHz’, ’Q’] beam – List of values to be used to define the synthesized beam [BMAJ,BMIN,BPA] (as in the FITS keywords) default = [] (i.e.take from FITS file), example: beam=[’0.35arcsec’, ’0.24arcsec’, ’25deg’]



Arguments





Inputs

fitsimage

Name of input image FITS file

allowed:

string

Default:

imagename

Name of output CASA image

allowed:

string

Default:

whichrep

If fits image has multiple coordinate reps, choose one.

allowed:

int

Default:

0

whichhdu

If its file contains multiple images, choose one (0 = first HDU, -1 = first valid image).

allowed:

int

Default:

-1

zeroblanks

Set blanked pixels to zero (not NaN)

allowed:

bool

Default:

True

overwrite

Overwrite pre-existing imagename

allowed:

bool

Default:

False

defaultaxes

Add the default 4D coordinate axes where they are missing

allowed:

bool

Default:

False

defaultaxesvalues

List of values to assign to added degenerate axes when defaultaxes==True (ra,dec,freq,stokes)

allowed:

variant

Default:

[]

beam

List of values to be used to define the synthesized beam [BMAJ,BMIN,BPA] (as in the FITS keywords)

allowed:

variant

Default:

[]

Example

 
 
   importfits(fitsimage=’ngc3256.fits’, imagename=’ngc3256.im’, overwrite=True)  
 


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