Grib2JpegDecoder

The Grib2JpegDecoder class is used to read the jpeg encoded data in Grib2 files and
makes available the data as a float array. Grib2JpegDecoder is an extraction of the
jj2000.j2k.decoder.Decoder class from the jj2000 5.1 release. There is more information
about jj2000 in the README.html and README-5.1.html files.

        //
        String[] argv = new String[4];
        argv[0] = "-rate"; // specify the decoding rate in bits per pixel
        argv[1] = Integer.toString(nb);  // number of bits per pixel
        argv[2] = "-verbose"; // args 2 and 3 turn off verbose
        argv[3] = "off";

        g2j = new Grib2JpegDecoder(argv);
        byte[] buf = new byte[ length - 5 ];
        raf.read( buf );
        g2j.decode( buf );

        g2j.data[ i ]; // data available 