A quality array is always produced in the output file. The quality of the input pixels are checked and output pixels produced from one or more 'good' input pixels have their quality byte set good. If an output pixel is bad then its quality is set to 'missing'.