Ignore:
Timestamp:
06/28/12 14:22:10 (12 years ago)
Author:
ShinnosukeKawakami
Message:

hpc33 merged asap-trunk

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src

  • trunk/src/MSFiller.cpp

    r2554 r2580  
    304304    // set dummy epoch
    305305    mf.set( currentTime ) ;
    306 
    307     // initialize dirType
    308     dirType = MDirection::N_Types ;
    309306
    310307    //
     
    677674    MDirection::getType( dirType, pointingRef ) ;
    678675    getpt = True ;
     676
     677    // initialize toj2000 and toazel
     678    initConvert() ;
    679679  }
    680680  void setWeatherTime( const Vector<Double> &t, const Vector<Double> &it )
     
    710710  uInt getFilledRowNum() { return rowidx ; }
    711711private:
     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
    712718  void fluxUnit( String &u )
    713719  {
     
    757763      String ref = dir.getRefString() ;
    758764      MDirection::getType( dirType, ref ) ;
     765     
     766      // initialize toj2000 and toazel
     767      initConvert() ;
    759768    }
    760769
     
    954963                    pointingDirection.xyPlane( idx-1 ), pointingDirection.xyPlane( idx ) ) ;
    955964    }
    956     mf.resetEpoch( currentTime ) ;
     965    mf.set( currentTime ) ;
    957966    Quantum< Vector<Double> > tmp( d.column( 0 ), Unit( "rad" ) ) ;
    958967    if ( dirType != MDirection::J2000 ) {
    959       MDirection::Convert toj2000( dirType, MDirection::Ref( MDirection::J2000, mf ) ) ;
    960968      dir = toj2000( tmp ).getAngle( "rad" ).getValue() ;
    961969    }
     
    964972    }
    965973    if ( dirType != MDirection::AZELGEO ) {
    966       MDirection::Convert toazel( dirType, MDirection::Ref( MDirection::AZELGEO, mf ) ) ;
    967       //MDirection::Convert toazel( dirType, MDirection::Ref( MDirection::AZEL, mf ) ) ;
    968974      azel = toazel( tmp ).getAngle( "rad" ).getValue() ;
    969975    }
     
    977983  {
    978984    dir = sourceDir.getAngle( "rad" ).getValue() ;
    979     mf.resetEpoch( currentTime ) ;
    980     MDirection::Convert toazel( dirType, MDirection::Ref( MDirection::AZELGEO, mf ) ) ;
     985    mf.set( currentTime ) ;
    981986    azel = toazel( Quantum< Vector<Double> >( dir, Unit("rad") ) ).getAngle( "rad" ).getValue() ;
    982987    if ( dirType != MDirection::J2000 ) {
    983       MDirection::Convert toj2000( dirType, MDirection::Ref( MDirection::J2000, mf ) ) ;
    984988      dir = toj2000( Quantum< Vector<Double> >( dir, Unit("rad") ) ).getAngle( "rad" ).getValue() ;
    985989    }
     
    12611265  MPosition antpos;
    12621266  MEpoch currentTime;
     1267  MeasFrame mf;
     1268  MDirection::Convert toj2000;
     1269  MDirection::Convert toazel;
    12631270  map<Int,uInt> ifmap;
    12641271  Block<uInt> polnos;
     
    12931300  Matrix<Float> sp;
    12941301  Matrix<uChar> fl;
    1295   MeasFrame mf;
    12961302
    12971303  // MS MAIN columns
Note: See TracChangeset for help on using the changeset viewer.