field_arg_to_id

field_arg_to_id(ms_path, field_arg, all_fields)[source]

Convert a string to the corresponding field IDs.

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

  • field_arg (str | int) -- 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.

Return type:

list[int]