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

5.1.7 Convert supplied velocity range into the channel range
Description

A helper method which works on a tuple with abcissa/flux vectors (i.e. as returned by uvSpectrum). It allows to convert supplied velocity range into the channel range.

The argument spc specifies abcissa/flux vectors as tuple. First and second elements of the tuple should be abcissa value and spectrum itself, respectively. The argument vel_range must be 2-element tuple that indicates start and stop velocity of range.

Note, if supplied range is completely outside the spectrum, an empty tuple will be returned.

Arguments





Inputs

tuple with the abcissa and spectrum
spc

allowed:

tuple

Default:

vel_range

a 2-element tuple with start and stop velocity of the range

allowed:

tuple

Default:





Returns
a 2-element tuple with channels

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