Tool: apid_mux

Description

This tool "bins" packets by apid. No heed is paid to the time or obsid. It simply multiplexes one input stream into many output files, one for each apid. The file names are of the form

apid_0x.ccsds.

Option Summary

OptionArgument TypeDefault Value
-apid_list String all
-errors errors
-gap 100.
-infile String -
-obs_dir String obs
-pushback String pushback
-trash String none

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 String (default = all)
SwiftTypedPacketReader configuration file, listing packet types by APID. If "all" is specified, then all packets types are processed.

errors (default = errors)
File to which will be appended packets which cannot be classified, even with possible future information. Under normal conditions nothing will be written to this file.

gap (default = 100.)

infile String (default = -)
The file containing packets to be sorted.

obs_dir String (default = obs)
Directory where non-LDP packets will be written.

pushback String (default = pushback)
File to which will be appended packets which cannot be sorted now, but may be sortable in the future. These include HEAD2 packets not covered by the current timeline and UVOT science packets which are not part of complete groups.

trash String (default = none)
File to which will be appended discarded packets, such as those which fail the apid_list test. A value of "none" means packets should be discarded instead of being sent to the trash stream.