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

Bug 1284: BeamName of the beam now corresponds with beam index.

parent 33ee7b2a
No related branches found
No related tags found
No related merge requests found
......@@ -300,7 +300,7 @@ string Observation::getAntennaArrayName(bool hasSplitters) const
//
string Observation::getBeamName(uint32 beamIdx) const
{
return (formatString("observation[%d]beam[%d]", obsID, beamIdx+1));
return (formatString("observation[%d]beam[%d]", obsID, beamIdx));
}
//
......@@ -362,6 +362,7 @@ ostream& Observation::print (ostream& os) const
os << "nrBeams : " << beams.size() << endl;
for (size_t i(0) ; i < beams.size(); i++) {
os << "Beam[" << i << "] name : " << getBeamName(i) << endl;
os << formatString("Beam[%d].pointing : %f, %f, %s\n", i, beams[i].angle1, beams[i].angle2, beams[i].directionType.c_str());
os << "Beam[" << i << "].subbandList: "; writeVector(os, beams[i].subbands, ",", "[", "]"); os << endl;
os << "Beam[" << i << "].beamletList: "; writeVector(os, beams[i].beamlets, ",", "[", "]"); os << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment