Changeset 2580 for trunk/src/MSFiller.cpp
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/hpc33 (added) merged: 2432,2443,2449,2458-2460,2464,2470,2473,2502,2519,2523-2524,2532-2534,2536-2537,2539-2540,2542-2553,2556-2557,2559-2572
- Property svn:mergeinfo changed
-
trunk/src
- Property svn:mergeinfo changed
/branches/hpc33/src (added) merged: 2432,2443,2449,2458-2460,2464,2470,2473,2502,2519,2523-2524,2532-2534,2536-2537,2539-2540,2542-2553,2556-2557,2559-2564,2566-2572
- Property svn:mergeinfo changed
-
trunk/src/MSFiller.cpp
r2554 r2580 304 304 // set dummy epoch 305 305 mf.set( currentTime ) ; 306 307 // initialize dirType308 dirType = MDirection::N_Types ;309 306 310 307 // … … 677 674 MDirection::getType( dirType, pointingRef ) ; 678 675 getpt = True ; 676 677 // initialize toj2000 and toazel 678 initConvert() ; 679 679 } 680 680 void setWeatherTime( const Vector<Double> &t, const Vector<Double> &it ) … … 710 710 uInt getFilledRowNum() { return rowidx ; } 711 711 private: 712 void initConvert() 713 { 714 toj2000 = MDirection::Convert( dirType, MDirection::Ref( MDirection::J2000, mf ) ) ; 715 toazel = MDirection::Convert( dirType, MDirection::Ref( MDirection::AZELGEO, mf ) ) ; 716 } 717 712 718 void fluxUnit( String &u ) 713 719 { … … 757 763 String ref = dir.getRefString() ; 758 764 MDirection::getType( dirType, ref ) ; 765 766 // initialize toj2000 and toazel 767 initConvert() ; 759 768 } 760 769 … … 954 963 pointingDirection.xyPlane( idx-1 ), pointingDirection.xyPlane( idx ) ) ; 955 964 } 956 mf. resetEpoch( currentTime ) ;965 mf.set( currentTime ) ; 957 966 Quantum< Vector<Double> > tmp( d.column( 0 ), Unit( "rad" ) ) ; 958 967 if ( dirType != MDirection::J2000 ) { 959 MDirection::Convert toj2000( dirType, MDirection::Ref( MDirection::J2000, mf ) ) ;960 968 dir = toj2000( tmp ).getAngle( "rad" ).getValue() ; 961 969 } … … 964 972 } 965 973 if ( dirType != MDirection::AZELGEO ) { 966 MDirection::Convert toazel( dirType, MDirection::Ref( MDirection::AZELGEO, mf ) ) ;967 //MDirection::Convert toazel( dirType, MDirection::Ref( MDirection::AZEL, mf ) ) ;968 974 azel = toazel( tmp ).getAngle( "rad" ).getValue() ; 969 975 } … … 977 983 { 978 984 dir = sourceDir.getAngle( "rad" ).getValue() ; 979 mf.resetEpoch( currentTime ) ; 980 MDirection::Convert toazel( dirType, MDirection::Ref( MDirection::AZELGEO, mf ) ) ; 985 mf.set( currentTime ) ; 981 986 azel = toazel( Quantum< Vector<Double> >( dir, Unit("rad") ) ).getAngle( "rad" ).getValue() ; 982 987 if ( dirType != MDirection::J2000 ) { 983 MDirection::Convert toj2000( dirType, MDirection::Ref( MDirection::J2000, mf ) ) ;984 988 dir = toj2000( Quantum< Vector<Double> >( dir, Unit("rad") ) ).getAngle( "rad" ).getValue() ; 985 989 } … … 1261 1265 MPosition antpos; 1262 1266 MEpoch currentTime; 1267 MeasFrame mf; 1268 MDirection::Convert toj2000; 1269 MDirection::Convert toazel; 1263 1270 map<Int,uInt> ifmap; 1264 1271 Block<uInt> polnos; … … 1293 1300 Matrix<Float> sp; 1294 1301 Matrix<uChar> fl; 1295 MeasFrame mf;1296 1302 1297 1303 // MS MAIN columns
Note: See TracChangeset
for help on using the changeset viewer.