PixInsight - Image Post Processing

WBPP -  Weighted Batch Preprocessing

updated: 2023-11-27


Purpose

This script will add all the light frames, the flats, the darks and the bias frames, register them, stack them, debayer them and return a single stacked image

Menu

Script 🡺 Batch Processing 🡺 WeightedBatchPreprocessing

Input

Batch of original pre-selected Light frames + master Dark, Flats and Bias frames

Output

integrated picture, file name “*_i.xisf” into sub folder "\_Astro\2021 Astro\20210814 M101\AutoCal\master"

Previous Step

Picture Shooting

Next Step

Picture Post Processing

Tutorial



Step

Action

Description

1

Set Global Options

  • Optimize dark frames: will work on some DSLRs but probably not on OSC cameras.
  • Make sure to check Up-Bottom FITS for ZWO ASI294 (or final picture will be reversed!)


Figure 1.1

2

Adding Frames (Lights, Bias, Dark etc.)

If you want to use Master calibration frames instead of multiple single calibration frames, then make sure the file name of the master files start with "Master".


Make sure to check

Master frames will be marked with an asterisk, see figure 2.1 on the right


To ensure that the master files generated by ASIAIR  are recognized as Master Calibration Files by PixInsight and thus supplied with the correct parameters by Weighted Batch Pre-Processor (WPP), the file names for Master Calibration Files are subject to special naming conventions. A correct file name could therefore be :


 "masterflat_BIN-1_COUNT-20_FILTER-NoFilter_EXPOSURE-0.001_CONFIG-TS600AS294_TEMP-10_20231111.fit


and the automatic batch process will be able to treat them as master files. Otherwise, the calibration frames will be ignored during the light frame calibration part of the process with an error message such 

*** Warning: Cannot integrate less than three frames.

!!! Error: Master Flat file was not be generated.


When adding light you may also consider adding the manually approved light frames from 1.1 Blink or 1.2 Automatic Selection using Subframe Selector in order to avoid integrating frames with satellite streaks or other artifacts.


Note: After loading all light, bias, dark and flat frames once, click to verify that PixInsight has accepted all calibration frames. 


Flat Frame Filter Problem: If you see a message like this

 Note: No Master Flat will be used to calibrate the frames.


then PixInsight was probably unable to correctly interpret the contents of the calibration frame. although binning, filter, exposure are recognized correctly.

 


Workaround: In this case, delete the flat frame and add it using the Add Custom command, fill in the correct information, and click OK:


Now the Flat Frame is displayed as if "NoFilter" has been used as filter keyword:


The message "No Master Flat will be used to calibrate the frame" no longer appears when you click : 


No other workaround of this problem has been found yet, even adding the keyword FILTER with a property like OleN or anything else to the FITS keywords  worked so far.

Figure 2.1



Figure 2.2

3

Bias Frames Integration Settings


Combination: Average

Rejection Algorithm:

  • Up to 15 frames: use Sigma Clipping
  • Over 15 frames: use Winsorized Sigma Clipping


If you are using Master Bias Frame, the above settings do not apply. In this case use "No Rejection" as rejection algorithm.

4

Dark Frames Integration Settings

same settings apply as for Bias Frames

5

Flat Integration Settings

same settings apply as for Bias Frames

6

Light Frame Handlings Subframe Weighting

try the settings on the right


Comet processing:

WARNING: if you are processing frames of a comet then please make sure not to use the integrated Image Integration.

Uncheck the the Image Integration step in case of comet pictures:


Image integration will be done using the Comet Alignment tool. 



6a

Linear Pattern Subtraction

6b

Cosmetic Correction

6c

Subframe Weighting

SNR: If this option is checked light frames will be analyzed and weighted accordingly to the relative weights assigned to FWHM, eccentricity and SNR. Weights are saved into the image as WBPPWGHT header key which will be used during the ImageIntegration process.

6d

Image Registration 

try the settings on the right.


Set Pixel Interpolation to Auto or try Lanczos-3, which seems to be a good interpolation algorithm.



6e

Image Integration (Stacking)

Rejection Algorithm:

  • Up to 15 frames: use Sigma Clipping
  • Over 15 frames: use Winsorized Sigma Clipping.

7

On the Post-Calibration tab

enable Drizzle configuration (always for OSC cameras!)


8

Set the output folder

Use subfolder "AutoCal\master" as output directory.

9

Start the batch process

by first running a diagnostic check and then the click on Run if the diagnostic didn't return any problems.


10

Check and save the log file for documentation

e.g. into a subfolder "logs" and name it according to major process settings, e.g. "AWBP_Lanczos-3_ ProcessLogger.txt"


Example log file

11

Rename the resulting master light image file

Typically, PixIsight will use the original filename and put a "master" in front of the name, like:


"masterLight_BIN-1_EXPOSURE-180.00s_FILTER-NoFilter_RGB.xisf"




Consider renaming the file to your own file name convention in the master subfolder using the naming convention, e.g.:


[DATE_]{TIME_}[OBJECT_][CAMERA_]{ PICTURE #}{-VARIANT#}.[EXT]


e.g.:  20210815_M101_ZWOASI294_0000.xisf

Created with the Personal Edition of HelpNDoc: Transform Your Word Doc into a Professional-Quality eBook with HelpNDoc