sqdecode decodes the input channel, channel, (CHN format) by looking up each channel index in the input scalar quantizer, quantizer, (SQ format) and outputting the corresponding quantizer level to the output datfile (DAT format). The channel is produced with sqencode(1) , and the channel symbols are assumed to range from 0 to N-1, where N is the number of codewords in quantizer.
datfile may contain vectors, in general. The switch -d consequently determines the vector dimension of datfile. In the event that vector_dimension does not equal 1, vector_dimension channel symbols are collected (in order) and output to datfile as one vector.