Segmentation output format
The ptr to segmentation functionality should include the option to extract from each ptr block the metadata comment attribute PRIME (uppercase or lowercase) and add it in the last column of the CSV file (the column that corresponds to the timeline field). This functionality is part of the enhancements from the SOC for the pointing harmonisation process. E.g. from:
<!-- Block (1) -->
<block ref="OBS">
<startTime> 2032-09-22T17:53:01 </startTime>
<endTime> 2032-09-23T02:53:51 </endTime>
<attitude ref="track">
<boresight ref="SC_HGA" />
<phaseAngle ref="powerOptimised">
<yDir> false </yDir>
<angle units="deg"> 90 </angle>
</phaseAngle>
<target ref="Earth" />
</attitude>
<metadata>
<comment> OBS_NAME=DL_ </comment>
<comment> PRIME=SOC </comment>
</metadata>
</block>
<!-- Block (2) -->
<block ref="SLEW" />
<!-- Block (3) -->
<block ref="OBS">
<startTime> 2032-09-23T03:42:00 </startTime>
<endTime> 2032-09-23T14:49:03 </endTime>
<attitude ref="track">
<boresight ref="SC_Zaxis" />
<phaseAngle ref="powerOptimised">
<yDir> false </yDir>
<angle units="deg"> 90 </angle>
</phaseAngle>
<target ref="Jupiter" />
</attitude>
<metadata>
<comment> OBS_ID=001 </comment>
<comment> OBS_NAME=JANUS_Vertical_Scan_MAJIS_Ride_Along </comment>
<comment> PRIME=JANUS </comment>
</metadata>
</block>
<!-- Block (4) -->
<block ref="SLEW" />
<!-- Block (5) -->
<block ref="OBS">
<startTime> 2032-09-23T15:37:15 </startTime>
<endTime> 2032-09-23T16:13:32 </endTime>
<attitude ref="track">
<boresight ref="SC_HGA" />
<phaseAngle ref="powerOptimised">
<yDir> false </yDir>
<angle units="deg"> 90 </angle>
</phaseAngle>
<target ref="Earth" />
</attitude>
<metadata>
<comment> OBS_NAME=OPNAV_CAL </comment>
<comment> PRIME=SOC </comment>
</metadata>
</block>
we should get:
name,t_start,t_end,subgroup,source
DL_,2032-09-22T17:53:01Z,2032-09-23T02:53:51Z,,SOV
JANUS_Vertical_Scan_MAJIS_Ride_Along_001,2032-09-23T03:42:00Z,2032-09-23T14:49:03Z,,JANUS
OPNAV_CAL,2032-09-23T15:37:15Z,2032-09-23T16:13:32Z,,SOC