Author Topic: BatchPreprocessing - probem with masterimages  (Read 6012 times)

Offline Herbert_W

  • PixInsight Addict
  • ***
  • Posts: 204
    • Skypixels - Astrophotography by Herbert Walter
BatchPreprocessing - probem with masterimages
« on: 2013 August 26 08:12:22 »
Hi forum,

when I use flats and a master (bias or dark) a windows opens with an error message:

ImageCalibration
Cannot execute instance in the global context.
Reason: No master calibration frames or overscan regions
have been specified.


What is wrong?
No problem, to do it without masters, but many individual biases, darks.

win7 - 64bit, PI: 01.08.00.1023 Ripley (x64) RC7 (all updates)

Frames to download and test (1 Dark, 3 Flats)
http://www.skypixels.at/downloads/PI_Forum/PI_Forum_BBP_error.zip

I'm asking for support.

Thank you and best regards.
Herbert, Austria



Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: BatchPreprocessing - probem with masterimages
« Reply #1 on: 2013 August 26 10:09:07 »
Hi Herbert,

To use master calibration frames with the BPP script, do you check the "Use master ..." checkboxes?
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Herbert_W

  • PixInsight Addict
  • ***
  • Posts: 204
    • Skypixels - Astrophotography by Herbert Walter
Re: BatchPreprocessing - probem with masterimages
« Reply #2 on: 2013 August 26 10:23:47 »
Hi Juan,

yes, I did. I tried it again, to be sure ;-)
BPP creates two folders: calibrate > flat
and then come the message.

Thank you for the help and best regards.
Herbert, Austria

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: BatchPreprocessing - probem with masterimages
« Reply #3 on: 2013 August 26 11:04:23 »
Hmm, are you selecting any light frames? Bear in mind that BPP is for preprocessing of light frames; it doesn't work just for bias, darks and flats.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Herbert_W

  • PixInsight Addict
  • ***
  • Posts: 204
    • Skypixels - Astrophotography by Herbert Walter
Re: BatchPreprocessing - probem with masterimages
« Reply #4 on: 2013 August 26 12:11:53 »
Hi Juan,

Quote
Bear in mind that BPP is for preprocessing of light frames; it doesn't work just for bias, darks and flats.
If it is possible to make the master bias/dark/flat with many individual frames in BPP (without selecting lights) - and this is possible(!) - then
it should be possible to create for example a masterflat of individual frames using an already existing masterbias.

Did you check my frames? Maybe there is the mistake, but I cant find one.

Quote
ImageCalibration
Cannot execute instance in the global context.
Reason: No master calibration frames or overscan regions
have been specified.
What does it really mean?
According your suggestion (missing lights) the message should be like "Cannot execute without lights".

I hope we're not talking past each other.

Best regards.
Herbert, Austria


A practical example
My frames:
Darks
Flat       L/R/G/B/H/S/O (same EXPTIME, possible by dimmable light film)
Darkflat    L/R/G/B/H/S/O
Lights   L/R/G/B/H/S/O

1. Step:
Kalibrate Flats L with the individual Darkflats in BPP = Flat_L_cal
This step has to be extra, because BPP doesn’t offer a column for flatdarks.
This step results also in a Masterflatdark, which I can use for the other Flats R/G/B/H/S/O
And here the error happens.
2. Step: Kalibrate Lights with Darks and F_x_cal

I hope one understand me.

« Last Edit: 2013 August 26 13:17:19 by Herbert_W »

Offline Herbert_W

  • PixInsight Addict
  • ***
  • Posts: 204
    • Skypixels - Astrophotography by Herbert Walter
Re: BatchPreprocessing - probem with masterimages
« Reply #5 on: 2013 August 26 22:35:45 »
Hi Juan!

Here an analysis to BPP.

I did some combinations in BPP and everything works logical.

Columns Bias Dark Flat Light >green: available (Masterframe or individual frames); red: not available
Column ok > green: it works (BPP creates a masterframe); red: it doesn't work




Line 3: its logical - no masterframe/individual frames (bias or dark) to calibrate the flat
Line 8: its logical - no masterframe/individual frames (bias, dark, flat) to calibrate the light
Line 12: see line 3


Consequence for me:
1 BPP works fine
2 The error caused by the masterimage - see start entry for the link to the images.

But I cant find it :-(

Maybe you can locate the error.

Thank you and best regards.
Herbert, Austria


Additonal info: the images sent me a friend. He did the masterdark/-bias on his laptop (PixInsight) and sent the individual
flat- and lightframes unprocessed.


Offline MikeOates

  • PixInsight Addict
  • ***
  • Posts: 278
Re: BatchPreprocessing - probem with masterimages
« Reply #6 on: 2013 August 27 02:20:06 »
I am not at a computer with PI installed so I can't give specifics, but going off memory, as far as I know the BP script can't handle darkflats, you need to calibrate your flats before hand using the ImageCalibration process. To do that you will have to have already integrated your darkflats and bias frames and use those as masters for the flats in the ImageCalibration process, i.e. you are calibrating your flats as though they are lights.

After this, use your integrated flats as a master in the BP script.

Mike

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: BatchPreprocessing - probem with masterimages
« Reply #7 on: 2013 August 28 01:22:10 »
Hi Mike,

Quote
... as far as I know the BP script can't handle darkflats, you need to calibrate your flats before hand using the ImageCalibration process.

Please note that flat darks are supported by the BPP script. Just include all your dark frames, and the script will select the appropriate master dark frame to calibrate each flat and light frame. Master darks with the most similar exposure times are selected automatically. On the other hand, our dark scaling routines are very reliable and can compensate for large differences.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: BatchPreprocessing - probem with masterimages
« Reply #8 on: 2013 August 28 08:37:51 »
i really wish i could understand where these memes come from. a year+ back i heard "pixinsight does not use, require or handle dark flats" or something like that in another group. i went through the trouble of reading the source for BPP and discovered what you just said - the script tries its best to match lights and flats with darks of similar or matching duration. i did reply to that group pointing this out.

since then i keep hearing this idea posted here and there. very weird. maybe it was a longwinded way of saying "pixinsight's dark scaling is really good."

rob

Offline MikeOates

  • PixInsight Addict
  • ***
  • Posts: 278
Re: BatchPreprocessing - probem with masterimages
« Reply #9 on: 2013 August 29 02:30:52 »

Please note that flat darks are supported by the BPP script. Just include all your dark frames, and the script will select the appropriate master dark frame to calibrate each flat and light frame. Master darks with the most similar exposure times are selected automatically. On the other hand, our dark scaling routines are very reliable and can compensate for large differences.

Juan,

I did not know that, thank you for putting us straight on that, like Rob said, I read it on this forum that it did not work.

As I do dark-flats I will have to give it a go.

Mike

Offline jerryyyyy

  • PixInsight Old Hand
  • ****
  • Posts: 425
    • Astrobin Images
Re: BatchPreprocessing - probem with masterimages
« Reply #10 on: 2013 August 29 09:30:16 »
Does it make a difference if you use 3600s dark masters and calibrate 1800s lights... is it adjusted somehow... or should I be using 1800s dark masters? 
Takahashi 180ED
Astrophysics Mach1
SBIG STT-8300M and Nikon D800
PixInsight Maxim DL 6 CCDComander TheSkyX FocusMax