Changeset 1411 for trunk/src


Ignore:
Timestamp:
01/31/08 15:16:14 (17 years ago)
Author:
Malte Marquarding
Message:

added getEpoch member function

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r1391 r1411  
    862862  }
    863863  return formatTime(me, showdate);
     864}
     865
     866MEpoch Scantable::getEpoch(int whichrow) const
     867{
     868  if (whichrow > -1) {
     869    return timeCol_(uInt(whichrow));
     870  } else {
     871    Double tm;
     872    table_.keywordSet().get("UTC",tm);
     873    return MEpoch(MVEpoch(tm)); 
     874  }
    864875}
    865876
  • trunk/src/Scantable.h

    r1391 r1411  
    153153  casa::MEpoch::Types getTimeReference() const;
    154154
     155
     156  casa::MEpoch getEpoch(int whichrow) const;
     157
    155158  /**
    156159   * Get global antenna position
Note: See TracChangeset for help on using the changeset viewer.