CalToIdAdapter¶
- class CalToIdAdapter(context: Context, calto: CalTo)[source]
Bases:
objectCalToIdAdapter is an adapter class for CalTo that return some of its attributes as lists of IDs/names, instead of as the CASA-style string argument.
Attributes Summary
antennaReturn IDs of antennas to which the calibrations apply as a list of integers.
fieldReturn fields to which the calibrations apply as a list of names or integer IDs.
intentReturn the intents to which the calibrations apply.
msReturn the MeasurementSet object (from context) that the CalTo applies to.
spwReturn spectral windows IDs to which the calibrations apply.
Methods Summary
get_field_intents(field_id, spw_id)Return set of intents that are common to CalTo, given field(s), and given spectral window(s).
Attributes Documentation
- antenna
Return IDs of antennas to which the calibrations apply as a list of integers.
- field
Return fields to which the calibrations apply as a list of names or integer IDs.
- intent
Return the intents to which the calibrations apply.
- ms
Return the MeasurementSet object (from context) that the CalTo applies to.
- spw
Return spectral windows IDs to which the calibrations apply.
Methods Documentation
- get_field_intents(field_id: int | str, spw_id: int | str) set[str][source]
Return set of intents that are common to CalTo, given field(s), and given spectral window(s).