Error when parsing sp3 file with Conventional Terrestrial Reference System (CTS) in the header

Dear all,
I am using the latest version of Orekit and I have a problem when parsing sp3 files that have the string CTS (Conventional Terrestrial Reference System) in the first line as Coordinate System.

This is the error message that I get:

invalid header entry data used “CTS”

Should I substitute it with another string which is equivalent to that system?

Many thanks.

Best Regards

One of the SP3Parser constructors allow specifing a custom frameBuilder function to build frames.
The default value is to use IGSUtils::guessFrame which supports several classical frames, but not CTS.
You can try to use something along these lines :

final SP3Parser parser = new SP3Parser(mu, interpolationSamples,
                                       s -> IGSUtils.guessFrame(s.equals("CTS") ? "IGb20" : s));

Hi Luc,
thanks for your reply. Unfortunately this does not solve the problem. I get the same error message as before.

Hi Luc,
I realized that in my sp3 it was missing the type of data used, therefore after I added the flag ORBIT before CTS in the first line of the file and using your suggested code above, it is working.

Thanks again.

Best Regards