findChannel

Return to directory of Todd's CASA extensions

Given a CASA cube and a channel, this function finds the nearest frequency channel in a second cube. See also numberOfChannelsInCube.

Usage:

au.findChannel(img, channel, img2)

Example:

CASA <2>: au.findChannel('HLTau_CO1_0.tap200klR0.5_0.5kms_ms_flgbig.image',0,'HLTau_CO1_0.tap200klR0.5_0.25kms_ms_flgbig.image')
*** reffreqtype in get before 
*** reffreqtype in get LSRK
Channel  0 = 115272353510 Hz
Channel 55 = 115261779668 Hz
*** reffreqtype in get before 
*** reffreqtype in get LSRK
Channel  0 = 115273507020 Hz
Channel 135 = 115260530032 Hz
channel =  11.9999999395
  Out[2]: 12

-- ToddHunter - 2015-01-09
Topic revision: r1 - 2015-01-09, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback