int E = drs.getBinaryScaleFactor();
//System.out.println( "DS E=" + E );
float EE = (float) java.lang.Math.pow((double) 2.0, (double) E);
//System.out.println( "DS EE=" + EE );
Grib2JpegDecoder g2j = null;
int numberPoints = 0;
try {
if (nb != 0) { // there's data to decode
String[] argv = new String[4];
argv[0] = "-rate";
argv[1] = Integer.toString(nb);
argv[2] = "-verbose";
argv[3] = "off";
//argv[ 4 ] = "-debug" ;
//argv[ 2 ] = "-nocolorspace" ;
//argv[ 3 ] = "-Rno_roi" ;
//argv[ 4 ] = "-cdstr_info" ;
//argv[ 5 ] = "-verbose" ;
g2j = new Grib2JpegDecoder(argv);
// how jpeg2000.jar use to decode, used raf
//g2j.decode(raf, length - 5);
// jpeg-1.0.jar added method to have the data read first
byte[] buf = new byte[ length - 5 ];
raf.read( buf );
g2j.decode( buf );
}
numberPoints = gds.getGdsVars().getNumberPoints();
//System.out.println( "DS GDS NumberPoints=" + gds.getNumberPoints() );
data = new float[numberPoints];
boolean[] bitmap = bms.getBitmap();