Changeset 2629 for trunk/src


Ignore:
Timestamp:
08/07/12 18:03:48 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: test_sdgrid

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Several fixes about R.A. distribution.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STGrid.cpp

    r2594 r2629  
    11741174    direction.assign( directionCol_.getColumn() ) ;
    11751175    //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 ) ;
    11761179    minMax( amin, amax, direction.row( 0 ) ) ;
    11771180    minMax( bmin, bmax, direction.row( 1 ) ) ;
     
    13431346  flagtraCol_.getColumnCells( rows, flagtra ) ;
    13441347  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 ) ;
    13451351  flagRowCol_.getColumnCells( rows, rflagVec ) ;
    13461352  intervalCol_.getColumnCells( rows, tintVec ) ;
     
    15351541  Double *wp_p = p_p ;
    15361542  for ( uInt i = 0 ; i < nrow ; i++ ) {
    1537     *wp_p = pixc[0] + ( *ww_p - center_[0] ) / cellx_ ;
     1543    *wp_p = pixc[0] + ( *ww_p - center_[0] ) / cos( center_[1] ) / cellx_ ;
    15381544    wp_p++ ;
    15391545    ww_p++ ;
Note: See TracChangeset for help on using the changeset viewer.