I still don't understand why I cannot enter '65535' in the FITS Explorer window - as discussed in the Bug Reports section.
Surely this is a 'bug'?
I even tried to do this via a TeamViewer 'remote control' session today - with exactly the same results.
No other user has reported a similar problem, and I have no way to reproduce it. If this is a bug, it is certainly an obscure, hardware-related bug. Let's see if the new version, which uses a new version of the Qt library (4.6.1), solves this issue.
In the meanwhile, if you have a wired keyboard at hand (from other computer for example), you could try replacing your current wireless one.
There is nothing 'odd' about my FITS data format - it passes FitsViewer inspection with no problems - and I have never failed to be able to open the images in any other software. I just happen to be using 32-bit floating point data storage - and PI happily opens that data format ALL THE TIME.
I've said it's odd,
not incorrect as per the FITS standard
The oddity is in the fact that your camera control software is storing raw CCD data as floating point numbers. This is a conceptual error because raw CCD observations are discrete by nature, and hence they must be stored as integer numbers, which is what they are. Not to mention the fact that 16-bit integer data are being stored as 32-bit numbers, which wastes a 50% of storage space unnecessarily and tends to provide a false impression of increased accuracy.
Floating point pixel storage must only be used when the data are being represented as real or complex numbers
for a plausible reason. This only happens when the data don't correspond to direct, physical, raw observations. Real or complex floating point representations are often plausible when the data are being post-processed.
The fact that a given file is correct as per applicable standards does not imply that it is valid from a computational point of view.
All of the above is just my opinion, which is, as every opinions, open to discussion.
The problem ONLY exists when PI rescales to [0,1] - and even then it is ONLY a problem if the image does not have a MAX ADU value, and yet the data must be scaled to fit the [0,1] range as if it DID have such a MAX ADU value (of 65535, in this case). In other words, if the ACTUAL maximum ADU value in an image being opened was, say, 32767.00000000 - then it should be rescaled to 0.500000, not (as is the current case) to 1.00000
Agreed. But as you know, this happens because you cannot specify a custom FITS input range for floating point data, due to a problem with your keyboard, as we've discussed above.
Honestly, right now, this bug is not just a 'gripe' for me - the inability to be able to rescale correctly is a PixInsight 'showstopper' for me.
Okay. Let's solve the problem in a truly dirty way (which, as all dirty solutions, works. Only who has programmed in assembler knows the true meaning of this sentence, so I'm sure you know what I mean here).
Do the following:
1. Define
any FITS floating point input range using the FITS Format Preferences dialog. That is, define that incredibly odd range that you get with your keyboard. The actual values don't matter; we only want to be sure that the corresponding configuration data are being generated.
2. Exit PixInsight.
3. Open Windows Explorer and locate PixInsight's configuration file. It is the following file on Windows Vista:
%APPDATA%\Pleiades\PixInsight.ini
where %APPDATA% is usually:
C:\Users\<user-name>\AppData\Roaming
on Windows Vista and Windows 7.
4. The configuration file is a plain text file. Open it with a good code editor (PixInsight's Script Editor can be used, but then you'll need to make a temporary copy of the file, as PixInsight is using it).
5. Search for the following two lines of text (they should be together in the file, and in this order):
ModuleData\FITS\FITSLowerRange=<whatever1>
ModuleData\FITS\FITSUpperRange=<whatever2>
where <whatever1> and <whatever2> are the strange values that you entered on the FITS Format Preferences dialog. Change these values so that the two lines are exactly as follows:
ModuleData\FITS\FITSLowerRange=0
ModuleData\FITS\FITSUpperRange=65535
6. Save the file.
7. Launch PixInsight. Now your FITS files will load OK.
let me know how it goes.