20240818_PreprocessingOfRawImageDataWithPixInsight
20240818_PreprocessingOfRawImageDataWithPixInsight
Preface
Preprocessing of raw image data, also known as data reduction, persues the following main objectives:
• removal of reproducible detractions from raw image data,
• measurement of quality-relevant subframe properties and deriving weighting factors therefrom,
• registration of subframes and
• integration of subframes applying normalization and pixel rejection, taking into account weighting
factors.
Correctly performed image acquisition and preprocessing are basic requirements for getting optimal
results in astrophotography. Mistakes that happen in these stages normally cannot be corrected anymore in
postprocessing. Common causes for suboptimal results or an interrupted preprocessing workflow are:
• poor or inconsistent raw image and calibration data,
• wrong or incomplete metadata in raw data and
• flawed settings or wrong succession of steps in preprocessing.
This guide is intended to introduce astrophotographers to the set of PixInsight's tools needed for
recognizing and avoiding such deficiencies. It contains a depiction to the basic function of camera
hardware and some tips regarding the control software. Certain properties of the used image
sensor/camera are revealed that have critical impact on image calibration results. These relationships have
to be taken into account for the acquisition of calibration frames, generation of master calibration files and
for the settings used in the calibration workflow. The important role of metadata for the correct processing
of raw image data in astrophotography is described.
The following topics are explained in detail: function and acquisition of calibration frames, generation of
master calibration files, settings for correct execution of image calibration, inspection and judgement of
calibration results using PixInsight's tools. An outline of post-calibration preprocessing steps is given.
Finally, automation of preprocessing using PixInsight's WeightedBatchPreprocessing (WBPP) script is
treated.
The Appendix contains a section about types of resources for PixInsight, resources for processes and scripts
that are mentioned in this guide and the list of abbreviations that are used in this guide.
References are provided in order to facilitate further studies. Endnotes and references are specified in
square brackets and are compiled separately at the bottom of this document.
If you feel that an important point is missing in this guide or something is wrong or unclear, please send a
private message to me (user bulrichl in the PixInsight forum). If reasonable I will supplement or correct my
description.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-2-
Structure
Preface
E Appendix
E1 Types of Resources for PixInsight
E2 Resources for Processes and Scripts that Are Mentioned in this Guide
E3 List of Abbreviations
Endnotes
References
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-3-
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-4-
A1.4 Binning
By binning, pixels are combined into larger pixels. E.g. 2x2 binning means that four pixels in a 2x2 matrix
are combined into one pixel. In case of a CCD this process is performed on the sensor before readout, i.e.
binning occurs before readout noise is introduced. Binning a CCD improves signal-to-noise ratio (SNR) and
reduces the time for frame transmission at the cost of image resolution. In a CIS, binning occurs after
readout, that means readout noise has already been introduced to each pixel [5]. Furthermore, depending
on the design of the sensor, binning a CIS can combine pixels in a lower bit depth, so a SNR improvement
possibly is not achieved at all.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-5-
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-6-
Thus with an OSC camera, it is possible to gain data for 3 colors simultaneously, in one shot. However, in
bayered/mosaiced data (CFA data) the color information is incomplete: only one color information exists
for each element of the sensor. The color information missing in CFA data has to be reconstructed by an
interpolation algorithm called "Debayering" or, more generally, "Demosaicing". RGB (color) images are
generated not before this process has been executed. Therefore CFA data of an OSC camera are not color
images. CFA data are classified as 'Gray' in the 'Information' tool bar of PixInsight and are displayed as
grayscale images.
Because the assignment of color to pixel value (= intensity) is contained in the pixel coordinates,
performing certain geometric operations on CFA data will alter the CFA mosaic pattern. Provided that
width and height of the image are even numbers (this is the normal case), an original Bayer pattern 'RGGB'
is changed as indicated in the text below the Bayer patterns in Figure 1 by following geometric operations:
mirroring and rotation (→ process FastRotation), cropping (→ process Crop) by an odd number of columns
at the left, or cropping by an odd number of lines at the top.
Fujifilm's X-Trans mosaic pattern is invariant regarding rotation. Provided that width and height of an
image are divisible by 6, rotation consequently will not alter the color assignment, but mirroring and
cropping will.
For bayered frames, PixInsight assigns CFA channel numbers according to the following scheme
(numbering of x- and y-coordinates begins with 0):
x y CFA channel
even even 0
even odd 1
odd even 2
odd odd 3
Accordingly, the following assignment to CFA channels results for the pixels in the upper left corner of a
bayered frame:
0 2
1 3
CFA channel numbers are used for bayered frames in the processes SplitCFA and MergeCFA.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-7-
When using an OSC camera (be it a regular digital camera or a dedicated astro camera), the entire
calibration process has to be performed with raw CFA data. The rough workflow in this case is: perform
image calibration and cosmetic correction with raw CFA data. Then the frames have to be debayered.
Subsequently the debayered frames are registered and finally integrated.
A2 Quality Settings, Camera Drivers, Image Acquisition Software and File Formats
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-8-
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-9-
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-10-
PixInsight supports the ROWORDER keyword. Opening of FITS files: if option 'Use ROWORDER keywords' is
enabled in FITS Format Preferences AND the keyword ROWORDER is detected, its value will be used
instead of the value of parameter 'Coordinate origin' in FITS Format Preferences, and in WBPP instead of
the value of parameter 'FITS orientation'.
The FITS header does not necessarily contain the Bayer pattern for OSC cameras. Most image acquisition
applications write the nonstandard FITS keywords BAYERPAT, XBAYROFF and YBAYROFF which are
supported by PixInsight as well. If either the FITS keyword BAYERPAT is not written to the FITS header or
the conventions concerning Bayer offsets are not met by the image acquisition software, the correct Bayer
pattern will have to be explicitely specified when executing the ImageCalibration and the Debayer process,
or when using the WBPP script. Usually the manufacturer of the camera specifies the correct Bayer pattern.
If it is unknown, the correct value can be determined by capturing and analyzing a daylight image [n5].
In PixInsight, FITS format has been deprecated when XISF was introduced as the native file format. In
PixInsight v1.8.9-2, the FITS Format Module was updated. FITS files now are considered only as containers
for image data and some essential metadata. PixInsight supports FITS format as input format for raw data,
but output of files in FITS format is somewhat limited and not intended for production purposes. The
changes are described in Ref. [28.a], [29].
A3 Metadata
Besides image data, image files contain metadata that describe properties of the file, properties and settings
of used equipment and software, information about environmental conditions, observation site and
observed target. In astrophotography, certain metadata are essential for the correct processing of raw
image data or for computing exact astrometric solutions. Their importance is often underestimated.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-11-
metadata. PixInsight's RAW format support module therefore provides the options 'Force focal length' and
'Force aperture'. When enabled, either no metadata will be generated for focal length and aperture
respectively (when the default value of 0 is left) or the inputted values will be used. If manual image
calibration is intended to be used, these options should be applied. However, in case of using the
WeightedBatchPreprocssing (WBPP) script, the focal length value should be input in WBPP instead, see
section D2.3.4.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-12-
It is preferable for manual and even more important for automated execution of preprocessing that the raw
frames contain these metadata.
For plate solving, color calibration, flux calibration and annotating solar system bodies, the use of local
databases in PixInsight is recommended/required. Pleiades Astrophoto provide appropriate database files
for the ImageSolver script, for the PCC, SPCC and SPFC processes and for the AnnotateImage script [n6].
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-13-
Required FITS keyword XISF property Significance, data format and unit
* DATE-BEG (DATE-OBS) Observation:Time:Start UTC observation start time, in ISO 8601 format: 'YYYY-MM-DDThh:mm:ss.sss'
DATE-END Observation:Time:End UTC observation end time, in ISO 8601 format: 'YYYY-MM-DDThh:mm:ss.sss'
OBSGEO-L (LONG-OBS, SITELONG) Observation:Location:Longitude Longitude of the observation site, OBSGEO-L, LONGOBS: in deg, SITELONG string format: 'DD MM SS.SSS'
OBSGEO-B (LAT-OBS, SITELAT) Observation:Location:Latitude Latitude of the observation site, OBSGEO-B, LAT-OBS: in deg, SITELAT string format: 'DD MM SS.SSS'
OBSGEO-H (ALT-OBS, SITEELEV) Observation:Location:Elevation Elevation of the observation site above sea level in meters
* RA (OBJCTRA) Observation:Center:RA Approx. right ascension of image center, RA: FPN in deg, OBJCTRA: string in 'HH MM SS.SSS' format
* DEC (OBJCTDEC) Observation:Center:Dec Approx. declination of image center, DEC: FPN in deg, OBJCTDEC: string in 'DD MM SS.SSS' format
* (1) RADESYS Observation:CelestialReferenceSystem Celestial reference system: 'ICRS' / 'GAPPT' (XISF property: 'ICRS' / 'True' | 'Mean' | 'Apparent')
EQUINOX Observation:Equinox (deprecated) Equinox in years
EXPTIME Instrument:ExposureTime Total exposure time in seconds, used only to synthesize observation end time when not available
* FOCALLEN Instrument:Telescope:FocalLength Focal length of the telescope in millimeters (XISF property in meters!)
* XPIXSZ (PIXSIZE) Instrument:Sensor:XPixelSize Pixel size in microns including binning
Bracketed keywords are nonstandard keywords. They are supported as input data by PixInsight for the sake of compatibility. PixInsight's astrometry engine gives precedence to standard
keywords. This means e.g. if the keywords RA and DEC are present, OBJCTRA and OBJCTDEC are ignored.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-14-
Temporal noise is the temporal variation in pixel output values under constant
illumination due to device noise, supply and substrate noise, and quantization
effects.
Temporal noise in the light frames cannot be reduced by image calibration; image calibration will even
introduce a slight amount of additional temporal noise from the master calibration files into the calibrated
subframes.
Fixed Pattern Noise (FPN), also called nonuniformity, is the spatial variation
in pixel output values under uniform illumination due to device and
interconnect parameter variations (mismatches) across the sensor.
Fixed Pattern Nonuniformity (FPN) is generated by imperfections of the sensor: the individual photosites of
a sensor do not behave ideally. There are pixel-to-pixel variations in bias voltage, dark current and light
sensitivity. Some CCD and CMOS image sensors also show a pronounced artifact called "amplifier glow" (see
section B2.2). In daylight photography, the effect of FPN may be negligible, but it is crucial in low light
photography, particularly in astrophotography. Whereas the visual impression of temporal noise can be
reduced by extending the total exposure time, this does not apply to FPN. FPN has to be removed as far as
possible, otherwise it will become visible once the integration is stretched decently. This will emerge even
more clearly in deeper exposed integrations. FPN is reduced in image calibration, but not removed
completely. Remaining patterns (= "correlated noise") will manifest themselves in the integration result
either as "walking noise" or as "color mottling" [56], depending on the presence or absence of field drift
[n7]. In order to decrease these unwanted remaining patterns further, it is strongly recommended to apply
a technique called dithering [57], [58.a] during light frame acquisition. Dithering means: the pointing
direction of the telescope is displaced by random values between exposures. In image registration, the stars
are realigned, thereby misaligning the patterns. As a result, a large portion of the patterns that remained
after image calibration can be averaged out or rejected in image integration. The needed dither magnitude
for achieving best results depends on the scale of the sensor's patterns. Normally, a random shift of 5 to 8
pixels in the subframes is sufficient.
Sometimes it is claimed that dark frames are not needed when dithering was applied. This generalized
statement is wrong: dithering is no replacement for capturing dark frames [58.b], [58.c].
Dithering between light frames and using a MasterDark in image calibration are complementary, so
both must be performed in order to obtain the optimal image calibration result.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-15-
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-16-
Flat frames contain bias signal, the information about vignetting/shadowing effects and the pixel-to-pixel
variation of light sensitivity. Flat frames have to be calibrated before they are integrated to the MasterFlat.
Normally, a MasterBias can be used for calibrating the flat frames. In certain cases, however, is it necessary
to use a MasterDark with exposure time matching the flat frames for this purpose (see section B4.3.1).
Flat frames are captured through the telescope or lens, and it is essential that the field is as uniformly
illuminated as possible. If a monochrome camera is used, flat frames have to be taken for each filter.
B3.2 Temperature
For cameras without cooling system: try to take the dark frames at the same ambient temperature as the
light frames. For cameras with cooling system: use the same setpoint for all frames. It is important to
achieve a constant sensor temperature during a session. Therefore two basic conditions must be met:
1. The setpoint must be set so high that the cooling power never exceeds about 75 - 80 % and
2. the setpoint must be set some degrees below the lowest ambient temperature in the particular night.
The first condition must be respected in order not to overcharge the cooling system which would result in
the sensor temperature rising above the setpoint. The second condition must be fulfilled in order to avoid
that the sensor temperature will drop below the setpoint. Due to limited cooling power, at sites with large
seasonal temperature variation, a higher setpoint can be required during summer time than in winter
season.
In terms of noise, the desirable setpoint depends on dark current, readout noise and sky brightness [61].
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-17-
Probable candidates for light leaks are all mechanically moving parts in the light path: focuser, camera
rotator, filter slider or filter wheel. In Newtonians, light can get in from the primary mirror side through
openings for air ventilation that shall facilitate rapid cooling down of the primary mirror. The viewfinder of
a DSLR must be capped during capturing. Light leaks at the tilt plate of a camera have been reported [62].
Lens caps made of plastic are not necessarily nontransparent for IR light. If your lens cap is not made of
metal, wrap additional aluminum foil around it and secure it with a rubber band.
It goes without saying that dark frames and bias frames that shall be used for the generation of master
calibration files always shall be captured in a dark place.
B3.5 Flat frames: very short exposure time can cause nonuniformly illuminated field
Flat frames have to be captured through the telescope or lens ensuring that the field is illuminated as
uniformly as possible. Too short exposure time for flat frames can cause nonuniform illumination, e.g.
when the light source flickers with low frequency (depending on the power source, the illuminant and the
use of a dimmer) or when a mechanical shutter of a dedicated astro camera is used. So check with your
equipment whether there is a lower limit for flat frame exposure time in terms of uniform illumination.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-18-
judge whether a flat frame is clipped too much in the upper intensity range is to take a look at the
histogram. Alternatively the following PixelMath expression can be used which counts the number of pixels
n that have intensity values between min and max and outputs the result to the process console (disable
option 'Generate output' in section 'Destination'):
The values of symbols min and max must be adjusted appropriately considering the saturation intensity.
For flat frames of OSC cameras there is another aspect: the weakest color channel should have sufficient
signal in the lower range [65].
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-19-
Dedicated astro cameras should not (and normally do not) apply optical black level subtraction, but if (due
to cooling and/or modern low-noise sensors) the dark current is very low, dark frames and bias frames
again have similar average intensities. Then the impact might be the same as described above. This subject
was dicussed already in 2014 in Ref. [69].
I experienced this data loss with a calibrated MD of my Canon EOS 600D (= Rebel T3i), ZWO ASI294MC Pro
and ASI071MC Pro. Figure 2 shows screen sections of the histograms (here: of a Canon EOS 600D = Rebel
T3i): on the left side the not pre-calibrated MD, on the right side the pre-calibrated MD in which about half
of the peak is truncated (set to zero).
Figure 2: Histograms of MD, left side: not pre-calibrated, right side: pre-calibrated
If such a pre-calibrated, clipped MD is used for light frame calibration, only about half of the pixels in the
light frame are calibrated correctly. For the rest of the pixels (in this example: for the other half), the
correction for the fixed pattern generated by the integrated dark current is not achieved. One consequence
of using such a pre-calibrated, clipped MD will be higher residual fixed pattern in calibrated lights. Another
consequence is: due to clipping of negative values, the mean value of a pre-calibrated dark frame or
MasterDark will be too large.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-20-
In section B5.2 we will see that only one situation exists in which the term (MasterDark - MasterBias) is
needed: when dark frame scaling shall be applied. So what can be done to avoid this data loss? It's very
easy: PixInsight's ImageCalibration can perform the subtraction during image calibration of the light
frames, preserving negative values as intermediate results, thus avoiding this type of clipping completely.
The bottom line from the above therefore is:
NEVER pre-calibrate dark frames, neither individual dark frames nor integrated dark frames. If dark
frame scaling shall be applied, use PixInsight's option of calibrating the MD during calibration of light
frames instead.
MasterDarks prepared according to section B4.1 by simply integrating the dark frames contain the bias
pedestal. We will use them as they are. Note that the compatibility with pre-calibrated MasterDarks has
been removed in the WBPP script in v2.5.0.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-21-
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-22-
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-23-
Cal1 = ((LightFrame - MB) - k * (MD - MB)) / MF * f (WITH dark frame optimization) {1}
If the dark frame optimization algorithm calculates a value of k < 0.005, the warning
No correlation between the master dark and target frames (channel 0).
is outputted to the process console. This means that the dark frames don't match the light frames at all, and
it will be necessary to capture new matching dark frames.
The dark frame optimization algorithm implicitely assumes that the dark scaling factor does not change for
the whole range of intensity values and for the whole sensor area. For different cameras, these conditions
are met in varying degree.
Using dark frame optimization for a camera without temperature control may greatly improve the
calibration result. This is because temperature deviations between dark and light frame acquisition are
unavoidable in this case. For a camera with temperature control, the benefit of dark frame optimization will
be much lower, possibly even not detectable. The application of dark frame optimization for sensors that
exhibit "amplifier glow" (see B2.2) is generally not recommended.
Bottom line: The camera model determines whether using dark frame optimization is favorable or not.
Dark frame optimization should only be applied when it has been verified that a given camera actually is
suitable for its application. Helpful hints for a corresponding checking procedure are given in section 3.4,
"How to verify the optimization performance" of the Reference Documentation for the ImageCalibration
process.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-24-
Figure 3: Settings in ImageCalibration, left side: no dark frame optimization, right side: with dark frame
optimization [n9]
Conclusion: The term that could be problematic concerning negative values, (MD - MB), does not appear in
equation {2}. For a light frame calibration without dark frame optimization a MB is not needed, in fact a MB
must not be applied at all.
For the calibration of light frames without dark frame optimization use the settings in Figure 3, left side:
• Disable section 'Master Bias'.
• Enable section 'Master Dark', select the MD, enable option 'Calibrate' [n9], disable option 'Optimize'.
• Enable section 'Master Flat', select the MF, disable option 'Calibrate'.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-25-
...
(1): The master flat scaling factor f is the mean of the MF. In case of using the option 'Separate CFA flat
scaling factors', a flat scaling factor is computed for each color channel.
(2): (Only when dark frame optimization is enabled) k is the dark scaling factor, optimized for lowest
variance in the calibration result using the whole area of the target frame.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-26-
B5.4.1 Canon EOS 600D = Rebel T3i (no cooling, no "amplifier glow")
Using this DSLR, the result of the light frame calibration was greatly improved by using dark frame
optimization. The MB was used for flat frame calibration.
• Take flat frames, dark frames and bias frames,
• prepare the master calibration files according to section B4,
• calibrate the light frames using the settings shown in section B5.2, Figure 3, right side.
B5.4.2 ZWO ASI294MC Pro (cooling with temperature control, strong "amplifier glow")
Using this CMOS camera, I did not notice an improvement of the light frame calibration result by using
dark frame optimization. The "amplifier glow" tended not to calibrate out completely with dark frame
optimization enabled. So I decided not to use it. A MD with exposure time matching the flat frames was
used for flat frame calibration.
• Take flat frames and dark frames with matching exposure time for light frames and for flat frames,
• prepare the master calibration files according to section B4,
• calibrate the light frames using the settings shown in section B5.2, Figure 3, left side.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-27-
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-28-
C2 Cosmetic Correction
Image calibration usually will leave hot and warm pixels more or less undercorrected in the calibrated light
frames. This is normal because these pixels strongly deviate from ideal behavior. Undercorrected hot and
warm pixels erroneously might be regarded as stars in image registration, resulting in registration faults.
The CosmeticCorrection (CC) process can successfully be used to avoid this issue.
Sometimes it was suggested to generally execute CC in mode 'Use Auto detect' with a 'Hot Sigma' value of 3.0
(the value when the CC tool is reset). In my view, this is wrong advice. The CC tool generally should be
applied with great care, too an aggressive application (e.g. too low 'Hot Sigma' values in the 'Use Auto detect'
mode) will damage the image, e.g. remove faint stars. CC is not the appropriate tool for the removal of
correlated noise, I recommend to generally apply dithering in image acquisition and use a MasterDark in
ImageCalibration for this purpose (see section B1.2).
In case of an OSC camera, undercorrected intensity values of hot and warm pixels can do particular
damage, because they will be spread into neighboring pixels in the Debayer step. This is undesirable,
because it can impede correct pixel rejection in image integration. When images of an OSC camera are
corrected, option 'CFA' has to be enabled in the CC process, and the result must be judged after debayering,
in the RGB image [79].
The number of pixels to be corrected will not vary much for a given camera, gain setting and exposure
time. It is therefore advisable to check up the number of corrected pixels (see output to the process console
and FITS header of cosmetically corrected frames) in order to get a feeling for the proper range.
As of ImageCalibration v2.2.4, an automatic cosmetic correction that uses a high-pass filtered MasterDark is
integrated in the ImageCalibration tool.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-29-
Option 'Output mode' decides on the type of the outputted frames [81]: in the default Output mode
'Combined RGB color', a RGB image is generated. Output mode 'Separate RGB channels' will generate three
monochrome images (one for each color channel), and Output mode 'RGB color + separate RGB channels' is
a combination thereof. The use of option 'Separate RGB channels' allows the independent registration of
color channels with distortion correction. This helps to fix misalignments caused by optical defects and
differential atmospheric dispersion.
Signal and noise evaluation must be enabled (this is the default).
C5 Registration
Approved images then are registered by the StarAlignment process [84] against the reference image.
Distortion correction will be applied when one of the Registration models 'Thin Plate Splines' or 'x. Order
Surface Splines' [43], [44.b] is selected (please read the informative tooltip text for 'Registration model'!).
If the use of drizzle integration is intended, option 'Generate drizzle data' has to be enabled.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-30-
When option 'Separate RGB channels' was used in the Debayer process, all resultant monochrome images
shall be registered to the same reference image (normally a green channel because of higher SNR than in
the other channels). For very low SNR images, it might be necessary to increase the 'Noise reduction'
parameter in section 'Star Detection' in order that the star detector is able to find reliable stars.
C6 Local Normalization
The LocalNormalization (LN) tool was completely redesigned and reimplemented in version 1.8.9 of
PixInsight [85]. Contrary to the old LN tool, the new LN tool is a high-accuracy normalization process which
can be fully automated and executed without supervision, so its use after image registration, before image
integration is highly recommended.
Local normalization is not removing gradients completely, it tends to reproduce the gradients of the
reference image. The application of local normalization can greatly facilitate the removal of gradients from
the integration result though. This process requires a reference image, either the best single subframe or a
frame that is generated from the best calibrated and registered subframes by image integration, possibly
followed by application of Dynamic Background Extraction. The LN process outputs normalization data
files (extension: xnml) that shall be used in image integration both for pixel rejection and normalization of
the output, and (if applicable) in drizzle integration for normalization of the output.
Note that ImageIntegration and DrizzleIntegration need .xnml files that are generated by the new LN tool,
older .xnml files are no longer compatible.
C7 Integration
Finally, the preprocessed light frames are integrated by the ImageIntegration process. Use 'Add Files' for
adding registered subframes. The application of local normalization is recommended for both pixel
rejection and output. If applicable, local normalization data files (extension: xnml) are added using
'Add L.Norm Files', and drizzle data files (extension: xdrz) using 'Add Drizzle Files'.
The following parameters are recommended:
Section 'Image Integration':
Combination: 'Average',
Normalization: 'LocalNormalization',
Weights: 'PSF signal weight'
The 'Minimum weight' parameter can be used for exclusion of images with low weight. The tooltip says:
"Minimum normalized weight required for integration.
Images with normalized weights below the value of this parameter will be excluded for integration. The
default value is 0.005, which represents a 0.5 % of the maximum weight in the integrated data set. To
disable this automatic image exclusion feature set this parameter to zero."
In the present case of preprocessed light frames, option 'Subtract pedestals' should only be enabled if a
global pixel rejection algorithm is applied (please read the tooltip for 'Subtract pedestals').
Section 'Pixel Rejection (1)':
Normalization: 'LocalNormalization'
Which rejection algorithm in section 'Pixel Rejection (1)' is appropriate depends on the number of used
frames, see the PixInsight Reference Documentation "ImageIntegration" [71] for recommendations.
With the settings in section 'Pixel Rejection (2)', a fine tuning is achievable in order that only unwanted
signal is rejected (e.g. caused by cosmic ray artifacts [67], aeroplanes or satellites). The judgement whether
the chosen parameters are appropriate or whether they should be tweaked further is greatly facilitated by
comparison of the integration result with the rejection map "rejection_high", see section "Rejection Maps"
of Ref. [71].
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-31-
When option 'Separate RGB channels' was used in the Debayer process and all debayered monochrome
images were registered to the same reference image (normally a green channel because of higher SNR than
in other channels), the registered monochrome images shall be integrated separately for each channel.
This generates three monochrome integration results which have to be recombined to a RGB image with
the ChannelCombination process.
C8 Fast Integration
The new tool FastIntegration [28.c] was designed for processing a very large number (thousands) of light
frames. It comprises the steps image registration and image integration with algorithms that are simplified
and optimized for speed. The following compromises have been made: no distortion correction is used in
registration, LocalNormalization is not applied, no rating and weighting is applied in the integration, pixel
rejection is performed only on limited subsets called batches. Target frames for FastIntegration must be
calibrated, cosmetically corrected and in case of data of an OSC camera debayered. FastIntegration requires
at least 6 detectable stars. In WBPP, FastIntegration is available as an option for post-calibration groups.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-32-
When option 'Separate RGB channels' was used in the Debayer process and all debayered monochrome
images were registered to the same reference image, drizzle integration shall be performed separately for
each channel [81]. This generates three monochrome drizzle integration results which have to be
recombined to a RGB image with the ChannelCombination process.
C10 Cropping
The result of image integration or drizzle integration should be cropped in order to remove border areas
with low signal/low SNR due to dithering or field drift. Appropriate cropping parameters can be determined
in the following way:
Open the low rejection map of the integration result. Apply a boosted STF Auto Stretch, create a preview
and modify the borders of the preview with the mouse in order to exclude the white edges. Then retrieve
the parameters x, y, w and h from the Preview Properties (select the preview, PREVIEW/Modify
Preview...) and set the following parameters to the Crop process ( ws and hs are sensor width and sensor
height, respectively):
left = -x right = x + w - ws
top = -y bottom = y + h - hs
Apply the Crop process to the image integration or drizzle integration.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-33-
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-34-
D2.1.1 Presets
Presets are intended to facilitate configuring WBPP. The user can choose between three presets that will
differ regarding execution time and quality of the preprocessing result:
• 'Maximum quality with no compromises': Local Normalization is enabled with its default maximum
number of stars used for scale evaluation, and the PSF type is Auto.
• 'Faster with sub-optimal quality results': Local Normalization is enabled with a reduced number of stars
used for scale evaluation (500), and the PSF type is Moffat 4.
• 'Fastest method with lower quality results': Local Normalization is disabled.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-35-
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-36-
• New Instance
Like most processes and many scripts in PixInsight, WBPP has a blue triangle icon (New Instance).
• +Directory button
The image type is evaluated for each file that is found in a recursive search in the selected root directory
and all subdirectories. The files are added to the input file list of the corresponding image-type panel.
• +Files button
The image type is evaluated for each selected file. The files are added to the input file list of the
corresponding image-type panel.
• +Bias button
Selected files are forced to be added to the input file list of the Bias panel.
• +Darks button
Selected files are forced to be added to the input file list of the Darks panel.
• +Flats button
Selected files are forced to be added to the input file list of the Flats panel.
• +Lights button
Selected files are forced to be added to the input file list of the Lights panel.
• Add Custom button
The user can input image type, filter name, binning and exposure time. Input data will take preference over
metadata in FITS header or XISF properties. The files are added to the input file list of the corresponding
image-type panel.
• Reset button
WBPP can be reset. The following options are available:
'Reset all parameters' to factory values or
'Reset all parameters' to settings of the last session.
Independently, option 'Clear all file lists' can be selected.
• Diagnostics button
When pressed, input data are checked for inconsistencies. There are three message levels: notes, warnings
and errors. Additionally, estimated disk space required for each operation and total disk space required for
completing all operations are displayed.
• Run button
When pressed, the 'Diagnostic Messages' dialog is displayed. If this dialog is closed, WBPP will return to its
main dialog, allowing the user to change settings. If the 'Diagnostic Messages' dialog is acknowledged with
the 'OK' button, the preprocessing pipeline will be executed.
• Exit button
When pressed, WBPP will be quit.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-37-
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-38-
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-39-
option is enabled, the assignment of calibration files to a group in section FLAT can be selected from the
dropdown control, either automatically or manually (group ID, binning and exposure time are
displayed). When control 'Dark' is disabled, bias frames (if available) will be used to calibrate flat frames
(for details on the used master calibration files, see Ref. [117]). If in this case bias frames are missing, a
warning is issued below section 'CFA Settings'. Applying dark frame optimization (see section B5.2) can
be enabled or disabled using control 'Optimize Master Dark'.
• Section 'CFA Settings'
When option 'CFA images' is enabled, WBPP will insert a Debayering operation prior to image
registration in the preprocessing pipeline. Option 'Separate CFA flat scaling factors' (see section B6.4) can
be enabled or disabled. When button 'Apply to all flat frames' is pressed, these settings are applied to all
groups in section FLAT. If inconsistencies in the configuration are detected, corresponding warning
messages will be displayed below section 'CFA Settings'.
• Button 'Show Calibration Diagram'
When button 'Show Calibration Diagram' is pressed, the calibration diagram for the selected group in
section FLAT is displayed.
When selecting a group in section LIGHT (it will be highlighted in orange background color), the right side
of the Calibration panel changes and related information is populated:
• Section 'Calibration Settings'
Calibration of light frames with dark frames can be enabled or disabled using control 'Dark'. When this
option is enabled, the assignment of calibration files to a group in section LIGHT can be selected from
the dropdown control, either automatically or manually (group ID, binning and exposure time are
displayed). When control 'Dark' is disabled, bias frames (if available) will be used to calibrate light frames
(for details on the used master calibration files, see Ref. [117]). If in this case bias frames are missing, a
warning is issued below section 'CFA Settings'. Applying dark frame optimization (see section B5.2) can
be enabled or disabled using control 'Optimize Master Dark'.
Calibration of light frames with flat frames can be enabled or disabled using control 'Flat'. When this
option is enabled, the assignment of calibration files to a group in section LIGHT can be selected from
the dropdown control, either automatically or manually (group ID, binning and exposure time are
displayed). When this option is disabled, a note will be issued in the 'Diagnostic Messages' dialog.
• Section 'Output Pedestal Settings' (see section B6.1)
In dropdown control 'Mode', either 'Literal value' or 'Automatic' can be selected. In case of 'Literal value',
input field 'Value (DN)', in case of 'Automatic', input field 'Limit' is enabled. When button 'Apply to all
light frames' is pressed, the current settings are applied to all groups in section LIGHT.
• Section 'Cosmetic Correction' (see section C2)
CosmeticCorrection process icons can be selected per group in section LIGHT from dropdown control
'Template'. Attention, these process icons must be present in the workspace before the WBPP script is
called! As of WBPP v2.7.5, an automatic cosmetic correction that uses a high-pass filtered MasterDark is
integrated in section 'Cosmetic Correction'. If this new feature is intended to be used exclusively, the use
of CC process icons in WBPP is not required.
When button 'Apply to all groups' is pressed, the current setting is applied to all groups in section LIGHT.
• Section 'CFA Settings' (see section C3)
Control 'CFA images' can be enabled or disabled, 'Mosaic pattern' and 'DeBayer method' can be selected
from dropdown controls. When button 'Apply to all light frames' is pressed, the current settings are
applied to all groups in section LIGHT. If inconsistencies in the configuration are detected,
corresponding warning messages will be displayed below section 'CFA Settings'.
• Button 'Show Calibration Diagram'
When button 'Show Calibration Diagram' is pressed, the calibration diagram for the selected group in
section LIGHT is displayed.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-40-
On the left side of the Pipeline panel, a running number, 'Operation', 'Group details' and 'Est. disk space' is
shown. For some operations, data for 'Group details' and 'Est. disk space' are generated not before the
operation is executed.
On the right side, the following sections are arranged:
• Section 'Active Steps'
The operations in the post-calibration stage can be enabled or disabled.
• Section 'Event Script'
An Event Script [105] , [118] can be used to retrieve information from WBPP during runtime via the
env object. It can be enabled (in this case the script has to be selected) or disabled. Some details about
the env object and its properties, event, operationsCount, operationIndex, name,
status, statusMessage and - for some operations - group are given in Refs. [118] and [112]. An
use case for an event script is outlined in Ref. [119].
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-41-
Bracketed keywords are unusual keywords that are supported as input data by PixInsight for the sake of compatibility.
WBPP will scan these keywords, handle different groups of frames separately, and propagate the FITS
keywords to calibrated, (if applicable) debayered and registered frames. Grouping keywords are propagated
to the filename of master calibration files, but not to filenames of master light files. Contrary to Ref. [97],
grouping keywords are not propagated to the FITS header of master files (dark, flat or light).
Examples:
When different values of gain, offset or readout mode shall be handled correctly in WBPP, the user can
create the corresponding grouping keywords (GAIN, OFFSET, READOUTM) in order to keep apart frames
captured with different settings.
When the proprietary raw format of a regular digital camera is used, it may be useful to create the grouping
keyword ISOSPEED in order that calibration of frames captured with different ISO speed settings is
performed correctly.
When generating a master calibration file, WBPP will introduce the word "master" into the value of FITS
keyword IMAGETYP, e.g. "master dark". This allows the automatic detection when master calibration files
generated by WBPP are reused.
Metadata required for calculating astrometric solutions are treated in section A3.3.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-42-
accordingly. The current preprocessing pipeline can be checked in the Pipeline panel. Adding files by
buttons +Bias, +Darks, +Flats or +Lights will force the corresponding image type. When button 'Add Custom'
is used, the user can input image type, filter name, binning and exposure time. In these cases, the input
data will take preference over metadata in FITS header or XISF properties.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-43-
appropriately, an example is given in Ref. [98], section "New Reference Frame Mode": the grouping
keyword PANEL is set applicable only for Post-calibration ('Post'). When option 'Mode' in section
'Registration Reference Image' is set to 'auto by PANEL', a registration reference image will be selectable for
each panel group, and the post-calibration operations are performed separately per panel.
D3.7 Executing the pipeline, execution monitor, process container script, ouput path structure
When the Run button is pressed, the 'Diagnostic Messages' dialog is displayed. If this dialog is closed, WBPP
will return to its main dialog, allowing the user to readjust settings. If the 'Diagnostic Messages' dialog is
acknowledged with the 'OK' button, the preprocessing pipeline will be executed.
During execution, the Execution Monitor gives a review about the progress of the procedure: the list of
compiled operations, elapsed time for each completed operation, the currently running operation, the
status (success, failed, running, cancelling), a note containing additional information and overall elapsed
time. A 'Cancel' button for interruption of the procedure is available.
At the end of each execution, WBPP creates the process container script [105], saved in the /logs/ directory,
named with the execution timestamp and the string "_ProcessContainer.js". This script can be used to
launch a process container that contains all processes executed by WBPP during the correspondent run.
The script can be opened from the script editor or simply be dragged into the PixInsight window. Once
loaded, you can run it with the Compile & Run button, and the process container will be created.
When finished, a detailed logfile named with the execution timestamp and file extension ".log" will be saved
in the directory /logs/. This textfile is very helpful in case of problems in the course of pipeline execution.
WBPP's output path structure is described in Ref. [98].
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-44-
E Appendix
E1 Types of Resources for PixInsight
Pleiades Astrophoto provide different resources that explain concepts, describe function and usage of
processes, show workflows and demonstrate specific examples of processing with PixInsight: the 'help'
command in the Process Console, Reference Documentations, tool tips, links in menu RESOURCES, Video
Tutorial Series, Knowledge Capsules and the PixInsight Forum.
• The 'help' command in the Process Console
A list of internal commands of the PixInsight core application and installed processes with command-
line support are listed when the command 'help' is entered in the Process Console. Specific help on
commands and installed processes is displayed when 'help <cmd_id>' is entered where <cmd_id> is the
identifier of the command or installed process.
• PixInsight Reference Documentations
In my view, Reference Documentations are PixInsight's most important resources. Reference
Documentations describe function, parameters and usage of processes and scripts in text form. They can
be displayed either by clicking on the icon 'Browse Documentation' (the sheet of paper icon at the bottom
right of the process window) or by calling Process Explorer and choosing the desired process from the
select list. Unfortunately Reference Documentations which are linked to the process/script are available
for only a few processes. In some cases, somewhat outdated Reference Documentations (which
nevertheless contain valuable information) are still available at [122]; the correspondent direct links are
given in Appendix E2. When a Reference Documentation is missing completely, please study PixInsight's
tooltip texts which are available for most of the parameters in all processes.
• Menu RESOURCES
In the menu RESOURCES, several links refer to documentation:
RESOURCES > Learning > Online Tutorials
> Online Processing Examples
> Official PixInsight YouTube Channel
> WeDoArt Productions
> PixInsight Resources
> PixInsight Ambassadors
RESOURCES > Community > PixInsight Website
> PixInsight Forum
RESOURCES > Technical Documents > ...
RESOURCES > Development > ...
Selecting such a link displays its contents in the embedded PixInsight Web Browser.
• Official PixInsight Video Tutorial Series [123]
The website is also directly accessible from the menu RESOURCES > Learning > Official
PixInsight YouTube Channel. The video tutorials explain general concepts, the user interface and
the usage of tools in PixInsight. The videos are short and concise, each having a playing time between
4 and 15 min. Currently 7 series of videos are available: Introduction to PixInsight (39 videos), SPCC
(5 videos), PixInsight Workflows (17 videos), GradientCorrection (13 videos), Processing Examples
(5 videos), FBPP (2 videos) and LRGB Composition (2 videos). For the complete list of Official Video
Tutorial Series including the topics of each video and the corresponding current times see Ref. [124].
• PixInsight Knowledge Capsules, [125]
This is a new type of advanced learning resource. Knowledge Capsules are PixInsight projects that
contain starting images, the used process icons and documentation. The reader can switch seamlessly
between reading and executing the process icons without losing the thread, thanks to the Project
Documentation Icon "Continue Reading". One is able to directly take a detailed look at what a process
effectuates (e.g. view the histogram or the statistics). The pace of the lecture can be defined individually -
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-45-
a big advantage over long-winded videos. Currently, two Knowledge Capsules are available free of
charge: "Dynamic Range Management" and "Narrowband". The project data and a PDF file "Knowledge
Capsule Start Guide" which explains concept and usage of Knowledge Capsules are downloadable from
the PixInsight software distribution system [52]. Knowledge capsules are superior to texts and even more
to videos when wider context is to be presented.
• PixInsight Forum [126]
The PixInsight Forum is directly accessible from the menu RESOURCES > Community > PixInsight
Forum. In the forum sections "Announcements" and "Release Information", the developers publish
information about new PixInsight versions, technical descriptions and practical usage examples of new
and improved tools. In other forum sections, experienced users will help questioners to solve issues. The
forum also has a Search function, a fact that seems to be unknown to many forum members. Often a
question is not put for the first time and has been answered before.
E2 Resources for Processes and Scripts that Are Mentioned in this Guide
The following list shows resources for processes and scripts that are mentioned in this guide. In case of
ambiguity these resources should be consulted. The term "linked RefDoc" indicates a Reference
Documentation that is linked to the correspondent process/script and to the Process Explorer, whereas
"RefDoc [xy]" indicates a direct link to a Reference Documentation that is available only at PixInsight's
Reference Documentation website [122].
Processes:
ImageCalibration linked RefDoc
CosmeticCorrection linked RefDoc
Debayer linked RefDoc
Blink Video 30 of "Introduction to PixInsight"
SubframeSelector Video 30 of "Introduction to PixInsight", also RefDoc [82]
FastIntegration linked RefDoc, also [28.c] + Videos 9 + 10 of "Workflows"
StarAlignment RefDoc [84], also [44.b] and Tutorial [43]
LocalNormalization linked RefDoc, also [85]
ImageIntegration RefDoc [71]
ScreenTransferFunction linked RefDoc + Videos 6 to 8 of "Introduction to PixInsight"
HistogramTransformation linked RefDoc
ChannelCombination linked RefDoc
Crop linked RefDoc
FastRotation linked RefDoc
CometAlignment linked RefDoc
PCC Tutorial [33], additionally [34]
SPCC RefDoc [35], also [36], [37.a] + Video Tutorial Series "SPCC"
Scripts:
BatchStatistics linked RefDoc
ImageSolver Tutorial [43], also [28.b], [44.a], [45] + Video 31 of "Introduction to PixInsight"
AlignByCoordinates RefDoc [40], also [41]
MosaicByCoordinates RefDoc [42], also [41]
LDD [78]
LPS [78]
WBPP [95], [121], [116] + Videos 28.1, 28.2 of "Introduction to PixInsight"
No resources are available for the processes Statistics, PixelMath, SplitCFA, MergeCFA, DrizzleIntegration
and neither for the scripts BasicCCDParameters, CatalogueStarGenerator and AnnotateImage. The links
given in the Reference Documentation website [122] for the SubframeSelector script and the ImageSolver
script are not working.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-46-
E3 List of Abbreviations
ADC Analog-to-Digital Converter
ADU Analog-to-Digital Unit
A/D Analog-to Digital
ASCOM AStronomy Common Object Model
CC CosmeticCorrection (process)
CCD Charge-Coupled Device
CFA Color Filter Array
CIS CMOS Image Sensor
CMOS Complementary Metal-Oxide-Semiconductor
DEC Declination
DN Digital Number
DSLM Digital Single-Lens Mirrorless
DSLR Digital Single-Lens Reflex
Exif Exchangeable Image File Format
FITS Fexible Image Transport System
FPN Fixed Pattern Nonuniformity
FPN Floating Point Number
FWHM Full Width at Half Maximum
GCRS Geocentric Celestial Reference System
HDU Header and Data Unit
ICRS International Celestial Reference System
INDI Instrument Neutral Distributed Interface
IR Infrared
LDC Linear Defect Correction
LDD LinearDefectDetection (script)
LN LocalNormalization (process)
LPS LinearPatternSubtraction (script)
LRGB Luminance, Red, Green and Blue
MB MasterBias
MD MasterDark
MF MasterFlat
NIR Near Infrared
OE Optical Efficiency
OSC One Shot Color
PCC PhotometricColorCalibration (process)
PSF Point Spread Function
QE Quantum Efficiency
RA Rectascension
RGB Red, Green and Blue
SDK Software Development Kit
SNR Signal-to-Noise Ratio
SPCC SpectrophotometricColorCalibration (process)
SPFC SpectrophotometricFluxCalibration (process)
STF ScreenTransferFunction (process)
UTC Coordinated Universal Time
WBPP WeightedBatchPreprocessing (script)
XISF Extensible Image Serialization Format
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-47-
Endnotes
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-48-
Telescopes that generate a mirror-inverted image (odd number of mirrors, e.g. Celestron RASA):
If the 'Rotation' line of the plate solving result in the Process Console contains the comment "(flipped)", the
correct vertical orientation in that FITS file is top-down, otherwise it is bottom-up.
Astrometric solutions generated by PixInsight versions < 1.8.9-2 will display a wrong 'flipped' status and
wrong rotation value when viewed in versions >= 1.8.9-2. In this case, the image must be solved again in
PixInsight >= 1.8.9-2.
[n6] Databases for plate solving, color calibration, flux calibration and annotating solar system bodies
Valid astrometric solutions generated by the ImageSolver script are required for target images of the
processes PhotometricColorCalibration (PCC), SpectrophotometricColorCalibration (SPCC) and
SpectrophotometricFluxCalibration (SPFC), and of the AnnotateImage script. For PCC, SPCC and SPFC, it is
recommended to enable distortion correction in ImageSolver (see section 4.3, "Database Search / Star
Matching" of Ref. [35]). For the annotation of solar system bodies this is mandatory [51].
It is recommended to use local databases for plate solving with the ImageSolver script. For color calibration
with either PCC or SPCC and for flux calibration with SPFC, local databases are required. The database files
are in XPSD (eXtensible Point Source Database) format, but they are different: the 'Gaia DR3' database
contains astrometric data that is needed by ImageSolver. The 'APASS DR9' and 'APASS DR10' databases
contain spectroscopic data that is used by PCC. The 'Gaia DR3/SP' database contains spectroscopic data that
is used by SPCC and SPFC.
Ephemeris files (in XEPH format) are needed for the identification and annotation of solar system bodies
with the AnnotateImage script.
The database files can be downloaded from Software Distribution [52]. They should be stored on a fast
storage medium, but on no account in the PixInsight application folder - in this case the data would be
deleted whenever a new PixInsight version is installed.
• Astrometric data for PixInsight's astrometry based tools (XPSD format)
It is recommended to use a local 'Gaia DR3' database for PixInsight's astrometry based tools (e.g. the
ImageSolver script). The complete database comprises 16 files of about 2.8 GiB each. For solving widefield
images, the first 3 files (including stars of mag 18), for medium field the first 9 files (including stars of mag
20) are sufficient in most cases. After download, the Gaia process has to be configured once: click on the
wrench icon of the Gaia process, set 'Data release' = 'Gaia DR3', select all 'Gaia DR3' files and confirm with
OK (also see Video 31 of "Introduction to Pixinsight").
• Photometric data for PCC (XPSD format)
It is recommended to use local database files 'APASS DR9' (1.1 GiB) and 'APASS DR10' (2.4 GiB) for PCC. After
download, the APASS process has to be configured once: click on the wrench icon of the APASS process, set
'Data release' = 'APASS DR9', select the 'APASS DR9' file, then set 'Data release' = 'APASS DR10', select the
'APASS DR10' file, and finally confirm with OK.
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-49-
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-50-
References
[2] A. El Gamal and H. Eltoukhy, "CMOS image sensors" in IEEE Circuits and Devices Magazine, vol. 21, no.
3, pp. 6-20, May-June 2005, doi: 10.1109/MCD.2005.1438751,
https://isl.stanford.edu/groups/elgamal/abbas_publications/M001.pdf
[6] James R. Janesick, Photon Transfer : DN λ, 2nd edition, SPIE, Bellingham, Washington (2010)
[7] Richard Berry and James Burnell, The Handbook of Astronomical Image Processing, Second Edition,
Willmann-Bell, Inc., Richmond, Virginia (2005) , chapter 8
[8] Christian Buil, "Canon EOS 20D vs Canon EOS 10D", section "Complement: How to compute the photon
transfer curve and the electronic gain?",
http://www.astrosurf.com/buil/20d/20dvs10d.htm
[10] Alessio Beltrame, "CMOS CAMERAS - Dark current theory, measurement & image calibration",
https://pixinsight.com/doc/docs/DC_tutorial/DC_tutorial.pdf
[15] "This happens when you forget to disable lens corrections – Sony",
https://www.cloudynights.com/topic/854488-this-happens-when-you-forget-to-disable-lens-corrections-
sony/
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-51-
[17.a] Dale Ghent in "Confusion Over Gain Reports in NINA FITs Header", post #21: Terms "native" vs.
"direct" camera driver, SDK, architectural and performance differences between direct and ASCOM drivers,
[17.b] post #25: Architectural differences between direct and ASCOM camera drivers,
https://www.cloudynights.com/topic/836050-confusion-over-gain-reports-in-nina-fits-header/
[24.a] Dale Ghent in "Native or ASCOM and Why?", post #20: Architectural and performance differences
between direct and ASCOM camera drivers,
[24.b] posts #25 and #27: Streaming data (video) and single exposure mode,
https://www.cloudynights.com/topic/761967-native-or-ascom-and-why/
[25] "ASCOM.DSLR" is an ASCOM driver for Canon, Nikon and Pentax cameras,
https://github.com/FearL0rd/ASCOM.DSLR ,
"LumixCameraAscomDriver" is an ASCOM driver for some Panasonic Lumix camers,
https://github.com/totoantibes/LumixCameraAscomDriver and
"ASCOMSonyCameraDriver" is an ASCOM driver for some Sony cameras,
https://github.com/dougforpres/ASCOMSonyCameraDriver/
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-52-
[29] "PixInsight 1.8.9-2 / Build 1583 Released", section "Improved Generation of FITS Header Keywords",
https://pixinsight.com/forum/index.php?threads/pixinsight-1-8-9-2-build-1583-released.21659/
[35] RefDoc by Vicent Peris and Juan Conejero, "Spectrophotometry-based Color Calibration in PixInsight",
https://pixinsight.com/doc/docs/SPCC/SPCC.html
This document is also directly accessible from menu RESOURCES > Technical Documents.
[37.a] "PixInsight 1.8.9-2 / Build 1601 Released", section "New FilterManager Tool",
[37.b] section "New GradientCorrection Tool",
https://pixinsight.com/forum/index.php?threads/pixinsight-1-8-9-2-build-1601-released.22860/
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-53-
[41] "PixInsight 1.8.9-2 / Build 1588 Released", section "Improved MosaicByCoordinates and
AlignByCoordinates Scripts",
https://pixinsight.com/forum/index.php?threads/pixinsight-1-8-9-2-build-1588-released.21898/
[43] Tutorial by Juan Conejero, "New Plate Solving Distortion Correction Algorithm in PixInsight",
https://pixinsight.com/tutorials/solver-distortion/
This document is also directly accessible from menu RESOURCES > Learning > Online Tutorials.
[44.a] "PixInsight 1.8.9-2 / Build 1593 Released", section "ImageSolver Script Version 6.1",
[44.b] section "Improved StarAlignment (ImageRegistration Module Version 1.4.3)",
https://pixinsight.com/forum/index.php?threads/pixinsight-1-8-9-2-build-1593-released.22195/
[45] "PixInsight 1.8.9-2 / Build 1596 Released", section "ImageSolver Script Version 6.2",
https://pixinsight.com/forum/index.php?threads/pixinsight-1-8-9-2-build-1596-released.22516/
[48] Juan Conejero, "New in PixInsight 1.8.6: Integrated Solar System Ephemerides",
https://pixinsight.com/forum/index.php?threads/new-in-pixinsight-1-8-6-integrated-solar-system-
ephemerides.12730/ and
Juan Conejero, "New in PixInsight 1.8.6: Reduction of Positions",
https://pixinsight.com/forum/index.php?threads/new-in-pixinsight-1-8-6-reduction-of-positions.12731/
[51] "Asteroid Ephemerides / New XEPH Files - 2022 Release", post #9,
https://pixinsight.com/forum/index.php?threads/asteroid-ephemerides-new-xeph-files-2022-release.17775/
[55] Abbas El Gamal, "EE392B: Introduction to Image Sensors and Digital Cameras",
https://isl.stanford.edu/~abbas/aeglect392b.php
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-54-
[56] Jon Rista in "Walking Noise: What is it?", posts #3, #24 and #25,
https://www.cloudynights.com/topic/749810-walking-noise-what-is-it/
[57] Jon Rista in "Dithering a "Must" ?", posts #19, #20, #24, #25, #29, #40 and #42,
https://www.cloudynights.com/topic/572363-dithering-a-must/
[59] Bart Dierickx, Caeleste, "Imperfections of high-performance image sensors", chapter "Calibration" (pp.
38 – 50),
https://www.researchgate.net/publication/273538329_Imperfections_of_high-performance_image_sensors
[60] Jon Rista in "QHY183M & Flats = Frustration", posts #57 and #63,
https://www.cloudynights.com/topic/676574-qhy183m-flats-frustration/page-3
[61] "Is cooling still necessary for modern CMOS sensors?", posts #12, #16 and #46,
https://www.cloudynights.com/topic/890723-is-cooling-still-necessary-for-modern-cmos-sensors/
[62] "Attention ASI6200 Owners! New M68 Tilt Plate Leaks Light BADLY - There is a Fix",
https://www.cloudynights.com/topic/708789-attention-asi6200-owners-new-m68-tilt-plate-leaks-light-badly-
there-is-a-fix/
[64.a] "Nikon Z6, overexposed image, "Statistics" max. only at 25%??", post #29: Comparison of a "back of
camera" histogram to a linear histogram in PixInsight,
[64.b] post #33: How to use Av automatic operation of a regular digital camera for capturing of daylight or
twilight sky flat frames,
https://pixinsight.com/forum/index.php?threads/nikon-z6-overexposed-image-statistics-max-only-at-
25.16594/page-2
[66] Tutorial by Vicent Peris, "Master Calibration Frames: Acquisition and Processing",
https://www.pixinsight.com/tutorials/master-frames/
This document is also accessible from the menu RESOURCES > Learning > Online Tutorials.
[67] "Recognition and classification of the cosmic-ray events in images captured by CMOS/CCD cameras",
https://arxiv.org/pdf/1909.01929.pdf
[68] Juan Conejero in "Image Calibration and negative values (KAF 8300)", post #3,
https://pixinsight.com/forum/index.php?threads/imagecalibration-and-negative-values-kaf-8300.6593/
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-55-
[70.a] Jon Rista in "Should we just stop talking about bias frames?", posts #54 and #80: Bias frames or Dark
frames with matched esposure time for calibrating flat frames,
[70.b] posts #160, #163 and #169: Test for non-trivial dark signal in flat frames,
https://www.cloudynights.com/topic/709822-should-we-just-stop-talking-about-bias-frames/
[73] Matt Craig and Lauren Chambers, "CCD Data Reduction Guide", chapter "1.6. Overscan",
https://www.astropy.org/ccd-reduction-and-photometry-guide/v/dev/notebooks/01-08-Overscan.html
[76] Alan Holmes, Blog of March 8, 2013: "Flat Fields and Stray Light in Amateur Telescopes",
https://diffractionlimited.com/flat-fields-stray-light-amateur-telescopes/
[77] "PixInsight 1.8.8-6 Released", section "ImageCalibration: Improved CFA Data Management",
https://pixinsight.com/forum/index.php?threads/pixinsight-1-8-8-6-released.15028/
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-56-
[79] "Problem with Cosmetic Correction and under sampled images", posts #2 and #5,
https://pixinsight.com/forum/index.php?threads/problem-with-cosmetic-correction-and-under-sampled-
images.19240/ , also see
"24mm Full-Frame DSLR Pre-Processing - Hotpixel like Artefact", https://pixinsight.com/forum/index.php?
threads/24mm-full-frame-dslr-pre-processing-hotpixel-like-artefact.22120/ and
"Cosmetic Correction", https://pixinsight.com/forum/index.php?threads/cosmetic-correction.23049/
[81] "PixInsight 1.8.8-9 Released", section "Separate CFA Channel Alignment Feature",
https://pixinsight.com/forum/index.php?threads/pixinsight-1-8-8-9-released.17106/
[82] RefDoc by Juan Conejero, Edoardo Luca Radice and Roberto Sartori with contributions by John Pane,
"New Image Weighting Algorithms in PixInsight",
https://pixinsight.com/doc/docs/ImageWeighting/ImageWeighting.html
This document is also directly accessible from menu RESOURCES > Technical Documents.
[86] A. S. Fruchter and R. N. Hook "Drizzle: A Method for the Linear Reconstruction of
Undersampled Images", The Publications of the Astronomical Society of the Pacific, Volume 114, Issue 792,
pp. 144-152 (2002), https://arxiv.org/pdf/astro-ph/9808087.pdf
[89] Fred Vanner in "Drizzle with OSC data…yes or no…?", post #12,
https://pixinsight.com/forum/index.php?threads/drizzle-with-osc-data%E2%80%A6yes-or-no
%E2%80%A6.22778/
[90] Fred Vanner in "Star color pattern with Drizzle using WBPP separate RGB", posts #28 and #30,
https://pixinsight.com/forum/index.php?threads/star-color-pattern-with-drizzle-using-wbpp-separate-
rgb.22121/
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-57-
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-58-
[109] "PixInsight 1.8.9-2 / Build 1579 Released", section "New Features", WBPP version 2.6.0
https://pixinsight.com/forum/index.php?threads/pixinsight-1-8-9-2-build-1579-released.21437/
[111] "PixInsight 1.8.9-2 / Build 1593 Released", section "WeightedBatchPreprocessing Script Version 2.6.3",
https://pixinsight.com/forum/index.php?threads/pixinsight-1-8-9-2-build-1593-released.22195/
[112] "PixInsight 1.8.9-2 / Build 1596 Released", section "WeightedBatchPreprocessing Script Version 2.7.0",
https://pixinsight.com/forum/index.php?threads/pixinsight-1-8-9-2-build-1596-released.22516/
[113.a] "PixInsight 1.8.9-3 Released", section "WeightedBatchPreprocessing Script (WBPP) Version 2.7.1",
[113.b] section "New Script: FastBatchPreprocessing (FBPP)",
https://pixinsight.com/forum/index.php?threads/pixinsight-1-8-9-3-released.23507/
[117] "Truth Table for Matching Bias, Darks, Flats in WBPP and Other Processes", post #4,
https://pixinsight.com/forum/index.php?threads/truth-table-for-matching-bias-darks-flats-in-wbpp-and-
other-processes.19503/
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)
-59-
Bernd Landmann: Preprocessing of Raw Image Data with PixInsight (revised on August 18, 2024)