chan_selection_to_frequencies¶
- chan_selection_to_frequencies(img, selection, unit='GHz')[source]¶
Convert channel selection to frequency tuples for a given CASA cube.
- Parameters:
img (str) -- CASA cube name
selection (str) -- Channel selection string using CASA selection syntax
unit (str) -- Frequency unit
- Returns:
List of pairs of frequency values (float) in the desired units
- Return type:
list[float] | list[str]