drs4.cal package#

drs4.cal.set_gain(ms: Dataset | PathLike[str] | str | None = None, /, *, chassis: Literal[1, 2] | None = None, interface: Literal[1, 2] | None = None, ones: bool = False, zeros: bool = False, ctrl_addr: str | None = None, ctrl_user: str | None = None, timeout: float | None = None, workdir: PathLike[str] | str | None = None) None[source]#

Set a gain file (DRS4 MS file) to DRS4.

Parameters:
  • ms – Path of input gain file (DRS4 MS file) or gain Dataset itself.

  • chassis – Chassis number of DRS4 (1|2). If not specified, the gain file will be applied to both chasses.

  • interface – Interface number of DRS4 (1|2). If not specified, the gain file will be applied to both interfaces.

  • zeros – If True, the zero-filled gain will be applied. It cannot be used with an input gain file nor ones.

  • ones – If True, the one-filled gain will be applied. It cannot be used with an input gain file nor zeros.

  • ctrl_addr – IP address of DRS4. If not specified, environment variable DRS4_CHASSIS[1|2]_CTRL_ADDR will be used.

  • ctrl_user – User name of DRS4. If not specified, environment variable DRS4_CHASSIS[1|2]_CTRL_USER will be used.

  • timeout – Timeout of the connection and the running in seconds.

  • workdir – Working directory where an intermediate file will be put.

Submodules#