- Timestamp:
- 07/02/13 10:38:18 (11 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STMath.cpp
r2695 r2818 2781 2781 MVTime mvt(refEpoch.getValue()); 2782 2782 String epochout = mvt.string(MVTime::YMD) + String(" (") + refEpoch.getRefString() + String(")"); 2783 os << "Align edat reference Epoch " << epochout2783 os << "Aligning at reference Epoch " << epochout 2784 2784 << " in frame " << MFrequency::showType(system) << LogIO::POST; 2785 2785 // set up the iterator … … 2795 2795 while ( !iter.pastEnd() ) { 2796 2796 Table t = iter.table(); 2797 ROScalarColumn<String> snCol(t, "SRCNAME"); 2798 os << "Aligning to position of source '" << snCol(0) << "'" << LogIO::POST; 2797 2799 MDirection::ROScalarColumn dirCol(t, "DIRECTION"); 2798 2800 TableIterator fiter(t, "FREQ_ID"); 2799 2801 // determine nchan from the first row. This should work as 2800 // we are iterating over BEAMNO and IFNO // we should have constant direction 2802 // we are iterating over BEAMNO and IFNO 2803 // we should have constant direction 2801 2804 2802 2805 ROArrayColumn<Float> sCol(t, "SPECTRA"); … … 2813 2816 ScalarColumn<uInt> freqidCol(ftab, "FREQ_ID"); 2814 2817 // get the SpectralCoordinate for the freqid, which we are iterating over 2815 SpectralCoordinate sC = in->frequencies().getSpectralCoordinate(freqidCol(0)); 2818 SpectralCoordinate sC = \ 2819 in->frequencies().getSpectralCoordinate(freqidCol(0)); 2816 2820 FrequencyAligner<Float> fa( sC, nchan, refEpoch, 2817 2821 direction, refPos, system ); … … 2826 2830 sc2.increment()[0]); 2827 2831 while ( !fiter.pastEnd() ) { 2832 2828 2833 ftab = fiter.table(); 2829 2834 // spectral coordinate for the current FREQ_ID -
trunk/src/Scantable.cpp
r2813 r2818 180 180 table_ = TableCopy::makeEmptyMemoryTable(newname, 181 181 other.table_, True); 182 } else 182 } else { 183 183 table_ = other.table_.copyToMemoryTable(newname); 184 } 184 185 } else { 185 186 other.table_.deepCopy(newname, Table::New, False, … … 450 451 TableVector<Int> tabvec(table_, "SRCTYPE"); 451 452 tabvec = Int(stype); 453 } 454 455 void Scantable::setSourceName( const std::string& name ) 456 { 457 TableVector<String> tabvec(table_, "SRCNAME"); 458 tabvec = name; 452 459 } 453 460 -
trunk/src/Scantable.h
r2811 r2818 155 155 void setSourceType(int stype); 156 156 157 /** 158 * 159 * @param stype The name of the source 160 */ 161 void setSourceName(const std::string& name); 162 157 163 158 164 /** … … 387 393 388 394 //std::string getTime(int whichrow=-1, bool showdate=true) const; 389 std::string getTime(int whichrow=-1, bool showdate=true, casa::uInt prec=0) const; 395 std::string getTime(int whichrow=-1, bool showdate=true, 396 casa::uInt prec=0) const; 390 397 double getIntTime(int whichrow) const { return integrCol_(whichrow); } 391 398 … … 668 675 669 676 std::string formatTime(const casa::MEpoch& me, bool showdate)const; 670 std::string formatTime(const casa::MEpoch& me, bool showdate, casa::uInt prec)const; 677 std::string formatTime(const casa::MEpoch& me, bool showdate, 678 casa::uInt prec)const; 671 679 672 680 /** -
trunk/src/ScantableWrapper.h
r2811 r2818 188 188 { table_->setSourceType(stype); } 189 189 190 void setSourceName(const std::string& name) 191 { table_->setSourceName(name); } 192 190 193 void shift(int npix) 191 194 { table_->shift(npix); } -
trunk/src/python_Scantable.cpp
r2791 r2818 137 137 .def("_recalcazel", &ScantableWrapper::calculateAZEL) 138 138 .def("_setsourcetype", &ScantableWrapper::setSourceType) 139 .def("_setsourcename", &ScantableWrapper::setSourceName) 139 140 .def("_getdirectionvec", &ScantableWrapper::getDirectionVector) 140 141 .def("_parallactify", &ScantableWrapper::parallactify)
Note:
See TracChangeset
for help on using the changeset viewer.