field_arg_to_id

field_arg_to_id(ms_path: str, field_arg: str | int, all_fields) list[int][source]

Convert a string to the corresponding field IDs.

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

  • field_arg -- A field selection in CASA format.

  • all_fields -- All Field objects, for use when CASA msselect is not used.

Returns:

A list of field IDs.