I am writing a script for automation in pysiril and want to preserve the scaled values in each pixel after math operations, but pm seems to want to re-scale between 0 and 1 before saving. I need 32 bit fits (not integer only) but I want the values to exceed 1.0 if that is what the math produces. For example:
in above the $ symbol got lost by this text interpreter, orig should be enclosed
When opening fdsu.fits the values are not 100 times the values in orig, but scaled to something much smaller, and some of the values should exceed 1.0.
Is there a way to preserve the real values? I do photometric measurements of sky brightness and need to keep the digital numbers from the original image scaled properly after the math operations and save as a floating point fits.
figured it out. the original was a 16 bit tif file. when siril saves as fits 32 bit, the range is 0 to 1, so all the values are divided by 65536. Once that is known, the rest proceeds as expected. I had expected the tif to fits would preserve the original values.