Skip to content

Add support for AGM resolved PTR

Benoit Seignovert requested to merge add-support-for-resolved-agm-ptr into main

This MR requests follows the evolution of Juice AGM API to retrieve the resolved PTR from the JSON response. This is a first implementation to support ObsBlock with without start or stop time (see #4).

Additions

  • Add resolved PTR to AGM results:
res.ptr_resolved
<AGMResultsResolvedPTR> https://juicept.esac.esa.int/agm_output/20230719T080308462149/OUTPUT/PTR_RESOLVED.ptx

<?xml version="1.0" encoding="UTF-8"?>

<!-- Pointing Timeline Header
Output Filename: <undefined>
Generation Time: 2023-07-19T08:03:14 (UTC)
AGM Version:     AGM_LABEL_AGM_VERSION
-->

<!-- Pointing Timeline Statistics
Total Blocks:             3
   Slew Blocks:           1
   Pointing Blocks:       2
      Maintenance Blocks: 0
      Observation Blocks: 2
-->

<prm>
   <body>
      <segment>
         <data>
            <timeline frame="SC">

               <!-- Block (1) -->
...
            </timeline>
         </data>
      </segment>
   </body>
</prm>

Similarly to res.ck you can save a copy to the file locally:

res.ptr_resolved.save('my_resolved_ptr.ptx')
  • Add session id to AGM log results:
>>> res.log.session_id
'20220914T182005481746'
  • Add --ptr-resolved FILENAME to juice-agm CLI.

Fixed

  • Update AGM results log parser for quoted strings: [INFO] <PIF> CK file: \"test.ck\" generated
Edited by Benoit Seignovert

Merge request reports