- Timestamp:
- 01/24/05 17:54:41 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMath.cc
r272 r288 136 136 MDoppler::getType(doppler, dopplerStr); 137 137 138 // Decide on alignment Epoch139 140 138 // Do it 141 139 … … 572 570 for (uInt j=0; j<in.nCoordinates(); ++j) { 573 571 CoordinateSystem cSys; 574 cSys.addCoordinate(in.get Coordinate(j));572 cSys.addCoordinate(in.getSpectralCoordinate(j)); 575 573 CoordinateSystem cSysBin = 576 574 CoordinateUtil::makeBinnedCoordinateSystem(factors, cSys, False); … … 1143 1141 refEpoch = epochFromString(refTime, in.getTimeReference()); 1144 1142 } else { 1145 Quantum<Double> tQ(times[0], DAY); 1146 MVEpoch mve(tQ); 1147 refEpoch = MEpoch(mve, epochRef); 1143 refEpoch = in.getEpoch(0); 1148 1144 } 1149 1145 cerr << "Aligning at reference Epoch " << formatEpoch(refEpoch) << endl; … … 1151 1147 // Set Reference Position 1152 1148 1153 Vector<Double> antPos = sh.antennaposition; 1154 MVPosition mvpos(antPos[0], antPos[1], antPos[2]); 1155 MPosition refPos(mvpos); 1149 MPosition refPos = in.getAntennaPosition(); 1156 1150 1157 1151 // Get Frequency Table … … 1165 1159 PtrBlock<VelocityAligner<Float>* > vA(nFreqIDs*nSrcTab); 1166 1160 for (uInt fqID=0; fqID<nFreqIDs; fqID++) { 1167 SpectralCoordinate sC = in.get Coordinate(fqID);1161 SpectralCoordinate sC = in.getSpectralCoordinate(fqID); 1168 1162 for (uInt iSrc=0; iSrc<nSrcTab; iSrc++) { 1169 1163 MDirection refDir = in.getDirection(firstRow[iSrc]);
Note:
See TracChangeset
for help on using the changeset viewer.