![]() |
VieSched++
VieVS VLBI Scheduling Software
|
observing modes More...
#include <ObservingMode.h>
Public Types | |
enum | Property { Property::required, Property::optional } |
all possible flux information type More... | |
enum | Backup { Backup::minValueTimes, Backup::maxValueTimes, Backup::internalModel, Backup::value, Backup::none } |
all possible backup models More... | |
enum | Type { Type::simple, Type::sked, Type::custom } |
observing mode types More... | |
Public Member Functions | |
ObservingMode () | |
constructor More... | |
ObservingMode (const boost::property_tree::ptree &tree, const std::vector< std::string > &staNames) | |
constructor More... | |
void | setStationNames (const std::vector< std::string > &names) |
set station names More... | |
void | readFromSkedCatalogs (const SkdCatalogReader &skd) |
read observin mode from sked catalogs More... | |
boost::property_tree::ptree | toPropertytree () const |
converts object to property tree More... | |
void | simpleMode (unsigned long nsta, double samplerate, unsigned int bits, const std::unordered_map< std::string, unsigned int > &band2channel, const std::unordered_map< std::string, double > &band2wavelength, double efficiencyFactor=-1) |
add observing mode from simple manual model More... | |
void | addMode (const std::shared_ptr< const Mode > &newMode) |
add new observing mode More... | |
void | addBlock (const std::shared_ptr< const If > &newIf) |
add IF block More... | |
void | addBlock (const std::shared_ptr< const Bbc > &newBbc) |
add BBC block More... | |
void | addBlock (const std::shared_ptr< const Freq > &newFreq) |
add FREQ block More... | |
void | addBlock (const std::shared_ptr< const Track > &newTrack) |
add TRACKS block More... | |
void | addBlock (const std::string &newTrackFrameFormat) |
add track frame format More... | |
const std::shared_ptr< const Mode > & | getMode (unsigned long id) const |
get MODE block More... | |
void | toVexModeBlock (std::ofstream &of) const |
write MODE section in vex format More... | |
void | toVexFreqBlock (std::ofstream &of) const |
write FREQ section in vex format More... | |
void | toVexBbcBlock (std::ofstream &of) const |
write BBC section in vex format More... | |
void | toVexIfBlock (std::ofstream &of) const |
write IF section in vex format More... | |
void | toVexTracksBlock (std::ofstream &of) const |
write FREQ section in vex format More... | |
void | summary (std::ofstream &of) const |
write observing mode summary More... | |
void | operationNotesSummary (std::ofstream &of) const |
write observing mode summary for operation notes More... | |
void | calcMeanFrequencies () |
calculate mean frequencies More... | |
void | addDummyBands (const std::map< std::string, std::vector< double >> &band) |
add bands manually More... | |
const std::vector< std::string > & | getStationNames () const |
getter for all station names More... | |
const std::vector< std::shared_ptr< const Mode > > & | getModes () const |
getter for all MODE blocks More... | |
const std::vector< std::shared_ptr< const If > > & | getIfs () const |
getter for all IF blocks More... | |
const std::vector< std::shared_ptr< const Bbc > > & | getBbcs () const |
getter for all BBC blocks More... | |
const std::vector< std::shared_ptr< const Freq > > & | getFreqs () const |
getter for all FREQ blocks More... | |
const std::vector< std::shared_ptr< const Track > > & | getTracks () const |
getter for all TRACKS blocks More... | |
const std::vector< std::shared_ptr< const std::string > > & | getTrackFrameFormats () const |
getter for all track frame formats More... | |
std::shared_ptr< const Mode > | getModePerIndex (int idx) |
get MODE block per index More... | |
std::shared_ptr< const Freq > | getFreqPerIndex (int idx) |
get FREQ block per index More... | |
std::shared_ptr< const Bbc > | getBbcPerIndex (int idx) |
get BBC block per index More... | |
std::shared_ptr< const If > | getIfPerIndex (int idx) |
get IF block per index More... | |
std::shared_ptr< const Track > | getTracksPerIndex (int idx) |
get TRACKS block per index More... | |
![]() | |
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 Attributes | |
static Type | type = VieVS::ObservingMode::Type::simple |
flag if manual observation mode was selected More... | |
static std::unordered_map< std::string, double > | minSNR |
minimum signal to noise ration per band More... | |
static std::unordered_map< std::string, Property > | stationProperty |
is band required or optional for station More... | |
static std::unordered_map< std::string, Backup > | stationBackup |
backup version for station More... | |
static std::unordered_map< std::string, double > | stationBackupValue |
backup value for station More... | |
static std::unordered_map< std::string, Property > | sourceProperty |
is band required or optional for source More... | |
static std::unordered_map< std::string, Backup > | sourceBackup |
backup version for source More... | |
static std::unordered_map< std::string, double > | sourceBackupValue |
backup value for source More... | |
static std::set< std::string > | bands |
list of all observed bands More... | |
static std::unordered_map< std::string, double > | wavelengths |
backup wavelength for commonly used bands More... | |
Private Member Functions | |
void | readSkdFreq (const std::shared_ptr< Mode > &mode, const SkdCatalogReader &skd, const std::map< int, std::pair< int, Freq::Net_sideband >> &channelNr2Bbc) |
create FREQ block from skd catalogs More... | |
std::map< int, std::pair< int, Freq::Net_sideband > > | readSkdTracks (const std::shared_ptr< Mode > &mode, const SkdCatalogReader &skd) |
create TRACKS block from skd catalogs More... | |
void | readSkdIf (const std::shared_ptr< Mode > &mode, const SkdCatalogReader &skd) |
create IF block from skd catalogs More... | |
void | readSkdBbc (const std::shared_ptr< Mode > &mode, const SkdCatalogReader &skd) |
create BBC block from skd catalogs More... | |
void | readSkdTrackFrameFormat (const std::shared_ptr< Mode > &mode, const SkdCatalogReader &skd) |
create track frame format from skd catalogs More... | |
void | toTrackFrameFormatDefinitions (std::ofstream &of) const |
create track frame format blocks in vex format More... | |
std::vector< unsigned long > | getStationIds (const boost::property_tree::ptree &tree) |
get list of station ids from property tree More... | |
Private Attributes | |
std::vector< std::string > | stationNames_ |
station names More... | |
std::vector< std::shared_ptr< const Mode > > | modes_ |
list of all MODE blocks More... | |
std::vector< std::shared_ptr< const If > > | ifs_ |
list of all IF blocks More... | |
std::vector< std::shared_ptr< const Bbc > > | bbcs_ |
list of all BBC blocks More... | |
std::vector< std::shared_ptr< const Freq > > | freqs_ |
list of all FREQ blocks More... | |
std::vector< std::shared_ptr< const Track > > | tracks_ |
list of all TRACKs blocks More... | |
std::vector< std::shared_ptr< const std::string > > | trackFrameFormats_ |
list of all track frame formats More... | |
Static Private Attributes | |
static unsigned long | nextId = 0 |
next id for this object type More... | |
observing modes
following vex standard
|
strong |
all possible backup models
|
strong |
|
strong |
ObservingMode::ObservingMode | ( | ) |
constructor
ObservingMode::ObservingMode | ( | const boost::property_tree::ptree & | tree, |
const std::vector< std::string > & | staNames | ||
) |
constructor
tree | input property tree from xml file |
staNames | station names |
|
inline |
add IF block
newIf | IF block |
|
inline |
add BBC block
newBbc | BBC block |
|
inline |
add FREQ block
newFreq | FREQ block |
|
inline |
add TRACKS block
newTrack | TRACKS block |
|
inline |
add track frame format
newTrackFrameFormat | track frame format |
void ObservingMode::addDummyBands | ( | const std::map< std::string, std::vector< double >> & | band | ) |
add bands manually
band | list of bands and frequencies |
|
inline |
add new observing mode
newMode | new observing mode |
void ObservingMode::calcMeanFrequencies | ( | ) |
calculate mean frequencies
|
inline |
get BBC block per index
This function is used for setting up manual observing mode in the GUI
idx | index of requried block |
|
inline |
getter for all BBC blocks
This function is used for setting up manual observing mode in the GUI
|
inline |
get FREQ block per index
This function is used for setting up manual observing mode in the GUI
idx | index of requried block |
|
inline |
getter for all FREQ blocks
This function is used for setting up manual observing mode in the GUI
|
inline |
get IF block per index
This function is used for setting up manual observing mode in the GUI
idx | index of requried block |
|
inline |
getter for all IF blocks
This function is used for setting up manual observing mode in the GUI
|
inline |
get MODE block
id |
|
inline |
get MODE block per index
This function is used for setting up manual observing mode in the GUI
idx | index of requried block |
|
inline |
getter for all MODE blocks
This function is used for setting up manual observing mode in the GUI
|
private |
get list of station ids from property tree
tree | input property tree |
|
inline |
getter for all station names
This function is used for setting up manual observing mode in the GUI
|
inline |
getter for all track frame formats
This function is used for setting up manual observing mode in the GUI
|
inline |
getter for all TRACKS blocks
This function is used for setting up manual observing mode in the GUI
|
inline |
get TRACKS block per index
This function is used for setting up manual observing mode in the GUI
idx | index of requried block |
void ObservingMode::operationNotesSummary | ( | std::ofstream & | of | ) | const |
write observing mode summary for operation notes
of | operation Nnotes file stream |
void ObservingMode::readFromSkedCatalogs | ( | const SkdCatalogReader & | skd | ) |
read observin mode from sked catalogs
skd | sked catalog reader |
|
private |
create BBC block from skd catalogs
mode | MODE block |
skd | skd catalogs |
|
private |
create FREQ block from skd catalogs
mode | MODE block |
skd | skd catalogs |
channelNr2Bbc | channel number to bbc |
|
private |
create IF block from skd catalogs
mode | MODE block |
skd | skd catalogs |
|
private |
create track frame format from skd catalogs
mode | MODE block |
skd | skd catalogs |
|
private |
create TRACKS block from skd catalogs
mode | MODE block |
skd | skd catalogs |
|
inline |
set station names
names | list of station names |
void ObservingMode::simpleMode | ( | unsigned long | nsta, |
double | samplerate, | ||
unsigned int | bits, | ||
const std::unordered_map< std::string, unsigned int > & | band2channel, | ||
const std::unordered_map< std::string, double > & | band2wavelength, | ||
double | efficiencyFactor = -1 |
||
) |
add observing mode from simple manual model
nsta | number of stations |
samplerate | sample rate |
bits | sampling bits |
band2channel | band name to number of channels |
band2wavelength | band name to wavelength |
efficiencyFactor | recording efficiency factor (use -1 for internal calculation) |
void ObservingMode::summary | ( | std::ofstream & | of | ) | const |
write observing mode summary
of | output file stream |
boost::property_tree::ptree ObservingMode::toPropertytree | ( | ) | const |
converts object to property tree
|
private |
create track frame format blocks in vex format
of | vex file stream |
void ObservingMode::toVexBbcBlock | ( | std::ofstream & | of | ) | const |
write BBC section in vex format
of | vex file stream |
void ObservingMode::toVexFreqBlock | ( | std::ofstream & | of | ) | const |
write FREQ section in vex format
of | vex file stream |
void ObservingMode::toVexIfBlock | ( | std::ofstream & | of | ) | const |
write IF section in vex format
of | vex file stream |
void ObservingMode::toVexModeBlock | ( | std::ofstream & | of | ) | const |
write MODE section in vex format
of | vex file stream |
void ObservingMode::toVexTracksBlock | ( | std::ofstream & | of | ) | const |
write FREQ section in vex format
of | vex file stream |
|
static |
list of all observed bands
|
private |
list of all BBC blocks
|
private |
list of all FREQ blocks
|
private |
list of all IF blocks
|
static |
minimum signal to noise ration per band
backup min SNR
|
private |
list of all MODE blocks
|
staticprivate |
next id for this object type
|
static |
backup version for source
|
static |
backup value for source
|
static |
is band required or optional for source
|
static |
backup version for station
|
static |
backup value for station
|
private |
station names
|
static |
is band required or optional for station
|
private |
list of all track frame formats
|
private |
list of all TRACKs blocks
|
static |
flag if manual observation mode was selected
|
static |
backup wavelength for commonly used bands