Author Topic: Floating point FIT not displaying correctly  (Read 2697 times)

Offline nickg

  • Newcomer
  • Posts: 11
Floating point FIT not displaying correctly
« on: 2015 July 23 16:36:53 »

My workflow involves saving the stack as a 32-bit float FIT in CCDstack and importing it in PI. Sometimes it will display correctly using the default settings in STF, and others the white point is clipped and the image appears over exposed. In fact it seems no matter what adjustment I make in the STF makes no difference in the image looking normal. Saving it as a 16-bit TIFF seems to work every time. Any ideas?

Thanks,

Nick

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Floating point FIT not displaying correctly
« Reply #1 on: 2015 July 23 17:34:19 »
PI writes 32b float images with values in the range 0.0 to 1.0, and by default the fits reader expects to find the same range in fits files that it opens.

what is the range in your CCDstack file? if you open PI and then click the "format explorer" tab on the left, then double-click "FITS", what does the "floating point out-of-range policy" pane show?

imho it's likely that the CCDstack file has values greater than 1.0...

rob



Offline nickg

  • Newcomer
  • Posts: 11
Re: Floating point FIT not displaying correctly
« Reply #2 on: 2015 July 23 18:38:23 »
It says:

Minimum: -2.118679531250000e+005
Maximum: +6.598108593750000e+004

If I rescale it, I get the result I mentioned before. If I truncate it, it's all white. Is there a fix?

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Floating point FIT not displaying correctly
« Reply #3 on: 2015 July 24 09:37:45 »
can you post one of the images? it's hard to say anything without taking a look...

rob

Offline jkmorse

  • PixInsight Padawan
  • ****
  • Posts: 931
  • Two questions, Mitch . .
    • Jim Morse Astronomy
Re: Floating point FIT not displaying correctly
« Reply #4 on: 2015 July 24 09:42:36 »
Nick,

Welcome to the world of FITS incompatibilities.  I know exactly what you are experiencing since I have run into that problem many times myself.  After some fairly exhaustive research, here is a post setting out the fixes that should work under any circumstances:

http://pixinsight.com/forum/index.php?topic=8021.msg52728#msg52728

Love to hear if that fixes things and which step did the trick (for me its the input hints that usually do it, either singly or, in some tough cases, together).

Best,

Jim 
Really, are clear skies, low wind and no moon that much to ask for? 

New Mexico Skies Observatory
Apogee Aspen 16803
Planewave CDK17 - Paramount MEII
Planewave IFR90 - Astrodon LRGB & NB filters
SkyX - MaximDL - ACP

http://www.jimmorse-astronomy.com
http://www.astrobin.com/users/JimMorse

Offline nickg

  • Newcomer
  • Posts: 11
Re: Floating point FIT not displaying correctly
« Reply #5 on: 2015 July 28 07:57:56 »
Thanks for all the suggestions. As others have mentioned this happens sort of randomly, so when it does it seems that saving it as a 16-bit unsigned TIFF and converting it back to 32-bit FIT in PI seems to do the trick.

Regards,
Nick

Offline jkmorse

  • PixInsight Padawan
  • ****
  • Posts: 931
  • Two questions, Mitch . .
    • Jim Morse Astronomy
Re: Floating point FIT not displaying correctly
« Reply #6 on: 2015 July 28 09:16:18 »
Nick,

Only risk is that you lose the acquisition FITS header information which, depending on your processing techniques, may or may not be important.

Best,

Jim
Really, are clear skies, low wind and no moon that much to ask for? 

New Mexico Skies Observatory
Apogee Aspen 16803
Planewave CDK17 - Paramount MEII
Planewave IFR90 - Astrodon LRGB & NB filters
SkyX - MaximDL - ACP

http://www.jimmorse-astronomy.com
http://www.astrobin.com/users/JimMorse