Save as 16bit Fits instead of 32?
Hello, I'm working with another program that only supports 16bit Fits rather than 32bit. Currently APP is saving as 32bit, and I can't seem to find an option to change this to 16. Is there a way to change the bit depth APP saves for fits files to 16?
Mmmmmm, good question. I think it'll be 16-bit if the masters are 16-bit, but it would be nice to have a conversion for fits saving indeed. With saving to tif (you can select 8, 16 and 32-bit) and jpg it works. Let's tag Mabula (@Mabula-admin).
Vincent, my source files are all 16 bit fits. If I calibrate my lights and save the resulting data as fits, the files are 32bit. I thought perhaps the ability do change the output to 16bit fits was already present in APP and I was overlooking it. It's not something I would need to do on a regular basis, so not a big priority by any means. Thanks
Does this also happen when the (create 32-bit masters) option is unselected? If so, I have to say I don't think it does output to 16-bit in another way. Not that I'm aware of at least, never used photoshop to process further so never encountered it as a problem, but I certainly think it should be an option (@mabula-admin).
Let me explain in detail what APP does:
In 2) Calibrate, if you let APP create 32bits Masters, then the calibrated data will always be 32bits. If you disable the creation of 32bits masters, then the calibrated data will still be 16bits IF the light frames are 16bits. If the light frames are 32bits, then the calibrated frames will be 32bits as well.
Now if you create an integration, the result will always be 32bits in APP. The data normalization in 5) Normalize will convert all 8bit & 16bit data to 32bits. This is required for good data normalization and also ensures that APP, as an application, has no issue with normalizing data of different bit depths of different sources (different camera's/captures software).
So the integration will always be 32bits. However if you load the integration into the image viewer by double clicking on it, you can save it to another data format and/or depth with the save button below the histogram. You will be able to save it with or without a stretch applied. So if you just want the 32bits integration converted to 16bits then:
- double click on the integration in the frame list, this will load the integration into the image viewer.
- disable the stretch box next to the save button
- click on save
- save as FITS
- choose 16bits
Now, I would always recommed to not do this. You will be throwing away data which is very important to get a good processed result after stretching the data. So if you want to save the 32bits integration as 16bits, at least apply some stretch on it before saving it to 16bits.
Let me know if this is clear and makes sense 😉
Main developer of Astro Pixel Processor and owner of Aries Productions
Mmm, I just tried on a 32-bit integrated result, but I don't see an option to change the amount of bits. So step 5 doesn't show up for me. It only shows up for tiff and jpeg.