Changeset 2438


Ignore:
Timestamp:
03/19/12 18:37:40 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2816

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: sdgrid unit test

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

  • bug fix on IFNO specification
  • changed category for messages for performance to DEBUG
  • default width for Gaussian kernel is changed to 1


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STGrid.cpp

    r2426 r2438  
    413413  selectData() ;
    414414  t1 = mathutil::gettimeofday_sec() ;
    415   os << "selectData: elapsed time is " << t1-t0 << " sec." << LogIO::POST ;
     415  os << LogIO::DEBUGGING << "selectData: elapsed time is " << t1-t0 << " sec." << LogIO::POST ;
    416416
    417417  setupGrid() ;
     
    646646  setConvFunc( common.convFunc ) ;
    647647  t1 = mathutil::gettimeofday_sec() ;
    648   os << "setConvFunc: elapsed time is " << t1-t0 << " sec." << LogIO::POST ;
     648  os << LogIO::DEBUGGING << "setConvFunc: elapsed time is " << t1-t0 << " sec." << LogIO::POST ;
    649649
    650650  // for performance check
     
    687687    os << "end table " << ifile << LogIO::POST ;   
    688688  }
    689   os << "initPol: elapsed time is " << eInitPol << " sec." << LogIO::POST ;
    690   os << "getData: elapsed time is " << eGetData_-eToInt-eGetWeight << " sec." << LogIO::POST ;
    691   os << "toPixel: elapsed time is " << eToPixel_ << " sec." << LogIO::POST ;
    692   os << "ggridsd: elapsed time is " << eGGridSD_ << " sec." << LogIO::POST ;
    693   os << "toInt: elapsed time is " << eToInt << " sec." << LogIO::POST ;
    694   os << "getWeight: elapsed time is " << eGetWeight << " sec." << LogIO::POST ;
     689  os << LogIO::DEBUGGING << "initPol: elapsed time is " << eInitPol << " sec." << LogIO::POST ;
     690  os << LogIO::DEBUGGING << "getData: elapsed time is " << eGetData_-eToInt-eGetWeight << " sec." << LogIO::POST ;
     691  os << LogIO::DEBUGGING << "toPixel: elapsed time is " << eToPixel_ << " sec." << LogIO::POST ;
     692  os << LogIO::DEBUGGING << "ggridsd: elapsed time is " << eGGridSD_ << " sec." << LogIO::POST ;
     693  os << LogIO::DEBUGGING << "toInt: elapsed time is " << eToInt << " sec." << LogIO::POST ;
     694  os << LogIO::DEBUGGING << "getWeight: elapsed time is " << eGetWeight << " sec." << LogIO::POST ;
    695695 
    696696  delete chanMap ;
     
    796796  setConvFunc( common.convFunc ) ;
    797797  t1 = mathutil::gettimeofday_sec() ;
    798   os << "setConvFunc: elapsed time is " << t1-t0 << " sec." << LogIO::POST ;
     798  os << LogIO::DEBUGGING << "setConvFunc: elapsed time is " << t1-t0 << " sec." << LogIO::POST ;
    799799
    800800  // for performance check
     
    837837    os << "end table " << ifile << LogIO::POST ;   
    838838  }
    839   os << "initPol: elapsed time is " << eInitPol << " sec." << LogIO::POST ;
    840   os << "getData: elapsed time is " << eGetData_-eToInt-eGetWeight << " sec." << LogIO::POST ;
    841   os << "toPixel: elapsed time is " << eToPixel_ << " sec." << LogIO::POST ;
    842   os << "ggridsd2: elapsed time is " << eGGridSD_ << " sec." << LogIO::POST ;
    843   os << "toInt: elapsed time is " << eToInt << " sec." << LogIO::POST ;
    844   os << "getWeight: elapsed time is " << eGetWeight << " sec." << LogIO::POST ;
     839  os << LogIO::DEBUGGING << "initPol: elapsed time is " << eInitPol << " sec." << LogIO::POST ;
     840  os << LogIO::DEBUGGING << "getData: elapsed time is " << eGetData_-eToInt-eGetWeight << " sec." << LogIO::POST ;
     841  os << LogIO::DEBUGGING << "toPixel: elapsed time is " << eToPixel_ << " sec." << LogIO::POST ;
     842  os << LogIO::DEBUGGING << "ggridsd2: elapsed time is " << eGGridSD_ << " sec." << LogIO::POST ;
     843  os << LogIO::DEBUGGING << "toInt: elapsed time is " << eToInt << " sec." << LogIO::POST ;
     844  os << LogIO::DEBUGGING << "getWeight: elapsed time is " << eGetWeight << " sec." << LogIO::POST ;
    845845 
    846846  delete chanMap ;
     
    861861              common.clipCMax ) ;
    862862  t1 = mathutil::gettimeofday_sec() ;
    863   os << "clipMinMax: elapsed time is " << t1-t0 << " sec." << LogIO::POST ;
     863  os << LogIO::DEBUGGING << "clipMinMax: elapsed time is " << t1-t0 << " sec." << LogIO::POST ;
    864864//   os << "AFTER CLIPPING" << LogIO::POST ;
    865865//   os << "gdataArrC=" << common.gdataArrC << LogIO::POST ;
     
    10021002  data_.putStorage( gwgt_p, b2 ) ;
    10031003  t1 = mathutil::gettimeofday_sec() ;
    1004   os << "setData: elapsed time is " << t1-t0 << " sec." << LogIO::POST ;
     1004  os << LogIO::DEBUGGING << "setData: elapsed time is " << t1-t0 << " sec." << LogIO::POST ;
    10051005}
    10061006
     
    11631163{
    11641164  LogIO os( LogOrigin("STGrid","selectData",WHERE) ) ;   
    1165   //Int ifno = ifno_ ;
     1165  Int ifno = ifno_ ;
    11661166  tableList_.resize( nfile_ ) ;
    11671167  if ( ifno_ == -1 ) {
     
    11751175    Table taborg( infileList_[i] ) ;
    11761176    TableExprNode node ;
    1177     if ( isMultiIF( taborg ) ) {
     1177    if ( ifno != -1 || isMultiIF( taborg ) ) {
    11781178      os << "apply selection on IFNO" << LogIO::POST ;
    11791179      node = taborg.col("IFNO") == ifno_ ;
     
    11891189      tableList_[i] = taborg( node ) ;
    11901190    }
    1191     os << "tableList_[" << i << "].nrow()=" << tableList_[i].nrow() << LogIO::POST ;
     1191    os << LogIO::DEBUGGING << "tableList_[" << i << "].nrow()=" << tableList_[i].nrow() << LogIO::POST ;
    11921192    if ( tableList_[i].nrow() == 0 ) {
    11931193      os << LogIO::SEVERE
     
    15741574    // to take into account Gaussian tail
    15751575    if ( convSupport_ < 0 )
    1576       convSupport_ = 12 ; // 3 * 4
     1576      convSupport_ = 4 ; // 1 * 4
    15771577    else {
    15781578      convSupport_ = userSupport_ * 4 ;
     
    16591659
    16601660  t1 = mathutil::gettimeofday_sec() ;
    1661   os << "saveData: elapsed time is " << t1-t0 << " sec." << LogIO::POST ;
     1661  os << LogIO::DEBUGGING << "saveData: elapsed time is " << t1-t0 << " sec." << LogIO::POST ;
    16621662
    16631663  fillMainColumns( tab ) ;
Note: See TracChangeset for help on using the changeset viewer.