NRAO Home > CASA > CASA Toolkit Reference Manual
sd.simplelinefinder.invertChannelSelection - Function

5.1.7 Invert channel range selection
Description

This method converts a tuple with channel ranges to a tuple which covers all channels not selected by the original tuple (optionally edge channels can be discarded).

Note, at this stage channel ranges are assumed to be sorted and without overlap.

Arguments





Inputs

nchan

number of channels in the spectrum

allowed:

integer

Default:

chans

list of start and stop channels for all selected ranges

allowed:

tuple

Default:

edge

how many channels to reject from the edge of spectrum

allowed:

integer or tuple

Default:

(0,0)





Returns
tuple with inverted channel selection

Example


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