Author Topic: Saving Combined Files  (Read 4376 times)

Offline Martin

  • Newcomer
  • Posts: 19
Saving Combined Files
« on: 2010 April 18 14:51:53 »
Hello Group.
When I go to save a combined image as a FIT, I have several options.

If I save the combined image as a 16bit FIT (signed) the resultant image is fine, but if I want to save my image in a larger space, and select 32bit IEEE 754 Floating Point, PI strips the background out.  I mean, the resultant ADU value of the background is zero....so you have nothing to work with.  In the 16bit image, the background is in tact.  Why does PI do this?

cheers
Martin

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: Saving Combined Files
« Reply #1 on: 2010 April 18 15:08:58 »
Hmmm. When PixInsight saves at 32bits fp, everything is rescaled to the normalized dynamic range. That means, 0 is black, and 1 is white. Data should not be destroyed in any way. If a STF or the Histogram shows data clipping in this process, then something very wrong happened. Please confirm that.
Regards,

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

Offline Philip de Louraille

  • PixInsight Addict
  • ***
  • Posts: 289
Re: Saving Combined Files
« Reply #2 on: 2010 April 19 16:19:17 »
I am not seeing what you are seeing. I am on OSX 10.6 using the latest PI. I opened an unsigned 16-bit FIT and saved it as a 32-bit FP and was able to reopen it with all its details.
Is the problem you are seeing due to opening the saved 32-bit FP file with another program or within PI?
Philip de Louraille

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: Saving Combined Files
« Reply #3 on: 2010 April 20 03:58:30 »
Hi Martin,

If your original data (prior to 32-bit Float saving) was OUTWITH the [0.0, 1.0] 'native' range of PixInsight (which I suspect is maybe the case), then the way PI will interpret the 32-bitF data on re-load will vary depending on how you have configured the FITS format in the Format Explorer window.

Can you tell us what the current settings are for your PI implementation?

Cheers,
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline Martin

  • Newcomer
  • Posts: 19
Re: Saving Combined Files
« Reply #4 on: 2010 May 04 19:47:32 »
Gents
thanks for your replies, and sorry for the belated response.

So, my images are first calibrated in Maxim DL and saved as a 16bit signed FITS image.
I then open these calibrated images in PI, and perform alignment, and the alignment saves those aligned images also in 16bit signed FITS format.  If I then open those aligned images individually, they are fine, background in tact.

It is when I then take those PI aligned and saved images and combine them in PI that this 'error' occurs i.e when using 32bit FP format.

I am using PI versin 1.06.592 and I am using the Image Integration settings pretty much as per Harry's tutorial.

thanks
Martin

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: Saving Combined Files
« Reply #5 on: 2010 May 04 23:50:06 »
Hi Martin,

Please feel free to email me THREE of your images.

The first should be an example of a file 'straight out of' Maxim, after it has been calibrated.

The second should be one of your aligned images after this stage has been implemented in PixInsight

The third should be your 'ImageIntegrated' result

I need these in FITS format - so they might end up being huge files, perhaps too big for email. If that is the case, I would be happy to do a TeamViewer link-up to your PC, and 'examine' the files directly. Have a think and get back to me.

Cheers,
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline Jack Harvey

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 975
    • PegasusAstronomy.com & Starshadows.com
Re: Saving Combined Files
« Reply #6 on: 2010 May 05 05:21:06 »
Back when I used Maxim to cal my images I think I had this issue but solved it by having Maxim save the calibrated, or aligned or integrated images in 32 bit floating point and not 16 bit unsigned.  So you might try that?
Jack Harvey, PTeam Member
Team Leader, SSRO/PROMPT Imaging Team, CTIO

Offline Martin

  • Newcomer
  • Posts: 19
Re: Saving Combined Files
« Reply #7 on: 2010 May 09 18:24:15 »
Hi Niall...I will get those images to you.

Jack, I did as you suggested.  Took my PI aligned images, saved them all as IEEE Float, combined them in PI, saved the resultant file as 32bit float but every single background value was zero, and star values were extremely low...so you have nothing to work with.

Martin