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


next up previous contents index
Next: modelmanager - Tool Up: selectionmanager - Tool Previous: selectionmanager - Constructor


selectionmanager.selection - Function



Package synthesis
Module map
Tool selectionmanager


Create a selection data item


Synopsis
selection(freqsel, fieldnames, spwids, uvrange, msselect)


Arguments

freqsel Frequency/velocity selection
Allowed: Freqsel
Default: unset
fieldnames Selected field names
Allowed: Vector of Strings
Default: unset
spwids Selected spectral window id.'s
Allowed: Vector of Ints
Default: unset
uvrange UV range (in klambda) (e.g. [0, 50])
Allowed: Vector of Doubles
Default: 0
msselect General MS selection
Allowed: String
Default: unset


Returns
selection data item
or fail



Description

This function creates a selection data item from set of selection criteria. The individual selection criteria are combined by a logical AND to form the total selection.



Example
myfq:= freqselmanager();
freqsel1:= myfq.channel(nchan=64, start=4, step=1);
mysm:= selectionmanager();
item1:= mysm.selection(freqsel=freqsel1, fieldnames=['3C84','3C273'],
   spwids=[1,2], msselect="ANTENNA1==4");

Create a selection data item item1 representing: i) frequency channel selection of 64 channels, starting at channel 4 and stepping by 1 channel; ii) for the field names '3C273' and '3C84'; iii) for spectral window id.'s 1 and 2; and iv) for all data for which the first antenna on the baseline is antenna 4. All spectral window and antenna id.'s are 1-relative, as are all MS indices in the msselect parameter.








next up previous contents index
Next: modelmanager - Tool Up: selectionmanager - Tool Previous: selectionmanager - Constructor   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-10-15