|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
regionmanager.selectedchannels - Function
1.1.2 Get an array of zero-based selected channel numbers from an input string
specificaiton.
Description
This method returns all the selected zero-based channel numbers from the
specified string within the image.
Arguments
Inputs |
| ||
specification |
| Valid channel specification. See help par.chans for
examples.
| |
| allowed: | string |
|
| Default: |
|
|
shape |
| Image shape. Used to determine if the specificaiton lies
outside the image.
| |
| allowed: | intArray |
|
| Default: | 0 |
|
intArray
Example
ia.fromshape("",[20,20,20])
rg.setcoordinates(ia.coordsys().torecord())
selected_channels = rg.selectedchannels(specification="range=[40km/s,50km/s]", shape=ia.shape())
ia.done()
__________________________________________________________________
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