Changeset 288


Ignore:
Timestamp:
01/24/05 17:54:41 (19 years ago)
Author:
kil064
Message:

track changes to SDMemTable interfgace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMath.cc

    r272 r288  
    136136   MDoppler::getType(doppler, dopplerStr);
    137137
    138 // Decide on alignment Epoch
    139 
    140138// Do it
    141139
     
    572570  for (uInt j=0; j<in.nCoordinates(); ++j) {
    573571    CoordinateSystem cSys;
    574     cSys.addCoordinate(in.getCoordinate(j));
     572    cSys.addCoordinate(in.getSpectralCoordinate(j));
    575573    CoordinateSystem cSysBin =
    576574      CoordinateUtil::makeBinnedCoordinateSystem(factors, cSys, False);
     
    11431141      refEpoch = epochFromString(refTime, in.getTimeReference());
    11441142   } else {
    1145       Quantum<Double> tQ(times[0], DAY);
    1146       MVEpoch mve(tQ);
    1147       refEpoch = MEpoch(mve, epochRef);
     1143      refEpoch = in.getEpoch(0);
    11481144   }
    11491145   cerr << "Aligning at reference Epoch " << formatEpoch(refEpoch) << endl;
     
    11511147// Set Reference Position
    11521148
    1153    Vector<Double> antPos = sh.antennaposition;
    1154    MVPosition mvpos(antPos[0], antPos[1], antPos[2]);
    1155    MPosition refPos(mvpos);
     1149   MPosition refPos = in.getAntennaPosition();
    11561150
    11571151// Get Frequency Table
     
    11651159   PtrBlock<VelocityAligner<Float>* > vA(nFreqIDs*nSrcTab);
    11661160   for (uInt fqID=0; fqID<nFreqIDs; fqID++) {
    1167       SpectralCoordinate sC = in.getCoordinate(fqID);
     1161      SpectralCoordinate sC = in.getSpectralCoordinate(fqID);
    11681162      for (uInt iSrc=0; iSrc<nSrcTab; iSrc++) {
    11691163         MDirection refDir = in.getDirection(firstRow[iSrc]);
Note: See TracChangeset for help on using the changeset viewer.