Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: image.convertsm - Function Up: image - Tool Previous: image.continuumsub - Function


image.convertflux - Function



Package general
Module images
Tool image


Convert flux density between peak and integral


Synopsis
convertflux(value, major, minor, type, topeak)


Arguments

value in Flux density to convert
    Allowed: Quantity
major in Major axis of component
    Allowed: Quantity
minor in Minor axis of component
    Allowed: Quantity
type in Type of component
    Allowed: String from Gaussian, Disk
    Default: Gaussian
topeak in Convert to peak or integral flux desnity
    Allowed: Bool
    Default: T


Returns
Quantity or fail



Description

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



Example
 
- im := image('in.im');
- p1 := dq.quantity('1mJy/beam')
- i1 := im.convertflux(p1, major='30arcsec', minor='10arcsec', topeak=F);
- p2 := im.convertflux(i1, major='30arcsec', minor='10arcsec', topeak=T)
- print 'peak, integral, peak = ', p1, i1, p2
peak, integral, peak =  [value=1, unit=mJy/beam] [value=0.000163961301, unit=Jy] [value=0.001, unit=Jy/beam]





next up previous contents index
Next: image.convertsm - Function Up: image - Tool Previous: image.continuumsub - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01