gnssanalysis icon indicating copy to clipboard operation
gnssanalysis copied to clipboard

Correct SISRE calculation

Open TYTY666 opened this issue 1 year ago • 2 comments

Dear gnssanalysis developers, hello! Thank you for your work.

We noticed that there seems to be some errors in the function used to calculate SISRE in the gn_diffaux.py file of gnssanalysis. We believe that when calculating the SISRE indicator, clk_diff should be multiplied by the speed of light and mutually offset with the radial orbit deviation.

We have corrected this issue. If you think our correction is correct, please accept our PR. If there are any questions, please give us feedback.

TYTY666 avatar Apr 28 '24 12:04 TYTY666

Hi TYTY666,

Thanks so much for your PR. It's a really good catch and something we missed when creating these functions.

I have put through a parallel PR in order to move the multiplication by the speed of light up to where the clk_diff variable is defined. This aligns better with how we currently calculate the clk values in the diffclk function

The one area we will still take some time to investigate is the minus sign you've introduced in alpha * radial - clk_diff. This could very well be correct but we need to double check this and verify that this is the way it should be.

We will comment here again on this PR if we do find something.

Thanks again for bringing our attention to this :)

ronaldmaj avatar May 16 '24 05:05 ronaldmaj

Hello Thanks for your PR. After review, we came to the conclusion that the original version of the code is correct (for the moment).

  1. the CLIGHT factor has been added when calling the compare_clk function.
  2. The change of sign is not necessary as the differencing of orbits is doing (orb_B - orb_A) but differencing of clocks is doing (clk_A - clk_B).

We will work in unifying the definition of the differentiation functions and adjust your PR later (removing the CLIGHT factor).

seballgeyer avatar Mar 06 '25 03:03 seballgeyer