Author Topic: How do I keep FITS files in native numerical range?  (Read 3401 times)

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
How do I keep FITS files in native numerical range?
« on: 2009 October 05 19:43:21 »

Hi,

when I load a 16bit integer FITS file I really don't want it converted to 0-1 float. How do I prevent this from happening? Statistics in particular are more meaningful in their native scale, IMO. I have fiddled with the FITS parameters but haven't found something that works. Setting the default scale to 0-65535 doesn't seem to affect anything.
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 Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: How do I keep FITS files in native numerical range?
« Reply #1 on: 2009 October 05 20:20:41 »
Hi Sander

Images are loaded in the native numerical range, nothing is changed. Internally, however, the use of templates changes them to the normalized range, so that's the output the Statistics objects show (both the process, as implemented, and the ImageStatistics class).

The Statistics process used to have output values at a user selected range... don't know why it does not now. Anyway, implementing a script that makes the traslation should be quite easy for you guys (I can get the javascript language... I'm a c++ boy :P ). Of course, a process is quite easy too ;)


Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com