Question about Frame conversion between ITRF and EME2000

Hi, Orekit users,

I am a newcomer to Orekit, and now I have a question about the frame conversion between ITRF and EME2000.

Here is the code I’m using:

AbsoluteDate initialDate = new AbsoluteDate(2019, 03, 04, 19, 23, 19.107, utc);
Frame j2000 = FramesFactory.getEME2000();
Vector3D p = new Vector3D(4721243.173, -5304707.381, -29098.763);
Vector3D v = new Vector3D(3061.331, 2707.255, 6280.672);
PVCoordinates pv = new PVCoordinates(p, v);
System.out.println("Orbit: " + j2000.getTransformTo(itrf, initialDate).transformPVCoordinates(pv));

by the way, ITRF = ECEF, EME2000 = J2000, am I right?

The result is: P(-5532934.557015174, -4451643.020879899, -20342.986059240364),
V(2227.74214972784, -2777.2138597461817,6286.218464870787)
But the result I got from STK is: P(-5532965.653, -4451604.404, -20335.815)
V(2227.721, -2227.218, 6286.224)

The differences between the two P’s above are really large(30m~40m). Thus, which result is right? Is there anything wrong in my code? Does anyone have ideas or suggestions or advice?

Thanks a lot!!

Hi,

by the way, ITRF = ECEF, EME2000 = J2000, am I right?

Yes.

Can you give us the part of the code where you define the ITRF frame?

The method from FramesFactory to define an ITRF frame takes two arguments. Depending on the parameters you selected, this might explain the difference with STK: https://www.orekit.org/static/apidocs/org/orekit/frames/FramesFactory.html#getITRF(org.orekit.utils.IERSConventions,boolean)

  • conventions - IERS conventions to apply
  • simpleEOP - if true, tidal effects are ignored when interpolating EOP

Cheers
yzokras

Hi Miaomiao,

AbsoluteDate initialDate = new AbsoluteDate(2019, 03, 04, 19, 23, 19.107, utc);

Here, you should rather use AbsoluteDate(2019, 3, 4, 19, 23, 19.107, utc), i.e. without the leading 0 in the integer arguments because in Java (just like C or C++) an integer starting with 0 is considered in base 8, so you could for example not write 08 or 09. This is weird, I agree.

The result is: P(-5532934.557015174, -4451643.020879899, -20342.986059240364),
V(2227.74214972784, -2777.2138597461817,6286.218464870787)
But the result I got from STK is: P(-5532965.653, -4451604.404, -20335.815)
V(2227.721, -2227.218, 6286.224)

The reason for the discrepancy is most probably due to Earth Orientation Parameters. Orekit typically loads EOP from a directory if you followed the recommended way in https://www.orekit.org/static/configuration.html#Quick_setup_using_default_data. I have just updated the default data set with current EOP so transforms from early March 2019 should be very good. With this settings, and assuming the ITRF frame was built as

Frame itrf = FramesFactory.getITRF(IERSConventions.IERS_2010, true);

Then I got these results:
Orbit: {P(-5532936.377581564, -4451640.759330523, -20342.717244308886), V(2227.741346228882, -2777.2148030375624, 6286.21837508928), A(-0.43445523497726507, -0.3485702847874696, -4.7502998555017007E-7)}

In order to get results close to STK, I had to do the following:

  1. prevent loading of Earth Orientation Parameter (or rather load truncated data the does NOT cover March 2019
  2. use TIRF as Earth frame rather than ITRF (i.e. ignore both pole wandering and S’ regular rate)

With these two settings, I get these results:
Orbit: {P(-5532965.981090575, -4451603.9940751055, -20336.33870949751), V(2227.721531578508, -2777.218942867515, 6286.223565804276), A(-0.43445755747722115, -0.34856739657047814, 2.5095149630985185E-8)}

which are 75cm away from STK.

So I would say Orekit results are good, and your STK configuration could be improved. I don’t know how to tell STK to use current EOP, and you should make sure your Earth frame is really ITRF, which takes into account many tiny effects.

As an additional information, frames transforms in Orekit have been extensively tested and validated by numerous different institutions. Both legacy models (like IERS conventions 1996) and state of the art models are available (precession, nutation, Earth Orientation Parameters, pole wandering, tidal effects on frames, stations displacements due to tides, station displacements due to ocean loading…). All these geometrical computations are considered to be accurate at centimeter level or better in the Earth vicinity.

Thanks for all the replies!I noticed that I didn’t post the definitions of my timescale and itrf. Here is the code I missed last time:
Timescale utc = TimescalesFactory.getUTC();

Frame ITRF = FrameFactory.getITRF(IERSConventions.IERS_2010,true);

My classmates suggested trying UT1 instead of UTC, it seems I can also get a result close to STK (less than 1m) following his suggestion . Is this just a coincidence? Which timescale and frame should I use? I’m really confused now.

No, you should not use UT1 here. UT1 is used only internally to compute the Earth rotation, it is not really a time scale to locate events occurrence in a timeline (at least not in Orekit, I don’t know about STK).
When you initialized your orbit, you just have to make sure the position, velocity and time are consistent with each other, this depends only on the source of your data. Nowadays, many people use UTC so your input seemed reasonable to me.

The difference between UTC and UT1 is precisely one of the Earth Orientation Parameters, so I guess this confirms your Orekit configuration does take EOP into account and your STK configuration does not.
So if you tell Orekit the position is in UT1, it will basically rewind Earth rotation by the difference between UTC and UT1, then add it back when it takes all the EOP into account, which means the UTC/UT1 difference will cancel out. If at the same time you ask STK to compute but do not provide it any EOP, then the UTC/UT1 difference will be zero and results from both computations will be close… and both false.

One way to check in Orekit that you did load EOP correctly is to put at the end of your program (after all computations), the following statements:

        for (String s : DataProvidersManager.getInstance().getLoadedDataNames()) {
            System.out.println(s);
        }
        EOPHistory eop = ((EOPBasedTransformProvider) itrf.getTransformProvider()).getEOPHistory();
        System.out.println(eop.getEndDate());

The first loop will display all the files that have been loaded under the hood during the computation. Among these files, you should see the ones that contain EOP data (most probably finals.all of finals2000A.all).
The last statement will display for the ITRF that you used the final date covered by the underlying EOP (that have been loaded from some of the previous files). This could help you understand if Orekit really did use EOP, and I am pretty sure it did.

I don’t know how to do the same in STK, but I am also sure STK does support EOP. As EOP data are updated all the time (for example bulletinA files are produced once a week), users must update their program of choice by providing these always changing data.

Thanks a lot!I got it!:)