Skip to content
Snippets Groups Projects
Commit fcd03903 authored by Ruud Overeem's avatar Ruud Overeem
Browse files

Bug 1000:

Added stationlist to Observation Class.
parent ccc23c4b
No related branches found
No related tags found
No related merge requests found
...@@ -62,6 +62,7 @@ public: ...@@ -62,6 +62,7 @@ public:
int16 nyquistZone; int16 nyquistZone;
vector<int16> subbands; vector<int16> subbands;
vector<int16> beamlets; vector<int16> beamlets;
vector<string> stations;
int32 sampleClock; int32 sampleClock;
string filter; string filter;
string antennaArray; string antennaArray;
......
...@@ -56,7 +56,7 @@ uint16 stationRingNr(); // 0..99; 0 = error ...@@ -56,7 +56,7 @@ uint16 stationRingNr(); // 0..99; 0 = error
uint16 stationArmNr(); // 0..5 ; 0 = error uint16 stationArmNr(); // 0..5 ; 0 = error
int16 stationTypeValue(); //-1..2 : for resp. error, CS, RS, ES int16 stationTypeValue(); //-1..2 : for resp. error, CS, RS, ES
string stationTypeStr(); // "", CS, RS, ES string stationTypeStr(); // "", CS, RS, ES
string PVSSDatabaseName(); // hostname w/o CUtype string PVSSDatabaseName(const string& someName = ""); // hostname w/o CUtype
string realHostname(const string& someName); // adds 'C' when it is missing. string realHostname(const string& someName); // adds 'C' when it is missing.
......
...@@ -92,6 +92,14 @@ Observation::Observation(ParameterSet* aParSet) : ...@@ -92,6 +92,14 @@ Observation::Observation(ParameterSet* aParSet) :
beamlets = blParset.getInt16Vector("x"); beamlets = blParset.getInt16Vector("x");
} }
if (aParSet->isDefined(prefix+"VirtualInstrument.stationList")) {
string stString("x=" + APLUtilities::expandedArrayString(
aParSet->getString(prefix+"VirtualInstrument.stationList")));
ParameterSet stParset;
stParset.adoptBuffer(stString);
stations = stParset.getStringVector("x");
}
if (aParSet->isDefined(prefix+"bandFilter")) { if (aParSet->isDefined(prefix+"bandFilter")) {
filter = aParSet->getString(prefix+"bandFilter"); filter = aParSet->getString(prefix+"bandFilter");
} }
......
...@@ -114,9 +114,12 @@ string stationTypeStr() ...@@ -114,9 +114,12 @@ string stationTypeStr()
// //
// PVSSDatabaseName // PVSSDatabaseName
// //
string PVSSDatabaseName() string PVSSDatabaseName(const string& someName)
{ {
string hostname(myHostname(false)); string hostname(someName);
if (hostname.empty()) {
hostname = myHostname(false);
}
// hostname is like <stationtype><arm><ring><CUtype> // hostname is like <stationtype><arm><ring><CUtype>
// where CUtype = C or W // where CUtype = C or W
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment