- Timestamp:
- 07/04/14 17:25:35 (10 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r2968 r2969 483 483 }; 484 484 485 std::string Scantable::formatDirection(const MDirection& md) const485 std::string Scantable::formatDirection(const MDirection& md, Int prec) const 486 486 { 487 487 Vector<Double> t = md.getAngle(Unit(String("rad"))).getValue(); 488 Int prec = 7; 488 if (prec<0) 489 prec = 7; 489 490 490 491 String ref = md.getRefString(); … … 1174 1175 meanIntTim = sum(intervalCol.getColumn()) / (double) snrow; 1175 1176 minMax(btime, etime, mjdCol.getColumn()); 1176 etime += meanIntTim/C::day; 1177 double shiftInDay(0.5*meanIntTim/C::day); 1178 btime -= shiftInDay; 1179 etime += shiftInDay; 1177 1180 1178 1181 // MOLECULE_ID and FREQ_ID … … 1279 1282 << std::left << setw(1) << "" 1280 1283 << setw(15) << rec.asString("SRCNAME") 1281 << setw(21) << MVTime(btime).string(MVTime::YMD, 7)1282 << setw(3) << " - " << MVTime(etime).string(MVTime::TIME, 7)1284 << setw(21) << MVTime(btime).string(MVTime::YMD,8) 1285 << setw(3) << " - " << MVTime(etime).string(MVTime::TIME,8) 1283 1286 << setw(3) << "" << setw(6) << meanIntTim << setw(1) << "" 1284 1287 << std::right << setw(5) << snrow << setw(2) << "" … … 1289 1292 for (uInt j=0; j < nbeam; j++) { 1290 1293 oss << setw(7) << "" << setw(6) << beamids(j) << setw(1) << "" 1291 << formatDirection(beamDirs(j) ) << endl;1294 << formatDirection(beamDirs(j),9) << endl; 1292 1295 } 1293 1296 // Flush summary every scan and clear up the string -
trunk/src/Scantable.h
r2888 r2969 692 692 * Turns a casa::MDirection into a nicely formatted string 693 693 * @param md an casa::MDirection 694 * @param prec output precision of direction 694 695 * @return 695 696 */ 696 std::string formatDirection(const casa::MDirection& md ) const;697 std::string formatDirection(const casa::MDirection& md, casa::Int prec=7) const; 697 698 698 699 /**
Note:
See TracChangeset
for help on using the changeset viewer.