NRAO Home > CASA > CASA Toolkit Reference Manual

5.1.11 sd.asapgrid - Tool

Tool to convolve map data onto regularly spaced grid
Description

The asapgrid class is defined to convolve data onto regular spatial grid.

Arguments





Inputs

infile

input data as a string or string list

allowed:

string, list of string

Default:





Returns
asapgrid instance

Example

       # create asapgrid instance with two input data  
       g = asapgrid( [’testimage1.asap’,’testimage2.asap’] )  
       # set IFNO if necessary  
       g.setIF( 0 )  
       # set POLNOs if necessary  
       g.setPolList( [0,1] )  
       # set SCANNOs if necessary  
       g.setScanList( [22,23,24] )  
       # define image with full specification  
       # you can skip some parameters (see help for defineImage)  
       g.defineImage( nx=12, ny=12, cellx=’10arcsec’, celly=’10arcsec’,  
                      center=’J2000 10h10m10s -5d05m05s’ )  
       # set convolution function  
       g.setFunc( func=’sf’, width=3 )  
       # enable min/max clipping  
       g.enableClip()  
       # or, disable min/max clipping  
       #g.disableClip()  
       # actual gridding  
       g.grid()  
       # save result  
       g.save( outfile=’grid.asap’ )  
       # plot result  
       g.plot( plotchan=1246, plotpol=-1, plotgrid=True, plotobs=True )

Methods

sd.asapgrid.defineImageDefine spatial grid
sd.asapgrid.disableClip Disable min/max clipping
sd.asapgrid.enableClip Enable min/max clipping
sd.asapgrid.grid Do gridding
sd.asapgrid.plot Plot result
sd.asapgrid.save Save result
sd.asapgrid.setData Set data to be processed
sd.asapgrid.setFunc Set convolution function
sd.asapgrid.setIF Set IFNO to be processed
sd.asapgrid.setPolList Set polarizations to be processed
sd.asapgrid.setScanList Set scans to be processed
sd.asapgrid.setWeight Set weight type

    sd.asapgrid.defineImage - Function
    sd.asapgrid.disableClip - Function
    sd.asapgrid.enableClip - Function
    sd.asapgrid.grid - Function
    sd.asapgrid.plot - Function
    sd.asapgrid.save - Function
    sd.asapgrid.setData - Function
    sd.asapgrid.setFunc - Function
    sd.asapgrid.setIF - Function
    sd.asapgrid.setPolList - Function
    sd.asapgrid.setScanList - Function
    sd.asapgrid.setWeight - Function


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