Author Topic: PixInsight shows pixel values as 0-1 floats but the FITS file contains 0-64K  (Read 14255 times)

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Hi Sander and Carlos,

I am working on a new FITS support module right now. It will be able to load floating point FITS files with any data range (including Envisage floating point FITS of course).

Our new implementation will be both fully standards-compliant and much more flexible. As soon as I have a new module, I'll upload it for all of you to try it out and criticize it.

Sander, you have a PM ;)
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
I have uploaded new versions of all file format support modules.

The FITS and TIFF modules support now floating point images in arbitrary ranges, thanks to enhanced user-defined settings.

In addition, several important bugs and regressions have been fixed.

Please refer to this thread on the Announcements section.

Thank you.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Hi Juan,

I've been traveling and will try the new module tonight (I'm in CA now). I tried some processing of my images while on the plane but of course PCL didn't work :-)

Thanks for turning this around so quickly!

Best,

  Sander
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Hi Juan,

I tried the new module last night. Thank you again for turning this around so quickly. Here's what I did:

- loaded an Envisage FITS-float image. This resulted in the range dialog being popped up. I specified 0-65535 and the image loaded immediately and with the grey levels I expected. Super!
- tried to save the Envisage image. This I could not do. Even though the data was changed the 'save' icon remained greyed out. I suppose we could argue what should happen in this case but I thought I'd point it out.
- did a save-as in FITS float
- loaded the saved FITS image, this did not show the range dialog and loaded fine, with the expected 0-1 range
- set the default range for FITS files to 0-65535, loaded Envisage float image. No dialog was shown, image loaded fine.
- loaded earlier saved 0-1 FITS file. This did not load OK. Effectively all pixels were 0.


I conclude from this that the preset range is of limited use if you ever save your FITS files in PCL and I suspect most do. I don't advocate removing the setting as it works well in the default 0-1 range but maybe something can be done to improve this. My suggestion is to use the preset as the default settings in the dialog that pops up when a non 0-1 file gets loaded. This notifies the user that the file is about to get converted during loading and remembers the user's preferred setting to make this process easy. Maybe this is accomplished with one of the 'ask' settings in preferences, I did not pursue this further.

Small typo in the settings, it says 'readed' somewhere. That should be 'read' :-)

Best,

  Sander
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity