org.mbari.hobilabs
Class HRBinaryConverter

java.lang.Object
  extended byorg.mbari.hobilabs.HRBinaryConverter

public class HRBinaryConverter
extends java.lang.Object

Useful class for converting binary hydrorad data files to ascii. This class requires that complete Hydrorad messages are in the data. This includes the instrument id,serial number, and channel information. If you need to parse a data file that doesn't contain complete messages, ony data, then use HRParser. HRParser is the engine used by HRBinaryDecoder to decode the data.

The output from this is essentially the same as HRCAL.EXE from hobilabs. The main differences are C-style comments (lines that begin with '#') and tab- delimited rather than comma delimited data.


Use this class as:

HRBinaryConverter hbd = new HRBinaryConverter( ... );
hbd.decode();

or call the main method.


Version:
: $Revision: 1.3 $

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement. This information should not be published or distributed to third parties without specific written permission from MBARI.


Copyright 2002 MBARI.
MBARI Proprietary Information. All rights reserved.



Author:
: $Author: brian $

Constructor Summary
HRBinaryConverter(java.io.File infile, java.io.File calfile, java.io.File outfile, java.lang.String channel)
           
HRBinaryConverter(java.lang.String infile, java.lang.String calfile, java.lang.String outfile, java.lang.String channel)
           
 
Method Summary
 void convert()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HRBinaryConverter

public HRBinaryConverter(java.io.File infile,
                         java.io.File calfile,
                         java.io.File outfile,
                         java.lang.String channel)
                  throws java.lang.IllegalArgumentException
Parameters:
infile - Name of the binary data file to read
calfile - Name of the calibration file
outfile - Name of the ascii text file to create

HRBinaryConverter

public HRBinaryConverter(java.lang.String infile,
                         java.lang.String calfile,
                         java.lang.String outfile,
                         java.lang.String channel)
                  throws java.lang.IllegalArgumentException
Method Detail

convert

public void convert()
             throws java.io.IOException
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)