Author Topic: BIAS frame issue  (Read 6907 times)

Offline wjlockett

  • Newcomer
  • Posts: 2
BIAS frame issue
« on: 2011 August 21 03:31:46 »
Hi

Having a problem with Bias frames acquired in AA5.   Noticed in the FITS headers of AA files that BZERO is absent in the short exposure bias frame but present (and set at 32768) in the longer darks and images.  When loading into Pixinsight the bias frames get the 32768 added anyway with obvious consequences!   Simple enough to subtract it again with Pixlemath but is there a way to stop the problem when loading.

Does it matter if substraction is done on the master bias after integration, or on the indiviual bias frames before integration.
 


Thanks

John
« Last Edit: 2011 August 21 03:51:25 by wjlockett »

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: BIAS frame issue
« Reply #1 on: 2011 August 21 11:35:11 »
Hi,

something I think you should mention to the friendly folks that write AA, if you haven't already :)

If you average your bias frame it won't matter if you add or subtract a constant to each frame or to the final image. Write down the operation on a piece of paper for a single pixel and you'll see. I think for median it's the same but it's not as obvious. I'm not sure about the other combination methods.
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 Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: BIAS frame issue
« Reply #2 on: 2011 August 21 11:54:50 »
Hi

I have had this discussion with Fabio and Juan long ago and AA5 is not incorrect , as Juan would say it a fits thingy problem  :surprised:

Anyway go to format explorer-select fits -mis options-default integer - select " signed integer images store data" this will load up the file correctly

Juan does recommend this is disabled by default >:D

Harry
Harry Page

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: BIAS frame issue
« Reply #3 on: 2011 August 21 12:13:36 »
Quote
I have had this discussion with Fabio and Juan long ago and AA5 is not incorrect

Not exactly. The FITS standard allows to do this, but I think it is an incorrect way to store raw CCD data, which should always be stored as unsigned integers. Even worse when some raw CCD images (bias frames) are being stored as signed FITS images and others (lights, flats, ...) as unsigned FITS images using the BZERO/BSCALE trick. All applications have their idiosyncrasies, but this case is pretty inconsistent.

Anyway the "Signed integer images store raw data" setting allows you to load these peculiar bias frames in PixInsight. A better way that doesn't require you to modify global FITS preferences is  using format hints.  Format hints are special control words that can be used with some PixInsight tools, such as ImageCalibration and ImageIntegration. In this case, you can write this hint:

signed-is-physical

in the input hints parameter of ImageIntegration (Format Hints section) when you integrate your master bias frame.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: BIAS frame issue
« Reply #4 on: 2011 August 21 13:10:48 »
Hi
Yes good tip master Juan , did not think about that  :yell:

Harry
Harry Page

Offline wjlockett

  • Newcomer
  • Posts: 2
Re: BIAS frame issue
« Reply #5 on: 2011 August 22 03:39:33 »
Thanks for your prompt and helpful replies.  I would never have worked that out for myself!

Offline RBA

  • PixInsight Guru
  • ****
  • Posts: 511
    • DeepSkyColors
Re: BIAS frame issue
« Reply #6 on: 2011 August 22 08:01:56 »
In this case, you can write this hint:

signed-is-physical

in the input hints parameter of ImageIntegration (Format Hints section) when you integrate your master bias frame.

Sorry if I missed it but is there any place where all the possible format hints are described?

Offline Alejandro Tombolini

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1267
    • Próxima Sur
Re: BIAS frame issue
« Reply #7 on: 2011 August 22 08:11:21 »

Offline RBA

  • PixInsight Guru
  • ****
  • Posts: 511
    • DeepSkyColors
Re: BIAS frame issue
« Reply #8 on: 2011 August 22 08:21:09 »
Sweet, thanks!! I knew I had seen something like that somewhere! It's now bookmarked!

PS: This is what I'm talking about when I mention scattered documentation that could be compacted without much effort. While a "true" image processor doesn't stop in the absence of official, nicely structured and all-in-one-place documentation, a "true" software developer tries to make sure that documentation they produce about their software isn't just scattered all over the place.

...Thought I'd mention it ;)


Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: BIAS frame issue
« Reply #9 on: 2011 August 22 08:29:20 »
Really. I think Juan has slight masochistic tendencies. He's been beaten up over (lack of) documentation for so long he'd miss it :)

Just teasing Juan.
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 RBA

  • PixInsight Guru
  • ****
  • Posts: 511
    • DeepSkyColors
Re: BIAS frame issue
« Reply #10 on: 2011 August 22 08:56:10 »
Really. I think Juan has slight masochistic tendencies. He's been beaten up over (lack of) documentation for so long he'd miss it :)

He's never going to miss it. As it's written, this issue is set to hunt him forever.
IMHO, and sorry for hijacking a thread once again, this is a productivity vs quality vs swiftness issue.

Producing just one set of complete documentation versus a quick one first and a complete one later increases productivity, because you do it only once, and it saves you some explaining to do while the official docs are released.

Producing one set of quick documentation first and a complete one later increases quality in the later because then you take your time to write top-notch official docs, and also furnish them with details gathered from people's questions and feedback while they use the tool before official docs are released.

Producing first one set of quick documentation is driven by giving something to the users quickly, because producing the later more extended and "official" docs will take longer.

I don't care that much which approach is used, particularly since each approach can ensure quality either way, but as it is, the time between the quick docs and the more official docs is long enough to be a dragging issue for the rest of times.