cdm/src/main/java/ucar/nc2/iosp/nids/Nidsheader.java
int isZlibHed( byte[] buf ){
        short b0 = convertunsignedByte2Short(buf[0]);
        short b1 = convertunsignedByte2Short(buf[1]);

        if ( (b0 & 0xf) == Z_DEFLATED ) {
          if ( (b0 >> 4) + 8 <= DEF_WBITS ) {
            if ( (((b0 << 8) + b1) % 31)==0 ) {
              return 1;
            }
          }
        }

        return 0;

    }
int isZlibHed( byte[] buf ){
        short b0 = convertunsignedByte2Short(buf[0]);
        short b1 = convertunsignedByte2Short(buf[1]);

        if ( (b0 & 0xf) == Z_DEFLATED ) {
          if ( (b0 >> 4) + 8 <= DEF_WBITS ) {
            if ( (((b0 << 8) + b1) % 31)==0 ) {
              return 1;
            }
          }
        }

        return 0;

    }
int isZlibHed ( byte [ ] buf ) { short b0 = convertunsignedByte2Short ( buf [ 0 ] ) ; short b1 = convertunsignedByte2Short ( buf [ 1 ] ) ; if ( ( b0 & 0xf ) == Z_DEFLATED ) { if ( ( b0 >> 4 ) + 8 <= DEF_WBITS ) { if ( ( ( ( b0 << 8 ) + b1 ) % 31 ) == 0 ) { return 1 ; } } } return 0 ; }
Name:       IsZlibed

Purpose:    Check a two-byte sequence to see if it indicates the start of
a zlib-compressed buffer
Name : IsZlibed