Author Topic: ImageIntegration parameters  (Read 17261 times)

Offline Alejandro Tombolini

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1267
    • Próxima Sur
Re: ImageIntegration parameters
« Reply #15 on: 2011 December 08 08:43:08 »
Hi kai, thank you very much for this script.

I just install it and see that it appears with another name that already exists. One of them opens the FITS Keywords and other Calibration and Batch Operations.


Saludos,
Alejandro.

Offline kwiechen

  • PixInsight Addict
  • ***
  • Posts: 186
Re: ImageIntegration parameters
« Reply #16 on: 2011 December 08 10:56:37 »
The code for reading the FITS header is from FITSkey - and unfortunately the feature-id too. I have been testing this from the script editor only. The attached version should fix this.

Best,

Kai

Offline Alejandro Tombolini

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1267
    • Próxima Sur
Re: ImageIntegration parameters
« Reply #17 on: 2011 December 08 11:40:10 »
It is perfect now, thanks Kai !

Saludos.
Alejandro.

Offline kwiechen

  • PixInsight Addict
  • ***
  • Posts: 186
Re: ImageIntegration parameters
« Reply #18 on: 2011 December 09 15:57:10 »
unfortunately this was far away from being perfect - the version 0.04/0.05 generation of master flats was broken. I hope this is fixed now.

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: ImageIntegration parameters
« Reply #19 on: 2011 December 09 23:50:10 »
Hi

The script looks excellent if we can get it to work  ;) A few things for you to think about

1) there is no stacking options shown in the light section

2) I can not get it to run at all probabley down to the fact that I use master bias / darks and many of my images need rescaling  >:D

Regards Harry

Harry Page

Offline kwiechen

  • PixInsight Addict
  • ***
  • Posts: 186
Re: ImageIntegration parameters
« Reply #20 on: 2011 December 10 03:14:19 »
Hi,

1) I have removed the stacking of light frames for now, because I often need different rejection parameters to integrate/stack L compared to RGB. But I can readd this as an option (?).

2) I have only exposed the module parameters to the script I have used so far. Please remember that are my first attempts to use PI for stacking purposes. In line 345   optimizeDarks = true; should set dark frame rescaling by default ???? Can you please give me your errors/output? Have you generated the master frames using this script or have you edited the EXPTIME/FILTER keyword in the file header of your previously generated masters? The script saves the "integration" image from the ImageIntegration module and writes this information back to the FITS header.

Best,

Kai

Offline Harry page

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1458
    • http://www.harrysastroshed.com
Re: ImageIntegration parameters
« Reply #21 on: 2011 December 10 05:11:26 »
Hi

Sorry I did not read the thread correctly  :-[ 

Your skills at scripting are way past mine ( none  ;D ) Its just the layout is what people are looking for  :D

People would like to just select their relevant files without any jiggery pokery ( other than correct stacking settings) and set it of running.

I really do hope you can find the time to perfect this script and as I do not have any skills to offer  , I am willing to bribe you with a pint of larger and 2 packets of crisps  ;D

Kind Regards Harry
Harry Page

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: ImageIntegration parameters
« Reply #22 on: 2011 December 11 18:58:11 »
Indeed. I will add two more crisps and bottle of wine to the offer.

Max :D

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: ImageIntegration parameters
« Reply #23 on: 2011 December 13 10:32:06 »
 I think I am starting to understand a bit more.

The script uses the FIT Key word for filter to create the master FLATs for each filter.
Will it match the flat for a filters to light frames with the same filters key word automatically?

In others words,  I can select all filters under the lights tab and it will the use matching flat for calibration.

I noticed the calibrated images are put back in the original directory with appended C. My perference wound be to creat a new folder somewhere. Perhaps in the same directory as the rest of the images.

Max

Offline kwiechen

  • PixInsight Addict
  • ***
  • Posts: 186
Re: ImageIntegration parameters
« Reply #24 on: 2011 December 14 11:31:33 »
The script sorts files using the XBINNING, EXPTIME and FILTER keywords in the FITS header and finally calibrates the light frames with the matching bias, dark and flat masters (at least hopefully ...). So, when for example light frames taken through the blue filter with 2 x binning are calibrated the master flat file "masterflat_binning_2_Blue" should be loaded into the ImageCalibration module.

I will do some code cleanup and try to give a better feedback to user about the selected and grouped files. The calibrated images are written to the same dir with "_c" postfix per default but I also would prefer to put these intermediate files to a new folder.

Best,

Kai


 

Offline kwiechen

  • PixInsight Addict
  • ***
  • Posts: 186
Re: ImageIntegration parameters
« Reply #25 on: 2011 December 15 12:57:25 »
Attached is the updated CalibrateAlign script:

- the tree boxes show the files grouped by binning, exptime/filter

- the intermediate calibrated files are written to the Output/calibrated folder

- the calibrated and aligned light frames sorted by filter are written to Output/registered ready for final integration/fine tuning rejection parameters

Best,

Kai

Offline Josh Lake

  • PixInsight Old Hand
  • ****
  • Posts: 424
Re: ImageIntegration parameters
« Reply #26 on: 2011 December 17 06:31:43 »
Kai, I love the look of this script and can't wait to use it. One thing, though -- on my Mac, no frames show up when I add them with the dialog box! What am I doing wrong?

Seriously, if this works out, this will be a real step forward for efficiency in pre-processing. Thanks for working on it.

Offline kwiechen

  • PixInsight Addict
  • ***
  • Posts: 186
Re: ImageIntegration parameters
« Reply #27 on: 2011 December 17 07:50:36 »
Unfortunately I have no Mac. The files selected are saved internally and after this the interface should be refreshed. The Treeboxes are only for information and feedback. So, if you select test files for calibration and light, select your reference image and set the output directory: can you give me the console output after hitting OK? The script in its current state relies on correct FITS header keywords XBINNING, EXPTIME and FILTER.

Please use the latest 0.0.6d from http://pixinsight.com/forum/index.php?topic=3654.msg25284#msg25284

Best,

Kai




Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: ImageIntegration parameters
« Reply #28 on: 2011 December 21 18:40:42 »
Kai,

The script works very well.
 However, I  can't get re- use master to work.  I am not sure were to put the masters
It would be nice if the masters had a path of their own to set

Max

Offline kwiechen

  • PixInsight Addict
  • ***
  • Posts: 186
Re: ImageIntegration parameters
« Reply #29 on: 2011 December 25 07:09:36 »
If you have master frames generated with this script check the boxes in the 'Use masterframes' groupbox and add the masters files using the 'add files' button. The steps for integration bias/dark and calibrating/integrating flats will then be bypassed.

Best,

Kai