Author Topic: CCd stack and osc camera  (Read 5690 times)

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
CCd stack and osc camera
« on: 2009 April 10 12:02:01 »
Is any body using ccd stack with pixinsight as when I export to PI from  ccd stack Pi rescales ( not unusual)
and I get colours that are not correct and a very large area before the main histogram peak.
It makes ccd stack osc stuff unusable. :(
I do not get this problem when I use ccd stack with mono images. :P

Any ideas anybody

Regards Harry
Harry Page

Offline Jack Harvey

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 975
    • PegasusAstronomy.com & Starshadows.com
CCd stack and osc camera
« Reply #1 on: 2009 April 10 14:11:28 »
I note this too.  One option is too color combine in ccdstack and save as a  scaled image  ie scaled tif
Jack Harvey, PTeam Member
Team Leader, SSRO/PROMPT Imaging Team, CTIO

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
CCd stack and osc camera
« Reply #2 on: 2009 April 10 15:37:13 »
Hi,

Could I see one of these FITS images? In this way I could diagnose (and perhaps find a workaround to) the problem.

Thanks!
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
CCd stack and osc camera
« Reply #3 on: 2009 April 11 00:24:19 »
Hi juan

Will upload to your server for your consideration


Regards Harry
Harry Page

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
CCd stack and osc camera
« Reply #4 on: 2009 April 13 13:43:53 »
Hi Harry,

I have downloaded your image from our anonymous ftp server. As far as I can tell, there's nothing wrong with it.

The file is a standards-compliant three-channel, 32-bit floating point FITS image (presumably a RGB color image). It has pixel values ranging from -29420 to +50299, approximately. This is an arbitrary range that must have a perfectly sound meaning in the context of the application that has created the file.

Unfortunately, the FITS standard says absolutely nothing about the range of numerical values that can be stored in a floating point FITS image. Much worse than that is the fact that there's no (standard) way to know anything about the actual range of numerical values a particular floating point image has been referred to. In simpler words, there's no way to know which values correspond to the black and white points to which pixel sample values refer in a floating point FITS image.

PixInsight uses the normalized [0,1] range to store and manipulate floating point images, where 0=black (meaning "no signal") and 1=white (meaning "full signal"). Besides a number of technical advantages that we won't discuss here, the [0,1] range allows PixInsight to store and manipulate five different data formats in a completely transparent way (for example, you define histogram parameters from 0 to 1, irrespective of the data format of a particular target image).

Since you are reading a floating point FITS image whose pixels don't fit into the [0,1] range, PixInsight asks you how that FITS image should be interpreted, in order to know how to rescale it to the [0,1] range. This behavior can be configured with the FITS Format Preferences dialog (available from the Format Explorer window). The default option is to ask the user, but you can configure it to perform a number of actions automatically.

To avoid problems associated with arbitrary floating point ranges, the best option is to export FITS files in 32-bit integer format, if possible, instead of 32-bit floating point. 32-bit integers provide an effective range that is much larger than the range of 32-bit floating point, and unambiguously define the actual dynamic range of the data (from 0 to 2^32-1). To maximize compatibility with other applications, it is advisable to use unsigned integers instead of signed integers.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
CCd stack and osc camera
« Reply #5 on: 2009 April 13 14:07:16 »
Here's a screen shot with Harry's image in PI and a STF applied:

http://forum-images.pixinsight.com/legacy/ccds-problems/01.jpg

I see nothing wrong with this image. The large unused portion at the left of the histogram is in the original image. I agree it isn't very nice, but there's nothing PixInsight can do to avoid it --except clipping the data without notice, which is something PixInsight will never do. It is easily fixed by simply adjusting the shadows clipping point with HistogramTransformation.

I simply accepted the FITS Floating Point Range Options dialog when opening the file. The default options just rescale all existing pixel values to PI's [0,1] native range, yielding the image you can see on the screen shot above.

What's wrong with this?
Juan Conejero
PixInsight Development Team
http://pixinsight.com/