Tool: head2_sort

Description

This tool sorts a stream of CCSDS packets assuming they are all Swift "head2" packets. This means that they will be sorted by secondary header time.

Option Summary

OptionArgument TypeDefault Value
-apid_list
-infile String -
-outfile String -
-trash
-unique

Only the initial unique characters of each option are significant. Each option must be followed by an argument of the given type. Boolean "true" and "false" are indicated with "y" and "n" respectively. A boolean option without a value is assumed to be "true". For filename arguments, "-" means either stdin or stdout as appropriate. Each option is described in detail below.

Parameters

apid_list
The name of a configuration file for the SwiftTypedPacketReader which lists the packet types for various APIDs.

infile String (default = -)
The input file name.

outfile String (default = -)
The output file name. The output file should not be the same as the input file.

trash
The name of a file to which packets deleted by uniquing will be appended. If this is an empty string, deleted packets will be discarded. This parameter is ignored if the "unique" parameter is false.

unique
Should the packets be "uniqued" after sorting?.