![]() |
VieSched++
VieVS VLBI Scheduling Software
|
representation of a VLBI scan More...
#include <Scan.h>
Classes | |
struct | ScanSequence |
specify custom scan sequence rules More... | |
Public Types | |
enum | ScanConstellation { ScanConstellation::single, ScanConstellation::subnetting } |
scan constellation type More... | |
enum | ScanType { ScanType::highImpact, ScanType::standard, ScanType::fillin, ScanType::astroCalibrator, ScanType::calibrator } |
scan type More... | |
Public Member Functions | |
bool | check () |
internal debugging function that checks if the number of pointing vectors is equal to nsta More... | |
Scan (std::vector< PointingVector > &pointingVectors, std::vector< unsigned int > &endOfLastScan, ScanType type) | |
constructor More... | |
Scan (std::vector< PointingVector > pv, ScanTimes times, std::vector< Observation > obs, ScanType type=Scan::ScanType::standard) | |
constructor More... | |
Scan (const boost::property_tree::ptree &ptree, Network &network, const SourceList &sourceList, ScanType type=Scan::ScanType::standard) | |
constructor based on property tree More... | |
void | setType (ScanType type) noexcept |
sets the scan type More... | |
const ScanTimes & | getTimes () const noexcept |
getter to get all scan times More... | |
ScanTimes & | referenceTime () noexcept |
referenct to all scan times More... | |
unsigned long | getNSta () const noexcept |
getter for number of stations More... | |
unsigned long | getStationId (int idx) const noexcept |
getter for station id for one index More... | |
unsigned long | getSourceId () const noexcept |
getter for source id More... | |
const PointingVector & | getPointingVector (int idx, Timestamp ts=Timestamp::start) const noexcept |
getter for pointing vector for an index More... | |
PointingVector & | referencePointingVector (int idx, Timestamp ts=Timestamp::start) noexcept |
reference to pointing vector for an index More... | |
double | getScore () const noexcept |
getter for the total score of this scan More... | |
ScanType | getType () const noexcept |
getter for scan type More... | |
ScanConstellation | getScanConstellation () const noexcept |
getter for scan constellation type More... | |
const Observation & | getObservation (int idx) const noexcept |
getter for a single observations More... | |
Observation & | refObservation (int idx) noexcept |
referemce to a single observations More... | |
Observation & | refObservation (unsigned long staid1, unsigned long staid2) |
referemce to a single observations More... | |
std::vector< Observation > & | refObservations () |
referemces to all observations More... | |
const std::vector< Observation > & | getObservations () const noexcept |
get all observations More... | |
bool | removeStation (int idx, const std::shared_ptr< const AbstractSource > &source) noexcept |
delete the pointing vector at position idx and all its corresponding times and observations More... | |
bool | removeObservation (int iobs, const std::shared_ptr< const AbstractSource > &source) noexcept |
delete the observation at position iobs from scan More... | |
boost::optional< unsigned long > | findIdxOfStationId (unsigned long id) const noexcept |
finds the index of an station id More... | |
void | addTimes (int idx, unsigned int fieldSystem, unsigned int slew, unsigned int preob) noexcept |
adds scan times More... | |
bool | constructObservations (const Network &network, const std::shared_ptr< const AbstractSource > &source) noexcept |
constructs all possible observations More... | |
bool | checkIdleTimes (std::vector< unsigned int > &maxIdle, const std::shared_ptr< const AbstractSource > &source) noexcept |
checks if the idle time is not too long More... | |
bool | calcObservationDuration (const Network &network, const std::shared_ptr< const AbstractSource > &source, const std::shared_ptr< const Mode > &mode) noexcept |
calculates the scan durations per observation More... | |
double | getAverageSNR (const Network &network, const std::shared_ptr< const AbstractSource > &source, const std::shared_ptr< const Mode > &mode) |
calculates the average SNR of all observations in this scan More... | |
bool | scanDuration (const Network &network, const std::shared_ptr< const AbstractSource > &source) noexcept |
calculates the total scan duration per station More... | |
std::vector< unsigned long > | getStationIds () const noexcept |
getter for all station ids More... | |
void | calcScore (const std::vector< double > &astas, const std::vector< double > &asrcs, const std::vector< double > &abls, unsigned int minTime, unsigned int maxTime, const Network &network, const std::shared_ptr< const AbstractSource > &source, bool subnetting, const std::vector< double > &idleScore) noexcept |
calculates the score of a scan More... | |
void | calcScore (const std::vector< double > &astas, const std::vector< double > &asrcs, const std::vector< double > &abls, unsigned int minTime, unsigned int maxTime, const Network &network, const std::shared_ptr< const AbstractSource > &source, std::unordered_map< unsigned long, double > &staids2skyCoverageScore, const std::vector< double > &idleScore) noexcept |
calculates the score of a scan More... | |
void | calcScore_subnetting (const std::vector< double > &astas, const std::vector< double > &asrcs, const std::vector< double > &abls, unsigned int minTime, unsigned int maxTime, const Network &network, const std::shared_ptr< const AbstractSource > &source, const std::unordered_map< unsigned long, double > &staids2skyCoverageScore, const std::vector< double > &idleScore) noexcept |
calculates the score of a scan More... | |
void | calcScore (unsigned int minTime, unsigned int maxTime, const Network &network, const std::shared_ptr< const AbstractSource > &source, double hiscore, bool subnetting) |
calc score for high impact scans More... | |
bool | calcScore (const std::vector< double > &prevLowElevationScores, const std::vector< double > &prevHighElevationScores, const Network &network, unsigned int minRequiredTime, unsigned int maxRequiredTime, const std::shared_ptr< const AbstractSource > &source, bool subnetting) |
calculates the score for a astrometric calibrator block scan More... | |
void | calcScoreCalibrator (const Network &network, const std::shared_ptr< const AbstractSource > &source, const std::vector< double > &astas, double meanSNR, unsigned int minRequiredTime, unsigned int maxRequiredTime) |
calculates the score for a calibrator block scan More... | |
bool | rigorousUpdate (Network &network, const std::shared_ptr< const AbstractSource > &source, const std::shared_ptr< const Mode > &mode, const boost::optional< StationEndposition > &endposition=boost::none) noexcept |
checks a scan with rigorous models More... | |
void | addTagalongStation (const PointingVector &pv_start, const PointingVector &pv_end, const std::vector< Observation > &observations, unsigned int slewtime, const Station &station) |
adds observation to scan in tagalong mode More... | |
boost::optional< Scan > | copyScan (const std::vector< unsigned long > &ids, const std::shared_ptr< const AbstractSource > &source) const noexcept |
makes a hard copy of a scan with all stations from parameter ids More... | |
unsigned long | getNObs () const noexcept |
getter for number of observations More... | |
unsigned long | getNObs (unsigned long staid) const noexcept |
getter for number of observations per station More... | |
void | setFixedScanDuration (unsigned int scanDuration) noexcept |
set fixed scan duration More... | |
void | output (unsigned long observed_scan_nr, const Network &network, const std::shared_ptr< const AbstractSource > &source, std::ofstream &of) const noexcept |
outputs information of this scan to the current console More... | |
bool | setScanTimes (const std::vector< unsigned int > &eols, const std::vector< unsigned int > &fieldSystemTime, const std::vector< unsigned int > &slewTime, const std::vector< unsigned int > &preob, unsigned int scanStart, const std::vector< unsigned int > &observingTimes) |
set scan times More... | |
bool | setScanTimes (const std::vector< unsigned int > &eols, const std::vector< unsigned int > &fieldSystemTime, const std::vector< unsigned int > &slewTime, const std::vector< unsigned int > &preob, const std::vector< unsigned int > &scanStart, const std::vector< unsigned int > &observingTimes) |
set scan times More... | |
void | setPointingVectorsEndtime (std::vector< PointingVector > pv_end) |
set pointing vector at scan end time More... | |
void | setObservations (std::vector< Observation > obs) |
sets observation vector More... | |
void | createDummyObservations (const Network &network) |
create dummy observations More... | |
void | setPointingVector (int idx, PointingVector pv, Timestamp ts) |
set pointing vector More... | |
void | removeUnnecessaryObservingTime (Network &network, const std::shared_ptr< const AbstractSource > &thisSource, std::ofstream &of, Timestamp ts) |
remove unnecessary observing time More... | |
void | removeAdditionalObservingTime (unsigned int time, const Station &thisSta, const std::shared_ptr< const AbstractSource > &thisSource, std::ofstream &of, Timestamp ts) |
remove additional observing time More... | |
void | updateObservingTime () |
updates the time of each observation according to the observing times of the station More... | |
bool | prepareForScanEnd (Network &network, const std::shared_ptr< const AbstractSource > &source, const std::shared_ptr< const Mode > &mode, unsigned int endTime) |
remove stations from scan whose observations last longer then session More... | |
std::string | getName (unsigned long indexOfThisScanInList, const std::vector< Scan > &otherScans) const |
get scan name in vex format More... | |
unsigned long | indexOfObservation (unsigned long staid1, unsigned long staid2) const |
check if a obseration betwen two stations is scheduled More... | |
std::string | toSkedOutputTimes (const std::shared_ptr< const AbstractSource > &source, unsigned long nMaxSta) const |
output observing duration in sked output format More... | |
void | includesStations (std::vector< char > &flag) const |
checks if station is participating and notes it in flag vector More... | |
boost::property_tree::ptree | toPropertyTree (const Network &network, const std::string &sourceName) const |
convert scan to property tree 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 Member Functions | |
static std::string | toString (ScanType type_) |
translates ScanType to string More... | |
static std::string | toString (ScanConstellation type_) |
translates ScanConstellation to string More... | |
static unsigned long | numberOfCreatedObjects () |
get total number of created scans More... | |
Static Public Attributes | |
static unsigned int | nScanSelections { 0 } |
number of selected main scans More... | |
static ScanSequence | scanSequence |
scan sequence rules More... | |
Private Member Functions | |
bool | rigorousSlewtime (Network &network, const std::shared_ptr< const AbstractSource > &source) noexcept |
scan constellation type More... | |
bool | rigorousTotalObservingDuration (Network &network, const std::shared_ptr< const AbstractSource > &source) noexcept |
rigorous total observing duration calculation More... | |
bool | rigorousScanStartTimeAlignment (Network &network, const std::shared_ptr< const AbstractSource > &source, const std::shared_ptr< const Mode > &mode) noexcept |
rigorous scan alignment More... | |
bool | rigorousScanVisibility (Network &network, const std::shared_ptr< const AbstractSource > &source, bool &stationRemoved) noexcept |
rigorous scan visibility More... | |
bool | rigorousScanCanReachEndposition (const Network &network, const std::shared_ptr< const AbstractSource > &thisSource, const boost::optional< StationEndposition > &endposition, bool &stationRemoved) |
rigorous check if scan can reach required endposition More... | |
bool | rigorousSunDistance (const Network &network, const std::shared_ptr< const AbstractSource > &thisSource) |
rigorous check if sun distance is large enough More... | |
bool | rigorousSourceVelocity (Network &network, const std::shared_ptr< const AbstractSource > &thisSource) |
rigorous check that source is not moving faster than antenna slew speed More... | |
double | calcScore_numberOfObservations (unsigned long maxObs) const noexcept |
calculates the score for number of observations More... | |
double | calcScore_averageBaselines (const std::vector< double > &abls) const noexcept |
calculates score for average baseline observations More... | |
double | calcScore_averageStations (const std::vector< double > &astas, unsigned long nMaxBls) const noexcept |
calculates score for average station observations More... | |
double | calcScore_averageSources (const std::vector< double > &asrcs, unsigned long nMaxBls) const noexcept |
calculates score for average source observations More... | |
double | calcScore_duration (unsigned long nMaxSta, unsigned int minTime, unsigned int maxTime) const noexcept |
calculates score for duration More... | |
double | calcScore_idleTime (const std::vector< double > &idleScore) const noexcept |
calculates score based on idle time More... | |
double | calcScore_closures (unsigned long nclosures_max, const std::shared_ptr< const AbstractSource > &source) const noexcept |
calculte score based on number of independent closure phases and amplitudes More... | |
double | weight_stations (const std::vector< Station > &stations) |
mean of the weight factors for each participating station More... | |
double | weight_baselines (const std::vector< Baseline > &baselines) |
mean of the weight factors for each participating baselines More... | |
double | calcScore_lowElevation (unsigned long nmaxsta) |
calculate score for low elevation scans More... | |
double | calcScore_lowDeclination (unsigned long nMaxObs) |
calculate score for low declination scans More... | |
double | calcScore_firstPart (const std::vector< double > &astas, const std::vector< double > &asrcs, const std::vector< double > &abls, unsigned int minTime, unsigned int maxTime, const Network &network, const std::shared_ptr< const AbstractSource > &source, bool subnetting, const std::vector< double > &idleScore) |
first part of score calculation More... | |
double | calcScore_secondPart (double this_score, const Network &network, const std::shared_ptr< const AbstractSource > &source, bool ignoreScanSequence=false) |
second part of score calculations More... | |
Private Attributes | |
unsigned long | nsta_ |
number of stations in this scan More... | |
unsigned long | srcid_ |
observed source id More... | |
double | score_ |
total score More... | |
ScanTimes | times_ |
time information More... | |
std::vector< PointingVector > | pointingVectorsStart_ |
pointing vectors at start of the scan More... | |
std::vector< PointingVector > | pointingVectorsEnd_ |
pointing vectors at end of the scan More... | |
std::vector< Observation > | observations_ |
all observed baselines More... | |
ScanType | type_ |
type of the scan More... | |
ScanConstellation | constellation_ |
Static Private Attributes | |
static unsigned long | nextId = 0 |
next id for this object type More... | |
representation of a VLBI scan
|
strong |
|
strong |
VieVS::Scan::Scan | ( | std::vector< PointingVector > & | pointingVectors, |
std::vector< unsigned int > & | endOfLastScan, | ||
ScanType | type | ||
) |
constructor
This constructor is used to create all single source scans
pointingVectors | all pointing vectors |
endOfLastScan | time information for endtime of last scan for each station in seconds since session start |
type | scan type |
VieVS::Scan::Scan | ( | std::vector< PointingVector > | pv, |
ScanTimes | times, | ||
std::vector< Observation > | obs, | ||
ScanType | type = Scan::ScanType::standard |
||
) |
constructor
This constructor is used to create subnetting scans if the information for each single source scan is already available
pv | all pointing vectors |
times | all scan times |
obs | all observations |
type | scan type (default = Scan::ScanType::standard) |
Scan::Scan | ( | const boost::property_tree::ptree & | ptree, |
Network & | network, | ||
const SourceList & | sourceList, | ||
Scan::ScanType | type = Scan::ScanType::standard |
||
) |
constructor based on property tree
void Scan::addTagalongStation | ( | const PointingVector & | pv_start, |
const PointingVector & | pv_end, | ||
const std::vector< Observation > & | observations, | ||
unsigned int | slewtime, | ||
const Station & | station | ||
) |
adds observation to scan in tagalong mode
pv_start | pointing vector at start time |
pv_end | pointing vector at end time |
observations | all observations |
slewtime | slew time in seconds |
station | tagalong station |
|
noexcept |
adds scan times
idx | index of element |
fieldSystem | field system time in seconds |
slew | slew time in seconds |
preob | calibration time in secons |
|
noexcept |
calculates the scan durations per observation
network | station network |
source | observed source |
mode | observing mode |
|
noexcept |
calculates the score of a scan
usually used for single scan sources
astas | precalculated vector of average station score |
asrcs | precalculated vector of average source score |
abls | precalculated vector of average baseline score |
minTime | minimum time required for a scan in seconds |
maxTime | maximum time required for a scan in seconds |
network | station network |
source | observed source |
subnetting | subnetting flag |
idleScore | precalculated vector of extra scores due to long idle time |
|
noexcept |
calculates the score of a scan
usually used for single scan sources
astas | precalculated vector of average station score |
asrcs | precalculated vector of average source score |
abls | precalculated vector of average baselines score |
minTime | minimum time required for a scan in seconds |
maxTime | maximum time required for a scan in seconds |
network | station network |
source | observed source |
staids2skyCoverageScore | stores the score of each pointing vector |
idleScore | precalculated vector of extra scores due to long idle time |
void Scan::calcScore | ( | unsigned int | minTime, |
unsigned int | maxTime, | ||
const Network & | network, | ||
const std::shared_ptr< const AbstractSource > & | source, | ||
double | hiscore, | ||
bool | subnetting | ||
) |
calc score for high impact scans
minTime | minimum time required for a scan in seconds |
maxTime | maximum time required for a scan in seconds |
network | station network |
source | observed source |
hiscore | high impact score |
subnetting | subnetting flag |
bool Scan::calcScore | ( | const std::vector< double > & | prevLowElevationScores, |
const std::vector< double > & | prevHighElevationScores, | ||
const Network & | network, | ||
unsigned int | minRequiredTime, | ||
unsigned int | maxRequiredTime, | ||
const std::shared_ptr< const AbstractSource > & | source, | ||
bool | subnetting | ||
) |
calculates the score for a astrometric calibrator block scan
prevLowElevationScores | score for previouse low elevation scans |
prevHighElevationScores | score for previouse high elevation scans |
network | station network |
minRequiredTime | minimum time required for a scan in seconds |
maxRequiredTime | maximum time required for a scan in seconds |
source | observed source |
subnetting | subnetting flag |
|
privatenoexcept |
calculates score for average baseline observations
abls | precalculated vector of average baseline observations |
|
privatenoexcept |
calculates score for average source observations
asrcs | precalculated vector of average source observations |
nMaxBls | maximum possible number of baselines |
|
privatenoexcept |
calculates score for average station observations
astas | precalculated vector of average station observations |
nMaxBls | maximum possible number of baselines |
|
privatenoexcept |
calculte score based on number of independent closure phases and amplitudes
nclosures_max | number of theoretically possible independent closure phases and amplitudes |
source | observed source |
|
privatenoexcept |
calculates score for duration
nMaxSta | number of stations in network |
minTime | minimum time required for a scan in seconds |
maxTime | maximum time required for a scan in seconds |
|
private |
first part of score calculation
mainly additive scores
astas | precalculated vector of average station observations |
asrcs | precalculated vector of average source observations |
abls | precalculated vector of average baseline observations |
minTime | minimum time required for a scan in seconds |
maxTime | maximum time required for a scan in seconds |
network | station network |
source | observed source |
subnetting | subnetting flag |
idleScore | precalculated vector of extra scores due to long idle time |
|
privatenoexcept |
calculates score based on idle time
idleScore | precalculated vector of extra scores due to long idle time |
|
private |
calculate score for low declination scans
nMaxObs | maximum number of possible observations in network |
|
private |
calculate score for low elevation scans
nmaxsta | number of stations in network |
|
privatenoexcept |
calculates the score for number of observations
maxObs | maximum possible number of observations |
|
private |
second part of score calculations
mainly multiplicative scores
this_score | current score |
network | station network |
source | observed source |
ignoreScanSequence | ignore scan sequence in score calculation |
|
noexcept |
calculates the score of a scan
usually used for subnetting sources. This is for improved runtime because the skyCoverage score for each pointing vector already exists.
astas | precalculated vector of average station score |
asrcs | precalculated vector of average source score |
abls | precalculated vector of average baseline score |
minTime | minimum time required for a scan in seconds |
maxTime | maximum time required for a scan in seconds |
network | station network |
source | observed source |
staids2skyCoverageScore | stored score for each pointing vector |
idleScore | precalculated vector of extra scores due to long idle time |
void Scan::calcScoreCalibrator | ( | const Network & | network, |
const std::shared_ptr< const AbstractSource > & | source, | ||
const std::vector< double > & | astas, | ||
double | meanSNR, | ||
unsigned int | minRequiredTime, | ||
unsigned int | maxRequiredTime | ||
) |
calculates the score for a calibrator block scan
network | station network |
source | observed source |
astas | precalculated vector of average station score |
meanSNR | average SNR |
minRequiredTime | minimum time required for a scan in seconds |
maxRequiredTime | maximum time required for a scan in seconds |
|
inline |
internal debugging function that checks if the number of pointing vectors is equal to nsta
Usually unused
|
noexcept |
checks if the idle time is not too long
this function removes stations whichs idle times is too long. The order of the station pointing vectors must be the same as the order of the max Idle parameter.
maxIdle | maximum allowed idle time |
source | observed source |
|
noexcept |
constructs all possible observations
source | observed source |
|
noexcept |
makes a hard copy of a scan with all stations from parameter ids
ids | ids of all stations which should be copied |
source | observed source |
void Scan::createDummyObservations | ( | const Network & | network | ) |
create dummy observations
network | station network |
|
noexcept |
finds the index of an station id
id | station id |
double Scan::getAverageSNR | ( | const Network & | network, |
const std::shared_ptr< const AbstractSource > & | source, | ||
const std::shared_ptr< const Mode > & | mode | ||
) |
calculates the average SNR of all observations in this scan
network | station network |
source | observed source |
mode | observing mode |
string Scan::getName | ( | unsigned long | indexOfThisScanInList, |
const std::vector< Scan > & | otherScans | ||
) | const |
get scan name in vex format
Scan name is based on observation start. If two scans start at same time a suffix is added to distinguish the scans.
indexOfThisScanInList | index of this scan in scan list |
otherScans | list of all other scans |
|
inlinenoexcept |
getter for number of observations
|
noexcept |
getter for number of observations per station
staid | station id |
|
inlinenoexcept |
getter for number of stations
|
inlinenoexcept |
getter for a single observations
idx | index of observation |
|
inlinenoexcept |
get all observations
|
inlinenoexcept |
getter for pointing vector for an index
idx | index of required pointing vector |
ts | time stamp flag |
|
inlinenoexcept |
getter for scan constellation type
|
inlinenoexcept |
getter for the total score of this scan
|
inlinenoexcept |
getter for source id
|
inlinenoexcept |
getter for station id for one index
idx | index of required station id |
|
noexcept |
getter for all station ids
|
inlinenoexcept |
getter to get all scan times
|
inlinenoexcept |
getter for scan type
void Scan::includesStations | ( | std::vector< char > & | flag | ) | const |
checks if station is participating and notes it in flag vector
flag | flag lists which stations were found |
unsigned long Scan::indexOfObservation | ( | unsigned long | staid1, |
unsigned long | staid2 | ||
) | const |
check if a obseration betwen two stations is scheduled
staid1 | first station id |
staid2 | second station id |
|
inlinestatic |
get total number of created scans
|
noexcept |
outputs information of this scan to the current console
observed_scan_nr | scan number |
network | station network |
source | observed source |
of | outstream file object |
bool Scan::prepareForScanEnd | ( | Network & | network, |
const std::shared_ptr< const AbstractSource > & | source, | ||
const std::shared_ptr< const Mode > & | mode, | ||
unsigned int | endTime | ||
) |
remove stations from scan whose observations last longer then session
network | station network |
source | observed source |
mode | observing mode |
endTime | session end time |
|
inlinenoexcept |
reference to pointing vector for an index
idx | index of required pointing vector |
ts | time stamp flag |
|
inlinenoexcept |
referenct to all scan times
|
inlinenoexcept |
referemce to a single observations
idx | index of observation |
Observation & Scan::refObservation | ( | unsigned long | staid1, |
unsigned long | staid2 | ||
) |
referemce to a single observations
staid1 | station id 1 |
staid2 | station id 2 |
|
inline |
referemces to all observations
void Scan::removeAdditionalObservingTime | ( | unsigned int | time, |
const Station & | thisSta, | ||
const std::shared_ptr< const AbstractSource > & | thisSource, | ||
std::ofstream & | of, | ||
Timestamp | ts | ||
) |
remove additional observing time
deprecated! use removeUnnecessaryObservingTime() instead
time | time |
thisSta | station |
thisSource | observed source |
of | outfile stream |
ts | time stamp flag |
|
noexcept |
delete the observation at position iobs from scan
If a station has no longer any observations it gets removed
iobs | index of observation |
source | observed source |
|
noexcept |
delete the pointing vector at position idx and all its corresponding times and observations
If a scan no longer has enough stations or the number of baselines will get zero, it gets invalid.
idx | index of element to delete |
source | observed source |
void Scan::removeUnnecessaryObservingTime | ( | Network & | network, |
const std::shared_ptr< const AbstractSource > & | thisSource, | ||
std::ofstream & | of, | ||
Timestamp | ts | ||
) |
remove unnecessary observing time
network | station network |
thisSource | observed source |
of | outfile stream |
ts | time stamp flag |
|
private |
rigorous check if scan can reach required endposition
network | station network |
thisSource | observed source |
endposition | required endposition |
stationRemoved | flag if a station got removed |
|
privatenoexcept |
rigorous scan alignment
network | station network |
source | observed source |
mode | observing mode |
|
privatenoexcept |
rigorous scan visibility
network | station network |
source | observed source |
stationRemoved | flag if a station got removed |
|
privatenoexcept |
scan constellation type
rigorous slew time calculation
network | station network |
source | observed source |
|
private |
rigorous check that source is not moving faster than antenna slew speed
network | station network |
thisSource | observed source |
|
private |
rigorous check if sun distance is large enough
network | station network |
thisSource | observed source |
|
privatenoexcept |
rigorous total observing duration calculation
network | station network |
source | observed source |
|
noexcept |
checks a scan with rigorous models
network | station network |
source | observed source |
mode | observing mode |
endposition | required endposition |
|
noexcept |
calculates the total scan duration per station
removes stations if the scan duration is longer than the maximum allowed scan duration
network | station network |
source | observed source |
|
noexcept |
set fixed scan duration
scanDuration | scan duration in seconds |
|
inline |
sets observation vector
obs | observations |
void Scan::setPointingVector | ( | int | idx, |
PointingVector | pv, | ||
Timestamp | ts | ||
) |
set pointing vector
idx | index of pointing vector |
pv | new pointing vector |
ts | time stamp flag |
void Scan::setPointingVectorsEndtime | ( | std::vector< PointingVector > | pv_end | ) |
set pointing vector at scan end time
pv_end | pointing vector at scan end time |
bool Scan::setScanTimes | ( | const std::vector< unsigned int > & | eols, |
const std::vector< unsigned int > & | fieldSystemTime, | ||
const std::vector< unsigned int > & | slewTime, | ||
const std::vector< unsigned int > & | preob, | ||
unsigned int | scanStart, | ||
const std::vector< unsigned int > & | observingTimes | ||
) |
set scan times
eols | end of last scan per station |
fieldSystemTime | field system time per station |
slewTime | slew time per station |
preob | calibration time per station |
scanStart | scan start time |
observingTimes | observing time per station |
bool VieVS::Scan::setScanTimes | ( | const std::vector< unsigned int > & | eols, |
const std::vector< unsigned int > & | fieldSystemTime, | ||
const std::vector< unsigned int > & | slewTime, | ||
const std::vector< unsigned int > & | preob, | ||
const std::vector< unsigned int > & | scanStart, | ||
const std::vector< unsigned int > & | observingTimes | ||
) |
set scan times
eols | end of last scan per station |
fieldSystemTime | field system time per station |
slewTime | slew time per station |
preob | calibration time per station |
scanStart | scan start time per station |
observingTimes | observing time per station |
|
inlinenoexcept |
sets the scan type
type | new scan type |
boost::property_tree::ptree Scan::toPropertyTree | ( | const Network & | network, |
const std::string & | sourceName | ||
) | const |
convert scan to property tree
This function is used by the GUI
network | station network |
sourceName | source name |
std::string Scan::toSkedOutputTimes | ( | const std::shared_ptr< const AbstractSource > & | source, |
unsigned long | nMaxSta | ||
) | const |
output observing duration in sked output format
source | observedSource |
nMaxSta | maximum number of station |
|
inlinestatic |
translates ScanType to string
|
inlinestatic |
translates ScanConstellation to string
void Scan::updateObservingTime | ( | ) |
updates the time of each observation according to the observing times of the station
|
private |
mean of the weight factors for each participating baselines
|
private |
mean of the weight factors for each participating station
stations | list of all stations |
|
private |
|
staticprivate |
next id for this object type
|
static |
number of selected main scans
|
private |
number of stations in this scan
|
private |
all observed baselines
|
private |
pointing vectors at end of the scan
|
private |
pointing vectors at start of the scan
|
static |
scan sequence rules
|
private |
total score
|
private |
observed source id
|
private |
time information
|
private |
type of the scan