|
HOPS
HOPS class reference
|
Public Member Functions | |
| def | __init__ (self, dict pass_dict) |
| str | __repr__ (self) |
| str | baseline (self) |
| bool | baseline_match (self, str b) |
| str | fgroup (self) |
| bool | fgroup_match (self, str fg) |
| str | polprod (self) |
| str | ref_station (self) |
| str | rem_station (self) |
| bool | scan_after (self, str scan) |
| bool | scan_before (self, str scan) |
| bool | scan_between (self, str lo, str hi) |
| str | scan_name (self) |
| str | source (self) |
| bool | source_match (self, str src) |
| bool | station (self, str s) |
Static Public Attributes | |
| string | WILDCARD = "?" |
Immutable description of the fringe pass (single-baseline, single-polproduct) being processed. Constructed by ``MHO_PyControlEvaluator`` from the C++ parameter store and passed as the first argument to the user's ``configure()`` function. The *pass_dict* must contain these keys (all strings): * ``baseline`` - full baseline string, e.g. ``"EG"`` or ``"Gs-Wf"`` * ``ref_mk4id`` - single-character Mk4 ref-station code, e.g. ``"E"`` * ``rem_mk4id`` - single-character Mk4 rem-station code, e.g. ``"G"`` * ``ref_code`` - canonical ref-station code (e.g. ``Gs``) * ``rem_code`` - canonical rem-station code (e.g. ``Wf``) * ``source`` - source name, e.g. ``"3C279"`` * ``fgroup`` - frequency-group character, e.g. ``"X"`` * ``scan_name`` - scan name / time string used for ordering comparisons * ``polprod`` - polarization product, e.g. ``"RR"``
| str hops_control.pass_info.PassInfo.__repr__ | ( | self | ) |
| str hops_control.pass_info.PassInfo.baseline | ( | self | ) |
Full baseline string (e.g. ``"EG"`` or ``"Gs-Wf"``).
| bool hops_control.pass_info.PassInfo.baseline_match | ( | self, | |
| str | b | ||
| ) |
Return True if *b* matches the current baseline. *b* may be: * A 2-character Mk4 baseline (e.g. ``"EG"``). * A long-form baseline with ``-`` separator (e.g. ``"Gs-Wf"``). * A wildcard pattern using ``"?"`` for either station.
| str hops_control.pass_info.PassInfo.fgroup | ( | self | ) |
Frequency-group character.
| bool hops_control.pass_info.PassInfo.fgroup_match | ( | self, | |
| str | fg | ||
| ) |
Return True if *fg* equals the current frequency group (or is ``"?"``).
| str hops_control.pass_info.PassInfo.polprod | ( | self | ) |
Polarization product (e.g. ``"RR"``).
| str hops_control.pass_info.PassInfo.ref_station | ( | self | ) |
Single-character Mk4 ID of the reference station.
| str hops_control.pass_info.PassInfo.rem_station | ( | self | ) |
Single-character Mk4 ID of the remote station.
| bool hops_control.pass_info.PassInfo.scan_after | ( | self, | |
| str | scan | ||
| ) |
Return True if the current scan name is lexicographically *after* *scan*.
| bool hops_control.pass_info.PassInfo.scan_before | ( | self, | |
| str | scan | ||
| ) |
Return True if the current scan name is lexicographically *before* *scan*.
| bool hops_control.pass_info.PassInfo.scan_between | ( | self, | |
| str | lo, | ||
| str | hi | ||
| ) |
Return True if the scan name falls in [*lo*, *hi*] (inclusive).
| str hops_control.pass_info.PassInfo.scan_name | ( | self | ) |
Scan name / time string.
| str hops_control.pass_info.PassInfo.source | ( | self | ) |
Source name.
| bool hops_control.pass_info.PassInfo.source_match | ( | self, | |
| str | src | ||
| ) |
Return True if *src* equals the current source name (or is ``"?"``).
| bool hops_control.pass_info.PassInfo.station | ( | self, | |
| str | s | ||
| ) |
Return True if *s* matches the reference or remote station (or is the wildcard ``"?"``). Single-character *s* is matched against Mk4 station IDs. Multi-character *s* is matched against canonical station names.
|
static |