DIVFILE
Divides a single packetized science data file. The user specifies the
packet and segment at which to perform division; these packets
are placed in the output file. If a division point is specified in
the middle of a packet, the appropriate segments of the packet are
zero-filled in the output file.
Format:
DIVFILE -i input_file -o output_file -s start_packet -e end_packet
[-f first_segment] [-l last_segment]
Context
Inputs
Outputs
Constraints
Parameters
Input_file
The name of the packetized science data file to be divided.
Output_file
Start_packet
The desired first packet to be copied into the output file.
End_packet
The desired last packet to be copied into the output file.
First_segment
Optional parameter that specifies the first segment of the first packet to
be be copied into the output file. All segments preceding the first_segment
are zero filed.
Last_segment
Optional parameter that specifies the last segment of the last packet to
be be copied into the output file. All segments following the last_segment
are zero filed.
See_also
CATFILES Concatenate a pair of packetized files producing a new file
MODPKT A binary editor to modify individual mnemonic values in an
EDT file
MOVE_REC Move a range of packets within a packetized file (IN PLACE)
PKX_HEADERS List the headers of a range of packets
Examples
$ divfile -i Y2J50301R.SHX -o y.shx1 -s 1 -e 1
$ divfile -i Y2J50301R.SHX -o y.shx2 -s 2 -e 2
These commands will divide the input SHX file (which has 2 packets)
into two separate files, each containing one packet. The user
might then modify the second file using the utility MODPKT to make
it look like it came from a troubled observation, and then append
it to the troubled SHX file with the command CATFILES.
$ divfile -i Z25M5508T.PKX -o z.pk2 -s 3 -e 3
This command extracts the third packet from the input file and
places it into the file z.pk2.