Changeset 2868
- Timestamp:
- 12/02/13 13:25:27 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STGrid.cpp
r2851 r2868 554 554 const Int pol; 555 555 STContext(STGrid *obj, STCommonData &common, Int pol) 556 : self(obj), common(common), pol(pol) {}556 : common(common), self(obj), pol(pol) {} 557 557 }; 558 558 … … 563 563 const Int pol; 564 564 STContextWithClipping(STGrid *obj, STCommonDataWithClipping &common, Int pol) 565 : self(obj), common(common), pol(pol) {}565 : common(common), self(obj), pol(pol) {} 566 566 }; 567 567 … … 1021 1021 t0 = mathutil::gettimeofday_sec() ; 1022 1022 uInt len = data_.nelements() ; 1023 const Complex *w1_p ;1024 Float *w2_p ;1025 1023 Bool b1, b2, b3 ; 1026 1024 const Complex *gdata_p = gdata.getStorage( b1 ) ; 1027 Float *gwgt_p = data_.getStorage( b2 ) ;1025 Float *gwgt_p = gwgt.getStorage( b2 ) ; // storage shared with data_ 1028 1026 uChar *gflg_p = flag_.getStorage( b3 ) ; 1029 1027 for ( uInt i = 0 ; i < len ; i++ ) { … … 1239 1237 void STGrid::table( Table &tab, uInt i ) 1240 1238 { 1241 if ( i >= 0 && i< nfile_ )1239 if ( i < nfile_ ) 1242 1240 tab = Table( infileList_[i] ) ; 1243 1241 } … … 1308 1306 IPosition const &wshape, 1309 1307 IPosition const &vshape, 1310 IPosition const & dshape,1308 IPosition const &/* dshape */, 1311 1309 Array<Complex> &spectra, 1312 1310 Array<Double> &direction, … … 1799 1797 // determine pixel gwidth 1800 1798 // default is HWHM corresponding to b = 1.0 (Mangum et al. 2007) 1801 Double pixelGW ;1799 Double pixelGW = -1.0; 1802 1800 Quantum<Double> q ; 1803 1801 if (!gwidth_.empty()) { … … 1817 1815 // determine truncation radius 1818 1816 // default is 3 * HWHM 1819 Double truncate ;1817 Double truncate = -1.0; 1820 1818 if (!truncate_.empty()) { 1821 1819 readQuantity( q, truncate_ ); … … 1843 1841 // determine pixel gwidth 1844 1842 // default is HWHM corresponding to b = 2.52 (Mangum et al. 2007) 1845 Double pixelGW ;1843 Double pixelGW = -1.0; 1846 1844 Quantum<Double> q ; 1847 1845 if (!gwidth_.empty()) { … … 1861 1859 // determine pixel c 1862 1860 // default is c = 1.55 (Mangum et al. 2007) 1863 Double pixelJW ;1861 Double pixelJW = -1.0; 1864 1862 if (!jwidth_.empty()) { 1865 1863 readQuantity( q, jwidth_ ); … … 1965 1963 void STGrid::fillTable( Table &tab ) 1966 1964 { 1967 IPosition dshape = data_.shape() ;1965 //IPosition dshape = data_.shape() ; 1968 1966 Int nrow = nx_ * ny_ * npol_ ; 1969 1967 tab.rwKeywordSet().define( "nPol", npol_ ) ;
Note:
See TracChangeset
for help on using the changeset viewer.