Author Topic: Software Error PI in Function "HDRComposition"  (Read 4395 times)

Offline Christoph Puetz

  • PixInsight Addict
  • ***
  • Posts: 150
  • Peterberg Observatory (Germany, Saarland)
    • Fotos
Software Error PI in Function "HDRComposition"
« on: 2010 May 11 11:28:11 »
Hi all,

I tried HDRComposition with some (debayered and pre-aligned) Fits-Files, which were made with a Canon EOS 450d.
Please find attached a screenshot of the data entered in the HDRComposite function.
Here is the log of the processing console:

Processing script file: /home/chris/PixInsight/src/scripts/HDRComposition.js

Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1942_c_r_1.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%

Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1943_c_r_1.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%

Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1944_c_r_1.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%

Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1945_c_r_1.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%

Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1946_c_r_1.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%

Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1947_c_r_1.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%

Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1948_c_r_1.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%

Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1949_c_r_1.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%

*******************************************************************************
HDRComposition: Beging process
Images to combine, sorted in growing order of exposure time:
   /mnt/bilder/astro/20090927/debayer_cal_img_1944_c_r_1.fit
   /mnt/bilder/astro/20090927/debayer_cal_img_1943_c_r_1.fit
   /mnt/bilder/astro/20090927/debayer_cal_img_1945_c_r_1.fit
   /mnt/bilder/astro/20090927/debayer_cal_img_1942_c_r_1.fit
   /mnt/bilder/astro/20090927/debayer_cal_img_1946_c_r_1.fit
   /mnt/bilder/astro/20090927/debayer_cal_img_1947_c_r_1.fit
   /mnt/bilder/astro/20090927/debayer_cal_img_1948_c_r_1.fit
   /mnt/bilder/astro/20090927/debayer_cal_img_1949_c_r_1.fit
*******************************************************************************


Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1944_c_r_1.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%

Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1943_c_r_1.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%
*** Error [000]: /home/chris/PixInsight/src/scripts/HDRComposition.js, line 85: Assersion falied: Error calculating intensity map! [high range problem: no samples between 0.6-0.8]


Any help / ideas are welcome.
Kind regards,
Christoph
Kind regards,
      Christoph
---
ATIK 383L+, Canon EOS 450d, modified,
Canon EOS 500d, 
20" Planewave CDK, 6" APO Starfire Refractor,
Celestron 8", Skywatcher ED80,
Peterberg Observatory (www.sternwarte-peterberg.de)
PixInsight, PHD-Guiding
private URL: www.ccdsky.eu

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: Software Error PI in Function "HDRComposition"
« Reply #1 on: 2010 May 11 11:47:38 »
Quote
[high range problem: no samples between 0.6-0.8]

I think that this is the source of the problem. It says that the debayer_cal_img_1943_c_r_1.fit file has no pixel values in that range, so the script is unable to get to the next step.

Please try this:
a) Make sure that all your files are in exposition time order.
b) Open them, and check that they cover (almost) the whole normalized dynamic range. It is supposed that intermediate, and the loger exposured frames will have saturated data (i.e. = 1). Also they should have been bias substracted.

Also, if you have a series of images with the same exposure time, it is better to integrate them, and then use the "master light" for that given exposure time.
Regards,

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

Offline Christoph Puetz

  • PixInsight Addict
  • ***
  • Posts: 150
  • Peterberg Observatory (Germany, Saarland)
    • Fotos
Re: Software Error PI in Function "HDRComposition"
« Reply #2 on: 2010 May 13 03:50:46 »
Thank you Carolos for your kind replay,

I did the following:

1. I sorted all  pics in order of ascending exposure time.
2. Bias Frames are already subtracted.
3. I used the application form as described in the attached screenshot.

Now I still got 2 error messages:
*** Warning [156]: /home/chris/PixInsight/src/scripts/HDRComposition.js, line 171: assignment to undeclared variable point
*** Error [000]: /home/chris/PixInsight/src/scripts/HDRComposition.js, line 85: Assersion falied: Error calculating intensity map! [high range problem: no samples between 0.3-0.9]

The second message as before. The first error message is new to me.
Can I check the dynamic range of a frame in PI with a special function ?

Thanks !!
Christoph

Processing Console display:

run -execute-mode=auto "/home/chris/PixInsight/src/scripts/HDRComposition.js"

Processing script file: /home/chris/PixInsight/src/scripts/HDRComposition.js

Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1945_c_r_1.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%

Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1946_c_r_1.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%

Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1947_c_r_1.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%

Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1948_c_r_1.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%

Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1949_c_r_1.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%

*******************************************************************************
HDRComposition: Beging process
Images to combine, sorted in growing order of exposure time:
   /mnt/bilder/astro/20090927/debayer_cal_img_1945_c_r_1.fit
   /mnt/bilder/astro/20090927/debayer_cal_img_1946_c_r_1.fit
   /mnt/bilder/astro/20090927/debayer_cal_img_1947_c_r_1.fit
   /mnt/bilder/astro/20090927/debayer_cal_img_1948_c_r_1.fit
   /mnt/bilder/astro/20090927/debayer_cal_img_1949_c_r_1.fit
*******************************************************************************


Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1945_c_r_1.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%

Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1946_c_r_1.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%
*** Warning [156]: /home/chris/PixInsight/src/scripts/HDRComposition.js, line 171: assignment to undeclared variable point

PixelMath: Processing view: debayer_cal_img_1945_c_r_1
Writing swap files...
810.48 MB/s
Calculating view statistics...
Solved 1 invariant subexpression(s).
Executing PixelMath expression: combined RGB/K channels:$T - Med(bA) + 0.05: 100%
Truncating to [0.0000000000,1.0000000000]: 100%
0.816 s

PixelMath: Processing view: debayer_cal_img_1946_c_r_1
Writing swap files...
870.83 MB/s
Calculating view statistics...
Solved 1 invariant subexpression(s).
Executing PixelMath expression: combined RGB/K channels:$T - Med(bA) + 0.05: 100%
Truncating to [0.0000000000,1.0000000000]: 100%
0.902 s
 
Kind regards,
      Christoph
---
ATIK 383L+, Canon EOS 450d, modified,
Canon EOS 500d, 
20" Planewave CDK, 6" APO Starfire Refractor,
Celestron 8", Skywatcher ED80,
Peterberg Observatory (www.sternwarte-peterberg.de)
PixInsight, PHD-Guiding
private URL: www.ccdsky.eu

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: Software Error PI in Function "HDRComposition"
« Reply #3 on: 2010 May 13 05:27:30 »
Hi  :)

Yes, use the Histogram. You may move the sliders of the black and white points to see how many pixels are at either side.
Regards,

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

Offline Christoph Puetz

  • PixInsight Addict
  • ***
  • Posts: 150
  • Peterberg Observatory (Germany, Saarland)
    • Fotos
Re: Software Error PI in Function "HDRComposition"
« Reply #4 on: 2010 May 16 12:59:05 »
OK!  :)

It seems, that after applying the Histogram function to the "problem FITS files", the HDR Combine seems to work.
But - also I receive a result, I got the message
*** Warning [156]: /home/chris/PixInsight/src/scripts/HDRComposition.js, line 171: assignment to undeclared variable point

This seems to be nothing serious, but may be interesting to you :

PixInsight Core 01.06.00.0592 (x86_64)
Copyright (C) 2003-2010 Pleiades Astrophoto
----------------------------------------------------------------------
Welcome to PixInsight. Started 2010 Mai 16 19:54:44 J2455333.32968 UTC

* Parallel processing enabled: Using 2 logical processors.
* Thread CPU affinity control enabled.
* Real-time thread scheduling enabled. Maximum thread priority: 99.
* PSM AutoSave enabled. Auto-save period: 30 seconds.

run -execute-mode=auto "/home/chris/PixInsight/src/scripts/HDRComposition.js"

Processing script file: /home/chris/PixInsight/src/scripts/HDRComposition.js

Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1942_c_r_1_20100516192909.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%

Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1943_c_r_1_20100516192916.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%

*******************************************************************************
HDRComposition: Beging process
Images to combine, sorted in growing order of exposure time:
   /mnt/bilder/astro/20090927/debayer_cal_img_1942_c_r_1_20100516192909.fit
   /mnt/bilder/astro/20090927/debayer_cal_img_1943_c_r_1_20100516192916.fit
*******************************************************************************


Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1942_c_r_1_20100516192909.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%

Reading image:
/mnt/bilder/astro/20090927/debayer_cal_img_1943_c_r_1_20100516192916.fit
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%
*** Warning [156]: /home/chris/PixInsight/src/scripts/HDRComposition.js, line 171: assignment to undeclared variable point

PixelMath: Processing view: debayer_cal_img_1942_c_r_1_20100516192909
Writing swap files...
805.80 MB/s
Calculating view statistics...
Solved 1 invariant subexpression(s).
Executing PixelMath expression: combined RGB/K channels:$T - Med(bA) + 0.05: 100%
Truncating to [0.0000000000,1.0000000000]: 100%
0.860 s

PixelMath: Processing view: debayer_cal_img_1943_c_r_1_20100516192916
Writing swap files...
711.82 MB/s
Calculating view statistics...
Solved 1 invariant subexpression(s).
Executing PixelMath expression: combined RGB/K channels:$T - Med(bA) + 0.05: 100%
Truncating to [0.0000000000,1.0000000000]: 100%
0.819 s
 aLh 0.6753455698490143,0.6909408569335938,0.6965229511260986
 aSh 0.7985127568244934,0.80164635181427,0.8024406433105469
 aLl 0.2437039613723755,0.24623647332191467,0.2681434452533722
 aSl 0.3052504062652588,0.4277227222919464,0.46379518508911133
 S: 1.1427590410017918,0.8408363922241836,0.79052674924661

PixelMath: Processing view: LongPrim
Writing swap files...
604.42 MB/s
Executing PixelMath expression: channel #0:(($T[0] - 0.05)*1.1427590410017918) + 0.05: 100%
Executing PixelMath expression: channel #1:(($T[1] - 0.05)*0.8408363922241836) + 0.05: 100%
Executing PixelMath expression: channel #2:(($T[2] - 0.05)*0.79052674924661) + 0.05: 100%
Truncating to [0.0000000000,1.0000000000]: 100%
3.246 s

PixelMath: Processing view: Mask_debayer_cal_img_1943_c_r_1_20100516192916
Writing swap files...
834.55 MB/s
Executing PixelMath expression: combined RGB/K channels:Max(debayer_cal_img_1943_c_r_1_20100516192916[0],debayer_cal_img_1943_c_r_1_20100516192916[1],debayer_cal_img_1943_c_r_1_20100516192916[2]): 100%
Truncating to [0.0000000000,1.0000000000]: 100%
0.609 s

ATrousWaveletTransformV1: Processing view: Mask_debayer_cal_img_1943_c_r_1_20100516192916
Writing swap files...
806.17 MB/s
À trous wavelet transform: 100%
Inverse à trous wavelet transform: 100%
Normalizing sample values: 100%
1.068 s

PixelMath: Processing view: LongPrim
Writing swap files...
216.38 MB/s
Executing PixelMath expression: combined RGB/K channels:debayer_cal_img_1942_c_r_1_20100516192909: 100%
Truncating to [0.0000000000,1.0000000000]: 100%
0.343 s
Mask_debayer_cal_img_1943_c_r_1_20100516192916: Masking from swap files...

Writing file:
/tmp/hdr.fits
Writing FITS image: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%
Writing swap files...
854.82 MB/s
Reading swap files...
1113.09 MB/s
Writing swap files...
887.24 MB/s
Reading swap files...
1078.30 MB/s

Reading image:
/tmp/hdr.fits
Reading FITS: 32-bit floating point, 3 channel(s), 4290x2856 pixels: 100%



Thank you for your help !! ;D
Christoph
Kind regards,
      Christoph
---
ATIK 383L+, Canon EOS 450d, modified,
Canon EOS 500d, 
20" Planewave CDK, 6" APO Starfire Refractor,
Celestron 8", Skywatcher ED80,
Peterberg Observatory (www.sternwarte-peterberg.de)
PixInsight, PHD-Guiding
private URL: www.ccdsky.eu