freq_selection_to_channels

freq_selection_to_channels(img: str, selection: str) list[int] | list[str][source]

Convert frequency selection to channel tuples for a given CASA cube.

Parameters:
  • img -- CASA cube name

  • selection -- Frequency selection string using CASA syntax

Returns:

List of pairs of channel values (int)