nraonrao
 
 NRAO Home > CASA > CasaDocument
image.convertflux - Function

1.1.1 Convert flux density between peak and integral
Description

This function interconverts between peak and integral flux density for a Gaussian or Disk component. The image must hold a restoring beam.

Arguments





Inputs

value

Flux density to convert. Must be specified.

allowed:

any

Default:

variant 0Jy/beam

major

Major axis of component. Must be specified.

allowed:

any

Default:

variant 1arcsec

minor

Minor axis of component. Must be specified.

allowed:

any

Default:

variant 1arcsec

type

Type of component. String from Gaussian, Disk.

allowed:

string

Default:

Gaussian

topeak

Convert to peak or integral flux desnity

allowed:

bool

Default:

true

Returns
anyrecord

Example

"""  
#  
print "\t----\t convertflux Ex 1 \t----"  
ia.maketestimage(’in.im’, overwrite=true);  
p1 = qa.quantity(’1mJy/beam’)  
i1 = ia.convertflux(p1, major=’30arcsec’, minor=’10arcsec’, topeak=F);  
p2 = ia.convertflux(i1, major=’30arcsec’, minor=’10arcsec’, topeak=T)  
print ’peak, integral, peak = ’, p1, i1, p2  
#peak, integral, peak =  {’value’: 1.0, ’unit’: ’mJy/beam’}  
#                        {’value’: 0.00016396129551656742, ’unit’: ’Jy’}  
#                        {’value’: 0.0010000000000000002, ’unit’: ’Jy/beam’}  
 
ia.close()  
#  
"""

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2007 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

Updated daily during alpha development.