Class MHO_DiFXChannelNameConstructor.
More...
#include <MHO_DiFXChannelNameConstructor.hh>
|
| | MHO_DiFXChannelNameConstructor () |
| |
| virtual | ~MHO_DiFXChannelNameConstructor () |
| |
| void | AddBandLabel (std::string band_label, double freq_low, double freq_high) |
| | Adds a frequency range for a specific band label. More...
|
| |
| void | AddChannelNames (mho_json &vex_root) |
| | Adds channel names to VEX experiment data based on scan and mode information. More...
|
| |
| void | SetGlobalSkyFreqGrid (const std::vector< double > &grid_MHz, double tol=MHO_SkyFreqGrid::DEFAULT_TOL_MHZ) |
| | Provide a precomputed global sky-frequency grid (MHz, sorted ascending, deduped). When set, AddChannelNames uses this grid for chidx assignment (instead of building one per-station from chan_defs) and drops any chan_def whose sky_freq isn't in the grid. This is what keeps chan_def.channel_name in lockstep with the chan_ids MHO_DiFXBaselineProcessor writes into mark4 t101 records. More...
|
| |
| void | SetScanName (std::string scan_id) |
| | Setter for scan name if the (o)vex file has more than one scan, we may want to specify a specific one in order to construct the channel names, otherwise, we will just use the first in the schedule (assumes there is not later change to channel setup) More...
|
| |
Class MHO_DiFXChannelNameConstructor.
Name channels in a vex object, according to the d2m4 convention. Needed in order to convert vex to ovex.
- Author
- J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du
- Date
- Tue Jul 12 16:54:42 2022 -0400
◆ MHO_DiFXChannelNameConstructor()
| hops::MHO_DiFXChannelNameConstructor::MHO_DiFXChannelNameConstructor |
( |
| ) |
|
◆ ~MHO_DiFXChannelNameConstructor()
| hops::MHO_DiFXChannelNameConstructor::~MHO_DiFXChannelNameConstructor |
( |
| ) |
|
|
virtual |
◆ AddBandLabel()
| void hops::MHO_DiFXChannelNameConstructor::AddBandLabel |
( |
std::string |
band_label, |
|
|
double |
freq_low, |
|
|
double |
freq_high |
|
) |
| |
Adds a frequency range for a specific band label.
- Parameters
-
| band_label | Band label as string |
| freq_low | Lower frequency limit in Hz |
| freq_high | Upper frequency limit in Hz |
◆ AddChannelNames()
| void hops::MHO_DiFXChannelNameConstructor::AddChannelNames |
( |
mho_json & |
vex_root | ) |
|
Adds channel names to VEX experiment data based on scan and mode information.
- Parameters
-
| vex_root | Reference to the root JSON object containing VEX experiment data |
◆ SetGlobalSkyFreqGrid()
Provide a precomputed global sky-frequency grid (MHz, sorted ascending, deduped). When set, AddChannelNames uses this grid for chidx assignment (instead of building one per-station from chan_defs) and drops any chan_def whose sky_freq isn't in the grid. This is what keeps chan_def.channel_name in lockstep with the chan_ids MHO_DiFXBaselineProcessor writes into mark4 t101 records.
- Parameters
-
| grid_MHz | Sorted, deduped sky frequencies in MHz |
| tol | Match tolerance in MHz (default 0.001) |
◆ SetScanName()
| void hops::MHO_DiFXChannelNameConstructor::SetScanName |
( |
std::string |
scan_id | ) |
|
|
inline |
Setter for scan name if the (o)vex file has more than one scan, we may want to specify a specific one in order to construct the channel names, otherwise, we will just use the first in the schedule (assumes there is not later change to channel setup)
- Parameters
-
| scan_id | New scan ID to set |
The documentation for this class was generated from the following files: