Changeset 2156 for trunk/external-alma/atnf
- Timestamp:
- 04/26/11 15:29:23 (14 years ago)
- Location:
- trunk/external-alma/atnf/PKSIO
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/external-alma/atnf/PKSIO/NRODataset.cc
r2031 r2156 602 602 } 603 603 604 double NRODataset::getScanTime( int i ) 605 { 606 double startTime = getStartIntTime( i ) ; 607 double interval = getIPTIM() / 86400.0 ; // [sec]->[day] 608 return startTime+0.5*interval ; 609 } 610 604 611 vector<bool> NRODataset::getIFs() 605 612 { -
trunk/external-alma/atnf/PKSIO/NRODataset.h
r1868 r2156 194 194 virtual vector<double> getStartIntTime() ; 195 195 virtual double getStartIntTime( int i ) ; 196 virtual double getScanTime( int i ) ; 196 197 virtual double getMJD( char *time ) ; 197 198 virtual vector<bool> getIFs() ; -
trunk/external-alma/atnf/PKSIO/NROFITSDataset.cc
r1869 r2156 622 622 // for ( int i = 0 ; i < ARYNM ; i++ ) { 623 623 // if ( i == 0 ) { 624 // //cout << "RX " ;624 // cout << "RX " ; 625 625 // } 626 626 // else if ( ( i % 5 ) == 0 ) { 627 // //cout << endl << " " ;628 // } 629 // //cout << "\'" << RX[i] << "\' " ;627 // cout << endl << " " ; 628 // } 629 // cout << "\'" << RX[i] << "\' " ; 630 630 // } 631 // //cout << endl ;631 // cout << endl ; 632 632 // 633 633 if ( readColumn( HPBW, "HPBW", sameEndian ) != 0 ) { … … 2734 2734 } 2735 2735 2736 double NROFITSDataset::getScanTime( int i ) 2737 { 2738 double startTime = getStartIntTime( i ) ; 2739 double interval ; 2740 readTable( interval, "INTEG", same_, i ) ; 2741 interval /= 86400.0 ; 2742 return startTime+0.5*interval ; 2743 } 2744 2736 2745 // double NROFITSDataset::toLSR( double v, double t, double x, double y ) 2737 2746 // { -
trunk/external-alma/atnf/PKSIO/NROFITSDataset.h
r1868 r2156 96 96 virtual uInt getArrayId( string type ) ; 97 97 virtual double getStartIntTime( int i ) ; 98 virtual double getScanTime( int i ) ; 98 99 99 100 protected: -
trunk/external-alma/atnf/PKSIO/NROReader.cc
r2154 r2156 578 578 579 579 // scantime 580 scantime = Double( dataset_->getStartIntTime( irow ) ) ; 580 //scantime = Double( dataset_->getStartIntTime( irow ) ) ; 581 scantime = Double( dataset_->getScanTime( irow ) ) ; 581 582 //cout << "scantime = " << scantime << endl ; 582 583
Note:
See TracChangeset
for help on using the changeset viewer.