![]() |
VieSched++
VieVS VLBI Scheduling Software
|
IF section of observing mode. More...
#include <If.h>


Classes | |
| class | If_def |
| IF definition. More... | |
Public Types | |
| enum | Polarization { Polarization::R, Polarization::L, Polarization::X, Polarization::Y, Polarization::H, Polarization::V, Polarization::undefined } |
| polarization types More... | |
| enum | Net_sidband { Net_sidband::U, Net_sidband::L, Net_sidband::D, Net_sidband::undefined } |
| net sideband types More... | |
Public Member Functions | |
| If (std::string name) | |
| constructor More... | |
| If (const boost::property_tree::ptree &tree) | |
| constructor More... | |
| void | addIf (std::string name, std::string physical_name, Polarization polarization, double total_lo, Net_sidband net_sidband, double phase_cal_freq_spacing, double phase_cal_base_freqency) |
| define new IF More... | |
| boost::property_tree::ptree | toPropertytree () const |
| converts object to property tree More... | |
| void | toVecIfDefinition (std::ofstream &of, const std::string &comment="") const |
| writes If block in vex format More... | |
| const std::vector< If_def > & | getIf_defs () const |
| get IF definitions More... | |
| std::vector< If_def > & | refIf_defs () |
| reference IF definitions More... | |
Public Member Functions inherited from VieVS::VieVS_NamedObject | |
| VieVS_NamedObject (std::string name, unsigned long id) | |
| constructor More... | |
| VieVS_NamedObject (std::string name, std::string alternativeName, unsigned long id) | |
| constructor More... | |
| const std::string & | getName () const |
| get object name More... | |
| const std::string & | getAlternativeName () const |
| get object alternative name More... | |
| bool | hasAlternativeName () const |
| check if object has alternative name More... | |
| bool | hasName (const std::string &name) const |
| check if object has name More... | |
| void | changeName (const std::string &newName) |
| change name of object More... | |
Public Member Functions inherited from VieVS::VieVS_Object | |
| VieVS_Object (unsigned long id) | |
| constructor More... | |
| const unsigned long | getId () const |
| get object id More... | |
| bool | hasValidId () const |
| check if id is valid More... | |
| bool | hasId (unsigned long id) const |
| check if object has specific id More... | |
| void | setId (unsigned long id) |
| set object id More... | |
| std::string | printId () const |
| object id string More... | |
Static Public Member Functions | |
| static std::string | toString (Polarization p) |
| converts polarization to vex format string More... | |
| static Polarization | polarizationFromString (const std::string &s) |
| convert vex format string to polarization type More... | |
| static std::string | toString (Net_sidband n) |
| converts net sideband type to vex format string More... | |
| static Net_sidband | netSidebandFromString (const std::string &s) |
| convert vex format string to net sideband type More... | |
Private Attributes | |
| std::vector< If_def > | if_defs_ |
| list of IF definitions More... | |
Static Private Attributes | |
| static unsigned long | nextId = 0 |
| next id for this object type More... | |
IF section of observing mode.
following vex standard The $IF block defines the characteristics of the IF bands used in the observations and is linked to the $BBC block (which specifies the detailed BBC-to-IF connections). An if_def statement must be defined for each of the IF 'links' specified in the selected $BBC 'def'.
|
strong |
|
strong |
|
explicit |
constructor
| name | IF block name |

|
explicit |
constructor
| tree | input property tree from xml file |
| void If::addIf | ( | std::string | name, |
| std::string | physical_name, | ||
| If::Polarization | polarization, | ||
| double | total_lo, | ||
| If::Net_sidband | net_sidband, | ||
| double | phase_cal_freq_spacing, | ||
| double | phase_cal_base_freqency | ||
| ) |
define new IF
| name | 'IF_ID' link word |
| physical_name | Physical IF name |
| polarization | Polarization |
| total_lo | Total effective LO of IF (just before signal enters BBC or sampler) |
| net_sidband | Net sideband of IF |
| phase_cal_freq_spacing | Phase-cal frequency interval |
| phase_cal_base_freqency | Phase-cal base frequency |

|
inline |
get IF definitions
necessary for custom observing mode in GUI
|
inlinestatic |
convert vex format string to net sideband type
| s | net sideband name in vex format |


|
inlinestatic |
convert vex format string to polarization type
| s | name in vex format |

|
inline |
reference IF definitions
necessary for custom observing mode in GUI
| boost::property_tree::ptree If::toPropertytree | ( | ) | const |
converts object to property tree


|
inlinestatic |
converts polarization to vex format string
| p | polarization type |

|
inlinestatic |
converts net sideband type to vex format string
| n | net sideband type |
| void If::toVecIfDefinition | ( | std::ofstream & | of, |
| const std::string & | comment = "" |
||
| ) | const |
writes If block in vex format
| of | vex file stream |
| comment | optional comment |


|
private |
list of IF definitions
|
staticprivate |
next id for this object type