Changeset 2549


Ignore:
Timestamp:
05/27/12 17:28:25 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Use approximate calculation of calcEarth.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/hpc33/src/MSFiller.cpp

    r2303 r2549  
    306306
    307307    // initialize dirType
    308     dirType = MDirection::N_Types ;
     308    //dirType = MDirection::N_Types ;
    309309
    310310    //
     
    677677    MDirection::getType( dirType, pointingRef ) ;
    678678    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 ) ) ;
    679683  }
    680684  void setWeatherTime( const Vector<Double> &t, const Vector<Double> &it )
     
    953957                    pointingDirection.xyPlane( idx-1 ), pointingDirection.xyPlane( idx ) ) ;
    954958    }
    955     mf.resetEpoch( currentTime ) ;
     959    //mf.resetEpoch( currentTime ) ;
     960    mf.set( currentTime ) ;
    956961    Quantum< Vector<Double> > tmp( d.column( 0 ), Unit( "rad" ) ) ;
    957962    if ( dirType != MDirection::J2000 ) {
    958       MDirection::Convert toj2000( dirType, MDirection::Ref( MDirection::J2000, mf ) ) ;
     963      //MDirection::Convert toj2000( dirType, MDirection::Ref( MDirection::J2000, mf ) ) ;
    959964      dir = toj2000( tmp ).getAngle( "rad" ).getValue() ;
    960965    }
     
    963968    }
    964969    if ( dirType != MDirection::AZELGEO ) {
    965       MDirection::Convert toazel( dirType, MDirection::Ref( MDirection::AZELGEO, mf ) ) ;
     970      //MDirection::Convert toazel( dirType, MDirection::Ref( MDirection::AZELGEO, mf ) ) ;
    966971      //MDirection::Convert toazel( dirType, MDirection::Ref( MDirection::AZEL, mf ) ) ;
    967972      azel = toazel( tmp ).getAngle( "rad" ).getValue() ;
     
    977982    dir = sourceDir.getAngle( "rad" ).getValue() ;
    978983    mf.resetEpoch( currentTime ) ;
    979     MDirection::Convert toazel( dirType, MDirection::Ref( MDirection::AZELGEO, mf ) ) ;
     984    //MDirection::Convert toazel( dirType, MDirection::Ref( MDirection::AZELGEO, mf ) ) ;
    980985    azel = toazel( Quantum< Vector<Double> >( dir, Unit("rad") ) ).getAngle( "rad" ).getValue() ;
    981986    if ( dirType != MDirection::J2000 ) {
    982       MDirection::Convert toj2000( dirType, MDirection::Ref( MDirection::J2000, mf ) ) ;
     987      //MDirection::Convert toj2000( dirType, MDirection::Ref( MDirection::J2000, mf ) ) ;
    983988      dir = toj2000( Quantum< Vector<Double> >( dir, Unit("rad") ) ).getAngle( "rad" ).getValue() ;
    984989    }
     
    12601265  MPosition antpos;
    12611266  MEpoch currentTime;
     1267  MeasFrame mf;
     1268  MDirection::Convert toj2000;
     1269  MDirection::Convert toazel;
    12621270  map<Int,uInt> ifmap;
    12631271  Block<uInt> polnos;
     
    12921300  Matrix<Float> sp;
    12931301  Matrix<uChar> fl;
    1294   MeasFrame mf;
    12951302
    12961303  // MS MAIN columns
Note: See TracChangeset for help on using the changeset viewer.