spw_arg_to_id

spw_arg_to_id(ms_path: str, spw_arg: str | int, all_spws) list[tuple[int, int, int, int]][source]

Convert a string to spectral window IDs and channels.

Parameters:
  • ms_path -- A path to the measurement set.

  • spw_arg -- 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.