NRAO Home > CASA > CASA Toolkit Reference Manual

1.2 components - Module

Access and manipulate components

Description

This module contains functionality to manipulate model components

The available tools in this module are

  1.2.1 componentlist - Tool
    componentlist.open - Function
    componentlist.asciitocomponentlist - Function
    componentlist.concatenate - Function
    componentlist.fromrecord - Function
    componentlist.torecord - Function
    componentlist.remove - Function
    componentlist.purge - Function
    componentlist.recover - Function
    componentlist.length - Function
    componentlist.indices - Function
    componentlist.sort - Function
    componentlist.isphysical - Function
    componentlist.sample - Function
    componentlist.rename - Function
    componentlist.simulate - Function
    componentlist.addcomponent - Function
    componentlist.close - Function
    componentlist.edit - Function
    componentlist.done - Function
    componentlist.select - Function
    componentlist.deselect - Function
    componentlist.selected - Function
    componentlist.getlabel - Function
    componentlist.setlabel - Function
    componentlist.getfluxvalue - Function
    componentlist.getfluxunit - Function
    componentlist.getfluxpol - Function
    componentlist.getfluxerror - Function
    componentlist.setflux - Function
    componentlist.convertfluxunit - Function
    componentlist.convertfluxpol - Function
    componentlist.getrefdir - Function
    componentlist.getrefdirra - Function
    componentlist.getrefdirdec - Function
    componentlist.getrefdirframe - Function
    componentlist.setrefdir - Function
    componentlist.setrefdirframe - Function
    componentlist.convertrefdir - Function
    componentlist.shapetype - Function
    componentlist.getshape - Function
    componentlist.setshape - Function
    componentlist.convertshape - Function
    componentlist.spectrumtype - Function
    componentlist.getspectrum - Function
    componentlist.setstokesspectrum - Function
    componentlist.setspectrum - Function
    componentlist.getfreq - Function
    componentlist.getfreqvalue - Function
    componentlist.getfrequnit - Function
    componentlist.getfreqframe - Function
    componentlist.setfreq - Function
    componentlist.setfreqframe - Function
    componentlist.convertfrequnit - Function
    componentlist.getcomponent - Function
    componentlist.add - Function
    componentlist.replace - Function
    componentlist.summarize - Function
    componentlist.iscomponentlist - Function

Example

"""  
#  
print "\t----\t Module Ex 1 \t----"  
pathname=os.environ.get("CASAPATH")  
pathname=pathname.split()[0]  
datapath=pathname+"/data/demo/Images/imagetestimage.fits"  
ia.fromfits(outfile=’testimage.im’, infile=datapath, overwrite=T) # 1  
hdr = ia.summary()                                                # 2  
ia.statistics()                                                   # 3  
ia.close()                                                        # 4  
print "Last example!  Exiting..."  
exit()  
#  
"""


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

Copyright 2016 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