Changeset 2549 for branches/hpc33
- Timestamp:
- 05/27/12 17:28:25 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/hpc33/src/MSFiller.cpp
r2303 r2549 306 306 307 307 // initialize dirType 308 dirType = MDirection::N_Types ;308 //dirType = MDirection::N_Types ; 309 309 310 310 // … … 677 677 MDirection::getType( dirType, pointingRef ) ; 678 678 getpt = True ; 679 680 // initialize toj2000 and toazel 681 toj2000 = MDirection::Convert( dirType, MDirection::Ref( MDirection::J2000, mf ) ) ; 682 toazel = MDirection::Convert( dirType, MDirection::Ref( MDirection::AZELGEO, mf ) ) ; 679 683 } 680 684 void setWeatherTime( const Vector<Double> &t, const Vector<Double> &it ) … … 953 957 pointingDirection.xyPlane( idx-1 ), pointingDirection.xyPlane( idx ) ) ; 954 958 } 955 mf.resetEpoch( currentTime ) ; 959 //mf.resetEpoch( currentTime ) ; 960 mf.set( currentTime ) ; 956 961 Quantum< Vector<Double> > tmp( d.column( 0 ), Unit( "rad" ) ) ; 957 962 if ( dirType != MDirection::J2000 ) { 958 MDirection::Convert toj2000( dirType, MDirection::Ref( MDirection::J2000, mf ) ) ;963 //MDirection::Convert toj2000( dirType, MDirection::Ref( MDirection::J2000, mf ) ) ; 959 964 dir = toj2000( tmp ).getAngle( "rad" ).getValue() ; 960 965 } … … 963 968 } 964 969 if ( dirType != MDirection::AZELGEO ) { 965 MDirection::Convert toazel( dirType, MDirection::Ref( MDirection::AZELGEO, mf ) ) ;970 //MDirection::Convert toazel( dirType, MDirection::Ref( MDirection::AZELGEO, mf ) ) ; 966 971 //MDirection::Convert toazel( dirType, MDirection::Ref( MDirection::AZEL, mf ) ) ; 967 972 azel = toazel( tmp ).getAngle( "rad" ).getValue() ; … … 977 982 dir = sourceDir.getAngle( "rad" ).getValue() ; 978 983 mf.resetEpoch( currentTime ) ; 979 MDirection::Convert toazel( dirType, MDirection::Ref( MDirection::AZELGEO, mf ) ) ;984 //MDirection::Convert toazel( dirType, MDirection::Ref( MDirection::AZELGEO, mf ) ) ; 980 985 azel = toazel( Quantum< Vector<Double> >( dir, Unit("rad") ) ).getAngle( "rad" ).getValue() ; 981 986 if ( dirType != MDirection::J2000 ) { 982 MDirection::Convert toj2000( dirType, MDirection::Ref( MDirection::J2000, mf ) ) ;987 //MDirection::Convert toj2000( dirType, MDirection::Ref( MDirection::J2000, mf ) ) ; 983 988 dir = toj2000( Quantum< Vector<Double> >( dir, Unit("rad") ) ).getAngle( "rad" ).getValue() ; 984 989 } … … 1260 1265 MPosition antpos; 1261 1266 MEpoch currentTime; 1267 MeasFrame mf; 1268 MDirection::Convert toj2000; 1269 MDirection::Convert toazel; 1262 1270 map<Int,uInt> ifmap; 1263 1271 Block<uInt> polnos; … … 1292 1300 Matrix<Float> sp; 1293 1301 Matrix<uChar> fl; 1294 MeasFrame mf;1295 1302 1296 1303 // MS MAIN columns
Note:
See TracChangeset
for help on using the changeset viewer.