NRAO Home > CASA > CASA Toolkit Reference Manual
componentlist.sample - Function

1.2.1 Sample the flux of the list in a specified direction. (Not implemented yet)


Description

The sample function returns a vector containing the flux in Janskys/pixel of all the components in the list, in the specified direction, at the specified frequency. The returned vector always contains four elements corresponding to the Stokes parameters I,~Q,~U,~V.

Arguments





Inputs

direction

The direction to sample any valid direction measure. A valid Direction measure or vector of string or string, e.g me.direction(’J2000’,’19h30m00’, ’-20d00m00’) or [’J2000’,’19h30m00’, ’-20d00m00’] or ’J2000 19h30m00 -20d00m00’

allowed:

any

Default:

J2000 00h00m00.00 90d00m00.0

pixellatsize

the x-size of the in pixels to use when sampling any quantity that has angular units.

allowed:

any

Default:

0.0deg

pixellongsize

the y-size of the in pixels to use when sampling any quantity that has angular units.

allowed:

any

Default:

0.0deg

frequency

The frequency to sample at Any frequency measure

allowed:

any

Default:

1.4GHz

Returns
doubleArray

Example

 
 
      include ’componentlist.g’  
      include ’measures.g’  
      cl := componentlist(’crux.cl’, readonly=T);  
      dir := dm.direction(’J2000’, ’12h26m35.9’, ’-63d5m56’);  
      pixelsize := dm.quantity(’1arcsec’);  
      flux := cl.sample(dir, pixelsize);  
 

__________________________________________________________________


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