Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gtorbsim does not implement the rocking profile correctly #169

Open
joeastro opened this issue Oct 16, 2024 · 0 comments · May be fixed by fermi-lat/orbitSim#8
Open

gtorbsim does not implement the rocking profile correctly #169

joeastro opened this issue Oct 16, 2024 · 0 comments · May be fixed by fermi-lat/orbitSim#8
Assignees
Labels
bug Something isn't working

Comments

@joeastro
Copy link

When using gtorbsim to create a predicted FT2 file using a Science Timeline provided by TAKO, the spacecraft attitude and pointing data do not match the values shown in TAKO during timeline creation. Examination of the ROCK_ANGLE column values in particular indicated that the rocking profile repeat period(s) used by gtorbsim was somehow different than the repeat period(s) provided in the science timeline. This behavior first manifested in Mission Week 805 and has become more pronounced since.

The cause of the issue has been traced to the file read_ephem.cxx, which "contains functions to read/calculate ephemerides and the attitude calculation." Specifically, the variable "difincr" is mishandled in the current implementation. When gtorbsim is run the function InterpProfile is called, which recasts the 17 point profile defined by the mission planners so that the timings of the 17 points are multiples of 60 (because the crated FT2 file has one line for each minute, starting at the top of the minute). The 17th interpolated point is thus usually incorrect, and so the the "difincr" variable is used to track this difference and make a correction down-stream.

However, as currently written the value of "difincr" can only be positive and the resulting correction can only be positive as well. This issue was not noticed until now because between launch and MW 805 the needed correction was always positive, but after the the repeat period fell below 5700s (due to decreasing orbit altitude), a negative correction has been needed.

I have made the necessary modifications to the code in read_ephem.cxx and tested them on the timelines of several mission weeks, both before and after MW 805. Results are now as expected, so I will initiate a Pull Request soon so that these changes can be incorporated into the tools.

@joeastro joeastro self-assigned this Oct 16, 2024
@joeastro joeastro added the bug Something isn't working label Oct 16, 2024
@joeastro joeastro linked a pull request Oct 21, 2024 that will close this issue
@joeastro joeastro changed the title gtorbsim does not implementing the rocking profile correctly gtorbsim does not implement the rocking profile correctly Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant