Using BBMerge

BBMerge merges the ASCII comma delimited format data (created by using BBConv), back into the raw data file format, resulting in a new raw data file.

	NOTE.  The ASCII text file and the BroadBand data input file should have the same number of records.  If the text file contains fewer records, then zero values will be merged into the remaining BroadBand data file records.  If the BroadBand data file has fewer records, then the remaining ASCII text file will be ignored.
To merge a file, do the following.

1.	Enter the name and path of the BroadBand ADCP raw data in the BB Input File Name box or use the browse button to locate the file.  BBMerge "remembers" the input and output directory if the Browse button "..." is selected.

2.	Enter the name and path of the decoder file in the Decoder File Name box or use the browse button to locate the file.

3.	Enter the name and path of the ASCII file in the ASCII File Name box or use the browse button to locate the file.

4.	Enter the name and path of the new BroadBand ADCP raw data file in the BB Output File Name box or use the browse button to locate the file.

5.	Enter the Start Ensemble Number.

6.	Enter the End Ensemble Number.

7.	Press the Merge button to begin.

8.	Press the Exit button to exit BBMerge.

You can run BBMerge in the batch mode by writing a simple DOS batch file (*.bat) that contains command lines with the files that you want to process.  For each file to be processed, add a line to the batch file specifying the name of the raw data file to be merged, the name of the decoder file, the name of the ASCII file, the name of the new output file, and the starting and ending ensemble numbers.

	NOTE.  For unattended operation, make sure that output file does not exist; otherwise the batch file will pause to confirm overwriting the file.
Sample Batch File

start /w "C:\Program Files\RD Instruments\Utilities\BBMerge.exe" -in:InputFile -dec:DecoderFile –ascii:ASCIIFile -out:OutputFile