Changeset 1757 for branches/alma/src/STFrequencies.cpp
- Timestamp:
- 06/09/10 19:03:06 (14 years ago)
- Location:
- branches/alma
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alma
-
Property
svn:ignore
set to
.sconf_temp
.sconsign.dblite
-
Property
svn:mergeinfo
set to
/branches/asap-3.x merged eligible
-
Property
svn:ignore
set to
-
branches/alma/src/STFrequencies.cpp
r1603 r1757 170 170 **/ 171 171 SpectralCoordinate 172 asap::STFrequencies::getSpectralCoordinate( const MDirection& md,172 STFrequencies::getSpectralCoordinate( const MDirection& md, 173 173 const MPosition& mp, 174 174 const MEpoch& me, … … 242 242 { 243 243 Vector<Float> offset(1,0.0); 244 Vector<Float> factors(1, 1.0/width);244 Vector<Float> factors(1,width); 245 245 Vector<Int> newshape; 246 246 CoordinateSystem csys; … … 317 317 << rec.asDouble("REFVAL") << setw(7) 318 318 << rec.asDouble("REFPIX") 319 << setw(1 2)319 << setw(15) 320 320 << rec.asDouble("INCREMENT"); 321 321 } … … 324 324 int f = outstr.find_first_not_of(' '); 325 325 int l = outstr.find_last_not_of(' ', outstr.size()); 326 if (f < 0) { 327 f = 0; 328 } 329 if ( l < f || l < f ) { 326 if (f < 0) { 327 f = 0; 328 } 329 if ( l < f || l < f ) { 330 330 l = outstr.size(); 331 331 } … … 439 439 } 440 440 441 void STFrequencies::shiftRefPix(int npix, uInt id) 441 void STFrequencies::shiftRefPix(int npix, uInt id) 442 442 { 443 443 Table t = table_(table_.col("ID") == Int(id) );
Note: See TracChangeset
for help on using the changeset viewer.