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