Package gaiasimu

Examples of gaiasimu.GaiaSimuTime


        double scanAngle = transitInfo[i].getScanPosAngle()*GaiaParam.Nature.DEGREE_RADIAN; // NOTE: Documentation wrong, scan angle is returned in deg
        GVector2d lsc = new GVector2d(transitInfo[i].getCentroidPosAl(), transitInfo[i].getCentroidPosAc());
        GVector2d lpc = Conversion.fromLSCtoLPC ( lsc, scanAngle );
        //StellarAstrometry ast = ((StellarAstrometry) star.getAstrometry());
        //GVector3d pos = Conversion.fromLSCtoCoMRS ( lsc, ast.getAlpha(), ast.getDelta(), scanAngle );
        GaiaSimuTime gst = new GaiaSimuTime(transitInfo[i].getObsTime(), SimuTimeScale.UM_TIME);
       
        //GVector3d comrsRef = ast.getCoMRSPosition(gst, false);
        //GVector2d lpcRef = Conversion.fromCoMRStoLPC(comrsRef, ast.getAlpha(), ast.getDelta());
       
        GVector2d lscZero = new GVector2d(transitInfoZero[i].getCentroidPosAl(), transitInfoZero[i].getCentroidPosAc());
        GVector2d lpcZero = Conversion.fromLSCtoLPC(lscZero, transitInfoZero[i].getScanPosAngle()*GaiaParam.Nature.DEGREE_RADIAN);
       
        System.out.printf("%20.14e %20.14e %20.14e %20.14e %20.14e %20.14e %20.14e %20.14e %20.14e %20.14e\n",
            gst.getJD(),
            lpc.getX(), lpc.getY(),
            lpcZero.getX(), lpcZero.getY(),
            lsc.getX(), lsc.getY(),
            lscZero.getX(), lscZero.getY(),
            scanAngle);
View Full Code Here


     
      // do NOT take into account relativistic effects, GaiaSimu algorithm does NOT work as it is supposed to
      boolean relativity = false;
     
      // Get observational data of transit
      GaiaSimuTime time = tr.getTime();
      double scanAngle = tr.getScanAngle();
      GVector2d lsc = tr.getLSC();
      GVector2d lscError = tr.getLSCError();
     
      // Convert to LPC
      GVector2d lpc = tr.getLPC();
      GVector2d lpcError = tr.getLPCError();
     
      // Calculate reference position
      GVector2d lpcRef = Conversion.fromCoMRStoLPC ( astroRef.getCoMRSPosition ( time, relativity ), astroRef.getAlpha(), astroRef.getDelta() );
      GVector2d lscRef = Conversion.fromLPCtoLSC(lpcRef, scanAngle);
     
      String outString = String.format("%20.12e %20.12e %20.12e %20.12e %20.12e %20.12e %20.12e %20.12e %20.12e %20.12e %20.12e %20.12e %20.12e %20.12e\n",
          lpc.getX(), lpc.getY(),
          lpcError.getX(), lpcError.getY(),
          lpcRef.getX(), lpcRef.getY(),
          lsc.getX(), lsc.getY(),
          lscError.getX(), lscError.getY(),
          lscRef.getX(), lscRef.getY(),
          scanAngle, time.getJD());
     
      out.write(outString);
     
    }
   
View Full Code Here

   
    // do NOT take into account relativistic effects, GaiaSimu algorithm does NOT work as it is supposed to
    boolean relativity = false;
   
    // Get CoMRS position from transit
    GaiaSimuTime time = tr.getGSTime();
    GVector3d comrs = star.getAstrometry().getCoMRSPosition(time, relativity);
   
    // Calculate local scan coordinates
    double scanAngle;
    Gaia gaia = sim.getGaia();
View Full Code Here

   
    for ( double timeJD = startTime; timeJD <= endTime; timeJD += step ) {
     
      // Calculate coordinates and add transit to orbit
      boolean relativity = false;
      GaiaSimuTime gst = new GaiaSimuTime(new GaiaTime());
      gst.setJD(timeJD);
      GVector3d comrs = model.getStar().getAstrometry().getCoMRSPosition(gst, relativity);
      GVector3d comrsRef = model.getAstrometry().getCoMRSPosition(gst, relativity);
      GVector2d lpc = Conversion.fromCoMRStoLPC(comrs, comrsRef.getLongitude(), comrsRef.getLatitude());
     
      orbit.addTransit ( new TransitData ( lpc, new GVector2d(), true, gst, 0.0, false ) );
View Full Code Here

public class Erase {
 
  public static void main( String[] args ) throws GogException{
   
    GaiaSimuTime x = GogConstants.UM_INITIAL_TIME;
    double t = x.getElapsedNanoSecs();
    System.out.printf("%20.12e\n", t);
    System.out.printf(x.asIsoDate() + "\n");
   
    double yearsSubCatalog = 1.5;
    double missionStart = MissingParams.MISSION_START * GaiaParam.Nature.JULIANYEAR_DAY  * GaiaParam.Nature.DAY_SECOND * 1e9;
    double timeSpan = yearsSubCatalog * GaiaParam.Nature.JULIANYEAR_DAY  * GaiaParam.Nature.DAY_SECOND * 1e9;
    System.out.printf("%20.10e %20.10e\n", missionStart, missionStart + timeSpan);
View Full Code Here

    for ( Transit tr : allTransits ) {
     
      final boolean relativity = false; // whether to include relativity
      final double lambda = 600.0; // wavelength in nm

      GaiaSimuTime time = tr.getGSTime();
      Astrometry ast = star.getAstrometry();
      double trAlpha = ast.getCoMRSAstrometricParam(time, relativity).getAlpha();
      double trDelta = ast.getCoMRSAstrometricParam(time, relativity).getDelta();
     
      GVector3d comrs = ast.getCoMRSPosition(time, relativity);
      System.out.println(comrs);
      System.out.println(time);
      System.out.println(tr.getFov());
      GVector3d fprs = gaia.fromCoMRStoFPRS(comrs, time, tr.getFov(), GaiaSimuEnums.FpField.AF, lambda);
      GVector3d fieldAngles = gaia.fromFPRStoFieldAngles(fprs, tr.getFov());
     
      System.out.printf("%.15e,\t%.15e,\t%.15e,\t%.15e,\t%.15e\n", time.getJD(),
          fieldAngles.getX(), fieldAngles.getY(), trAlpha, trDelta);
     
    }
   
  }
View Full Code Here

TOP

Related Classes of gaiasimu.GaiaSimuTime

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.