﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
38	BSCALE/BZERO Processing in FITS Read	robert.desonia@…	eugene	"Since the psImageReadSection does not specify the desired datatype of the output
image, I'm, therefore, assuming that it should match the datatype of the file
(i.e., same as the bitPix).  This is a problem, however, if BSCALE!=1 or
BZERO!=0.  CFITSIO, by default, applies the file's BSCALE/BZERO to the data at
read time and might result in a pixel value range not matching the datatype's range.

There are three options that come to mind:
1.  Ignore the BSCALE/BZERO of the image file altogether (using fits_set_bscale)
2.  Add a psElemType parameter in which the output image should be.  
3.  If BSCALE!=1 || BZERO!=0, force the output image type to be a float (or
double if file datatype is 32-bit int as to preserve precision?).  

Let me know which behavior you prefer me to implement.

-rdd"	defect	closed	high		PSLib SDRS	unspecified	normal	fixed		
