|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
sd.scantable.set_selection - Function
5.1.2 Select a subset of the data
Description
Select a subset of the data. All following operations on this scantable are only
applied to the selection.
The selection can be done via a selector object (default unset the selection), or any combination of ”pols”, ”ifs”, ”beams”, ”scans”, ”cycles”, ”name”, ”query”, ”types” that will be passed to the constructor of the selector object to create a new selection.
Arguments
Inputs |
| ||
selection |
| A selector object
| |
| allowed: | selector |
|
| Default: | None |
|
Example
sel = sd.selector() # create a selection object
self.set_scans([0, 3]) # select SCANNO 0 and 3
scan.set_selection(sel) # set the selection
scan.summary() # will only print summary of scanno 0 an 3
scan.set_selection() # unset the selection
# or the equivalent
scan.set_selection(scans=[0,3])
scan.summary() # will only print summary of scanno 0 an 3
scan.set_selection() # unset the selection
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