channelSelectionRangesToIndexArray

Return to directory of Todd's CASA extensions

Convert a channel selection range string to integer array of channels. See also countChannels, countChannelsInRanges, and invertChannelRanges.

Usage:

au.channelSelectionRangesToIndexArray(selection, separator=';')

Example:

CASA <2>: au.channelSelectionRangesToIndexArray('3~9;14~16')
  Out[2]: array([ 3,  4,  5,  6,  7,  8,  9, 14, 15, 16])

-- ToddHunter - 2016-03-16

This topic: ALMA > TWikiUsers > ToddHunter > CasaExtensions > ChannelSelectionRangesToIndexArray
Topic revision: 2016-03-16, 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