Examples of UMStellarSource


Examples of gaia.cu1.mdb.cu2.um.umtypes.dm.UMStellarSource

   
    // Stellar data: terminal output
    for (GaiaRoot element : stellarArrayList){
     
      // Parse object into UMStellarSource
      UMStellarSource stellarSource = (UMStellarSource)element;
     
      // Source ID
      System.out.printf( "SourceId:" + stellarSource.getSourceId() + "\n");
      outputFile.printf( "SourceId:" + stellarSource.getSourceId() + "\n");
     
      // Basic astrometry
      UMAstroRoot stellarAstrometry = stellarSource.getAstrometry();
      double alpha    = stellarAstrometry.getAlpha();
      double delta    = stellarAstrometry.getDelta();
      double distance = stellarAstrometry.getDistance();     
      System.out.printf("RA (deg): %15.5f; DEC (deg): %15.5f, distance (pc): %15.5e\n", alpha, delta, distance);
      outputFile.printf("RA (deg): %15.5f; DEC (deg): %15.5f, distance (pc): %15.5e\n", alpha, delta, distance);
     
      // Basic photometry
      UMPhotoRoot photometry = stellarSource.getPhotometry();
      double magG    = photometry.getMagG();
      double magGBp  = photometry.getMagGBp();
      double magGRp  = photometry.getMagGRp();
      double magGRvs = photometry.getMagGRvs();
      System.out.printf("G: %6.2f; GBp: %6.2f; GRp: %6.2f; GRvs: %6.2f\n", magG, magGBp, magGRp, magGRvs);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.