[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orekit Developers] Problem with getPVCoordinates?



I have a problem with the following code.

Frame inertialFrame = FramesFactory.getEME2000();
GeodeticPoint station = new GeodeticPoint(Math.toRadians(40),
Math.toRadians(0), 0);
Frame earthFrame = FramesFactory.getITRF(IERSConventions.IERS_2010, true);
BodyShape earth = new
OneAxisEllipsoid(Constants.WGS84_EARTH_EQUATORIAL_RADIUS,
Constants.WGS84_EARTH_FLATTENING, earthFrame);
TopocentricFrame staF = new TopocentricFrame(earth, station, "station");

staF.getPVCoordinates(AbsoluteDate.J2000_EPOCH, inertialFrame);   // line to
comment out

System.out.println(staF.getPVCoordinates(AbsoluteDate.J2000_EPOCH.shiftedBy(1),
inertialFrame).getPosition().getX());


When I run it I get as a result: 866163.3982467309
If I comment out the line "staF.getPVCoordinates(AbsoluteDate.J2000_EPOCH,
inertialFrame);" then I get as a result 866163.3982467302.
So the last digit is different. How is it possible?

Alessandro