Tool: strip_annotation
Description
This tool checks to see if a file contains plain, unannotated
CCSDS telemetry packets. It does this by attempting to read the first few
packets from a file and checking header values like the version field.
It exits with status 0 if the fiel appears to contain CCSDS telemetry,
and exits with status 1 if the file does not. Status > 1 indicates an error.
Option Summary
Option | Argument Type | Default Value |
---|
-command_check |
|
|
-head2_check |
|
|
-infile |
String |
- |
-npackets |
|
|
-outfile |
String |
- |
-telemetry_check |
|
|
-version |
|
|
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
- command_check
- Check that the packet type bit is set to "command".
This parameter is ignored if telemetry_check=true.
- head2_check
- Check that the header indicates the packet contains a
secondary header.
- infile String (default = -)
- The file to be checked.
- npackets
- Number of packets to verify at the beginning of the file.
If the file contains fewer than this number of packets, it is not
considered an error. An empty file will be called CCSDS.
- outfile String (default = -)
- telemetry_check
- Check that the packet type bit is set to "telemetry".
- version
- The value of the CCSDS version number to expect. Currently, this
should always be the default, 0.