PTR2TOL
Conversion tool that takes an input TOL and an input PTR and aligns timing for the PTR Designer and Prime blocks into new TOL file.
Notes:
A PTR will be provided by ESA on Friday. Attached is an example from PJ12. There are no SWI blocks in this as we never requested pointing however. Just a heads up on formatting might look like.
A PTR will contain blocks for all instruments and spacecraft operations but only PRIME and DESIGNER blocks. No rider blocks that will exist in our TOL will appear.
It is assumed that the Block count of PRIME and DESIGNERS will match between both files, just the timing might be off.
The process: (My interpretation, although does not need to follow exact logic.)
1: First simplify the input TOL to just PRIME and Designer.
2: Simplify the PTR to a list of SWI blocks with reference to whether PRIME or DESIGNER and the timestamps.
3: Merge the PRIME/DESIGNER and Timestamps from PTR into the TOL blocks.
4: Add back the rider blocks taken out of the TOL at the beginning. This can be skipped if you find a way to skip step one as well.