spw_arg_to_id¶
- spw_arg_to_id(ms_path, spw_arg, all_spws)[source]¶
Convert a string to spectral window IDs and channels.
- Parameters:
ms_path (str) -- A path to the measurement set.
spw_arg (str | int) -- A spw selection in CASA format.
all_spws -- List of all SpectralWindow objects, for use when CASA msselect is not used.
- Returns:
A list of (spw, chan_start, chan_end, step) lists.
- Return type:
list[tuple[int, int, int, int]]