// 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);