[fitsbits] Output array type when BZERO is an integer {External}

William Pence wdpence2000 at yahoo.com
Tue Mar 12 15:21:50 EDT 2024


I think the confusion here comes from thinking that BZERO can have an integer value.  This is incorrect because by definition BZERO always has a floating point value even if the decimal point is not explicitly present, and even if the keyword is not actually present in the header. 

Bill

> On Mar 12, 2024, at 1:21 PM, Barrett, Paul via fitsbits <fitsbits at listmgr.nrao.edu> wrote:
> 
> 
> I'll ask this question one more time and then I'll let it go.
> 
> I understand that the default behaviour for BZERO and BSCALE creates a floating point array because of the typical upconversion rules. However, I'm not clear about the data type for the special case where BZERO is an integer. In this case, it appears that BZERO is added first to the integer array before converting it to a floating point array, because BSCALE = 1.0 implies upconversion. Is this correct?
> 




More information about the fitsbits mailing list