Changeset 2629
- Timestamp:
- 08/07/12 18:03:48 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STGrid.cpp
r2594 r2629 1174 1174 direction.assign( directionCol_.getColumn() ) ; 1175 1175 //os << "dirCol.nrow() = " << dirCol.nrow() << LogIO::POST ; 1176 // to make contiguous RA distribution (no 2pi jump) 1177 Vector<Double> ra( direction.row(0) ) ; 1178 mathutil::rotateRA( ra ) ; 1176 1179 minMax( amin, amax, direction.row( 0 ) ) ; 1177 1180 minMax( bmin, bmax, direction.row( 1 ) ) ; … … 1343 1346 flagtraCol_.getColumnCells( rows, flagtra ) ; 1344 1347 directionCol_.getColumnCells( rows, direction ) ; 1348 // to make contiguous RA distribution (no 2pi jump) 1349 Vector<Double> v( Matrix<Double>(direction).row(0) ) ; 1350 mathutil::rotateRA( v ) ; 1345 1351 flagRowCol_.getColumnCells( rows, rflagVec ) ; 1346 1352 intervalCol_.getColumnCells( rows, tintVec ) ; … … 1535 1541 Double *wp_p = p_p ; 1536 1542 for ( uInt i = 0 ; i < nrow ; i++ ) { 1537 *wp_p = pixc[0] + ( *ww_p - center_[0] ) / c ellx_ ;1543 *wp_p = pixc[0] + ( *ww_p - center_[0] ) / cos( center_[1] ) / cellx_ ; 1538 1544 wp_p++ ; 1539 1545 ww_p++ ;
Note:
See TracChangeset
for help on using the changeset viewer.