![]()
|
|||
|
|
|||
| NRAO Home > CASA > CasaRef |
|
||
2.3.1 DEPRECATED...use selectvis instead..Set the data parameters selection for
subsequent processing
Description
This setup tool function selects which data are to be used subsequently. After
invocation of setdata, only the selected data are operated on. Thus, for
example, in imaging, only the selected data are gridded into an image, and in
plotting, only the selected data are plotted.
Data can be selected by field and spectral window ids. Note that all data thus selected are passed to the imaging, and may or may not be imaged, depending on how the image was constructed using setimage. For example, in mosaicing, use fieldid in setimage to control what pointing is used to define the field center, and use fieldid in setdata to control what pointings are used in the imaging.
For spectral processing, it is possible to make cubes out multi-spectral window selections but the selection is terse till a better selection scheme is devised.
The selection is controlled by the mode argument:
For channel mode, the other fields have the following meaning:
The channels are centered on velocities: start, start+step, start+2*step, etc.
By choosing the parameters for setdata and setimage correctly, one may obtain various mappings of visibility channels to image channels. For example, to average 512 visibility channels into 64 image channels (producing image channels consisting of 8 visibility channels):
This averages the spectral channels during the gridding process. If one wanted to only include every 8th channel in the deconvolution, one would do:
For velocity and opticalvelocity modes, the mstart and mstep are the start and step velocities as strings.
If the image and data selections differ, then averaging is done during the gridding and degridding process in the image deconvolution.
Note: The channels numbers used in setimage and setdata refers to the same channel. So if a channel is not selected in setdata but is selected in setimage, then blank channels image are made. The example below will result in the having the first 5 channels in the image to be blank.
For multi-spectral window cube imaging the selection of the data can be done as follows
The above means that you would make a data selection of 50 channels (starting from 1 steping 1) from the first spectral window and 60 channels (starting from 1 steping 1). The setimage defines the image to be a cube of 110 channels. The caveat is the step size in the frequency direction is the step size of the first spectral window. If the step size of channels of the two spectral windows are different then one is better off defining the image cube in velocities (e.g. as below).
Arguments
| Inputs |
| ||
| mode |
| Type of processing: channel or velocity
| |
| allowed: | string |
|
| Default: | channel none none | |
| nchan |
| Number of channels to select
| |
| allowed: | intArray |
|
| Default: | 1 |
|
| start |
| Start channels (0-relative)
| |
| allowed: | intArray |
|
| Default: | 0 | |
| step |
| Step in channel number
| |
| allowed: | intArray |
|
| Default: | 1 |
|
| mstart | km/s | Start velocity (e.g. ’20Km/s’)
| |
| allowed: | doublekm/s |
|
| Default: | 0.0 |
|
| mstep | km/s | Step in velocity (e.g. ’100m/s’
| |
| allowed: | doublekm/s |
|
| Default: | 0.0 |
|
| spwid |
| Spectral Window Ids (0 relative) to select
| |
| allowed: | intArray |
|
| Default: | 0 |
|
| fieldid |
| Field Ids (0 relative) to select
| |
| allowed: | intArray |
|
| Default: | 0 |
|
| msselect |
| TQL select string applied as a logical ”and” with the
other selections
| |
| allowed: | string |
|
| Default: |
|
|
| async |
| Run asynchronously in the background?
| |
| allowed: | bool |
|
| Default: | false |
|
Example
Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu
Copyright © 2008 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.