Changeset 2630
- Timestamp:
- 08/07/12 18:18:26 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STGrid.cpp
r2629 r2630 1084 1084 // os << "xmin=" << xmin << LogIO::POST ; 1085 1085 // os << "center_=" << center_ << LogIO::POST ; 1086 1086 decCorr_ = 1.0 / cos( center_[1] ) ; 1087 1087 1088 1088 nx_ = nx ; … … 1143 1143 cellx_ = qcellx.getValue( "rad" ) ; 1144 1144 // DEC correction 1145 cellx_ /= cos( center_[1] );1145 cellx_ *= decCorr_ ; 1146 1146 celly_ = qcelly.getValue( "rad" ) ; 1147 1147 //os << "cellx_=" << cellx_ << ", celly_=" << celly_ << ", cos("<<center_(1)<<")=" << cos(center_(1)) << LogIO::POST ; … … 1541 1541 Double *wp_p = p_p ; 1542 1542 for ( uInt i = 0 ; i < nrow ; i++ ) { 1543 *wp_p = pixc[0] + ( *ww_p - center_[0] ) / cos( center_[1] )/ cellx_ ;1543 *wp_p = pixc[0] + ( *ww_p - center_[0] ) * decCorr_ / cellx_ ; 1544 1544 wp_p++ ; 1545 1545 ww_p++ ;
Note:
See TracChangeset
for help on using the changeset viewer.