Author Topic: Batch preprocessing problems  (Read 3396 times)

Offline jabberwock48

  • Newcomer
  • Posts: 11
Batch preprocessing problems
« on: 2014 August 02 11:11:17 »
Hi
I am just trying this to wean myself away from CCDStack. Despite ticking 'Optimize Dark Frames', I keep getting error messages when using a 50min Master Dark and 10 min subs. Is this only permissible using Image Calibration.
Also if I do image calibration in CCDStack (more convenient when having PA West and PA East Subs) and then move to Pixinsight for Image Alignment and Integration am I likely to lose anything
John

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Batch preprocessing problems
« Reply #1 on: 2014 August 02 12:02:54 »
hi john,

i have never used CCDStack, so don't know, but PI's dark scaling algorithm is pretty good. you are likely leaving something on the table...

as you've found, support for automatic east/west flats is really not there in BPP - the best you can hope to do is to define a custom flat filter set by hand. it can be done and i think warren asked about this here in the forum and it was explained how to make the custom filter set in the BPP user interface.

rob



Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Batch preprocessing problems
« Reply #2 on: 2014 August 02 13:19:46 »
Hi John,

In the latest version of the ImageCalibration tool we have implemented a new feature that greatly improves dark frame optimization, especially when working with master dark frames of relatively poor quality. It is the optimization threshold parameter in the Master Dark section of the tool. This parameter is also available on the BatchPreprocessing script since version 1.37 (on the Darks tabsheet). Unfortunately, we released these new versions just before Summer vacations, so we haven't had the time to document them yet. I'm going to explain how to use this feature briefly here, but we'll publish a more detailed description with examples when possible.

The idea behind the optimization threshold feature is conceptually simple. The master dark frame is always contaminated by readout noise to a smaller or larger extent, depending on the quality of the dark current data available. This random white noise degrades the performance of our dark frame optimization algorithm. A simple but very effective way to improve the behavior of this algorithm is to simply set to zero all master dark pixels below a specific threshold value. If the threshold is correctly determined, this simple method can remove a large portion of the readout noise, and the dark frame optimization algorithm works much better. The problem is hence how to find the correct threshold: too large of a threshold will remove too much true dark current data; too low of a threshold will have no effect. One way to find this critical value is as follows:

- Build master bias and master dark frames with the ImageIntegration tool. Follow the method described in this tutorial.

- Open the master frames and subtract the master bias from the master dark frame with the PixelMath tool. The resulting calibrated master dark frame is just a temporary working image, so don't replace the master dark frame with it.

- Open the Binarize tool, select the calibrated master dark frame, and enable the Real Time Preview option. Now find an RGB/K binarizing threshold able to remove most of the darkest master dark pixels, leaving only the brightest ones. There's a critical point that sets to black about one half of the master dark. The correct threshold is above this value. Expect a value approximately in the range 0.00001 to 0.0001, but the actual threshold can vary greatly.

- You can make a few tests with the ImageCalibration tool, setting the dark optimization threshold parameter to the value found in the previous step. You should see a drastic improvement in your dark optimization factors in all cases, but especially if you work with a poor quality master dark frame.

- Once you've found a good threshold value, you can use it on the BatchPreprocessing script (optimization threshold parameter on the Darks tabsheet). You can use the master bias and dark frames built in the first step. In such case, don't forget to check the use master bias and use master dark options on the BPP script.

This optimization threshold parameter is a first step towards a more sophisticated dark optimization method (multipoint optimization) that we plan on implementing during next Fall-Winter.

Quote
Also if I do image calibration in CCDStack (more convenient when having PA West and PA East Subs) and then move to Pixinsight for Image Alignment and Integration am I likely to lose anything

You can calibrate with meridian flips very easily with the BatchPreprocessing script. Just click the Add Custom button and use the Filter Name field to define a "pseudo-filter" to classify your frames as a function of their meridian side. The meridian position is only relevant to flat fielding.

Floating point images written by other applications (we call them alien data) usually cause problems when loaded in PixInsight. This happens because the FITS format (also the TIFF format) provides no (standard) way to define the range to which the real-valued numerical data are referred. PixInsight always writes floating point images in the [0,1] range, where 0=black and 1=white. Unfortunately, other applications don't follow this rule and usually provide no information on the ranges used. Sometimes floating point images are stored in the 16-bit integer range [0.0,65535.0]. We have seen also calibrated data stored in 32-bit integer format using undocumented ranges that vary among images. When the black and white points are unknown, PixInsight has no way to interpret the alien data and the images lose their physical meaning when loaded.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline jabberwock48

  • Newcomer
  • Posts: 11
Re: Batch preprocessing problems
« Reply #3 on: 2014 August 02 16:07:37 »
Thanks Juan for the very comprehensive reply. I will study it and excellent tutorial. Hopefully I will be up to speed by the time I see Vicent in Katonah
JohN