sqencode encodes datfile (DAT format) using scalar quantization (SQ). sqencode uses input quantizer (SQ format) as the SQ codebook and outputs a channel of SQ indices to channel (CHN format). In general, datfile consists of vectors, and the scalar quantizer is applied separately to each vector component.