Dithering is an important part of the modern image acquisition process. CMOS and CCD sensors suffer from various types of electronic noise, such as fixed-pattern noise, and defects such hot and cold pixels. Photons of light from stellar objects fall onto the sensor and will effectively be lost if the photon falls on a dead or hot pixel. The act of dithering is a commanded move of the mount between successive exposures that very slightly alters, on the pixel scale, where photons fall on the sensor. This means that one exposure can capture light (ie, data) from an object where that same light fell on a dead or hot pixel in the previous exposure. Image alignment issues are easily handled by most astronomy stacking and image post-processing applications. The different positions of single light frames will make it more effective for image integration algorithm that implement an outlier rejection method (like sigma-clipping) to reject fixed-pattern noise ans well as hot and cold pixels. This is because hot and cold pixels are always in the same position in the camera sensor and dither will make them appear in different places for each frame after a dither move.
Because dithering is an operation that must be coordinated with guiding (remember, the mount is being purposefully moved by a few pixels, which guiding would reflexively attempt to counteract), the dithering operation is managed by the guiding applications themselves. The process is simple. N.I.N.A. suspends imaging and commmands the guiding application to execute a dither operation. It performs the dither, and then informs N.I.N.A. when the operation is complete. Any required adjustments to guiding are automatically handled by the guiding application. N.I.N.A. then resumes commanding normal exposures. Normally, a dither operation takes a few tens of seconds (at most) to complete.
Dithering in N.I.N.A.#
N.I.N.A. offers three different ways to perform dithering:
- Standard dithering through PHD2, MGEN2, or MetaGuide
- Synchronized dithering across multiple main cameras on the same mount, also through PHD2
- Built-in dithering using N.I.N.A.'s Direct Guider function
The desired method of dithering is selected in the Equipment > Guider tab.
This is the typical scenario for most users. The user has a single main camera, a guide camera, and a supported guiding application. At the intervals configured in the sequence, N.I.N.A. will pause operations with the main camera and trigger a dither operation. Photography resumes when the dither operation is completed.
Synchronized Dithering with PHD2#
Multiple imaging telescopes and cameras in addition to a single guide camera has become a common configuration. N.I.N.A. can be used to control these kinds of setups through multiple instances of the application. One instance controls the mount, guiding, and one of the main cameras. Additional instances of N.I.N.A. control each additional main imaging camera present and communicate their actions to the master instance of N.I.N.A. This coordination is automatically set up in the background when multiple instances of N.I.N.A are started. This configuration poses an issue for dithering because, without coordination between the multiple instances of N.I.N.A., a dither operation may be initiated while one of the other main cameras still is busy exposing.
To manage this, a dither operation will be coordinated with PHD2 so that it happens when none of the imaging cameras are exposing. N.I.N.A. developer Stanley Demont describes Synchronized Dithering in his N.I.N.A. 1.8 feature overview video. At this time, only PHD2 is supported for synchronized dithering, and we are planning to expand support to the other guiding applications.
There are some cases where guiding equipment isn't needed or available, but you still want to dither. This can happen if you have a very high end mount with encoders or with small portable setups. N.I.N.A. can perform dithers directly via its Direct Guider which manually slews the telescope very small distances.
N.I.N.A. supports dithering using its direct communication with PHD2 and makes it easy to set up as a part of a sequence. There are a few prerequisites to dither during a sequence:
- A mount needs to be connected
- A supported guiding application needs to be be running, actively guiding, and also communicating with N.I.N.A.
- The guiding-related settings in the Equipment Settings need to be correctly set up
- If you need dithering, it should be enabled in the sequence
In order for N.I.N.A. to communicate with PHD2 and command operations such as dithering and for receiving guiding telemetry, PHD2's internal server must be enabled. To enable PHD2's internal server, go to PHD2's Tools menu and ensure that Enable Server is selected.
Settings for PHD2#
Settings related to guiding and dithering can be found in the Options > Equipment tab. The defaults are suitable for most cases. You will need to specify the full path to
phd2.exe if PHD2 was installed in a non-standard location. This is so N.I.N.A. can automatically start PHD2 as a part of the equipment connection process.
An explanation of the two most important dithering-related settings follows:
- PHD2 Dither Pixels: The amount of pixels (on the guiding camera) that the dithering action will shift. This value should take into account the guiding imaging scale and main camera imaging scale, in arcsec/pixels. To select the appropriate value you need to consider how many imaging camera pixels will shift between two exposures as a consequence of a dither move. Obviously, 2 pixels at one focal length and pixel size will cover a different amount of sky than another setup with a different focal length and pixel size.
It is usually recommended to dither a number of guide camera pixels that will shift the main imaging camera of about 10 pixels.
Let's assume to have a guide camera with 2.9microns pixel and a 240mm focal length off-axis guidescope, resulting in a guide scale of 2.9arcsec/px. The imaging optical train is composed by a camera with 3.8microns pixel and a 540mm focal length scope, resulting in an imaging scale of 1.5arcsec/pixel. A guide camera shift of 6 pixels corresponds to a motion of 15arcsec or 10 pixels of shift for the main imaging camera. In this case a PHD2 Dither Pixels of 6 pixel is therefore appropriate.
The PHD2 Dither Pixel value will be multiplied by PHD2 by the "Scale" value found under Advance Setup>Dither Settings of PHD2. This value will be multiplied by the Dither Pixel set in N.I.N.A. to determine the final pixel shift amount. It is recommended to leave it at 1 and only change the amount of dither pixels in N.I.N.A.
- Dither RA Only: This will cause dithering to happen on the RA axis only and allow the declination axis to continue guiding.
This option should only be checked in the following cases: - your mount does not support DEC guiding (i.e. skytracker) - your mount suffers from a high declination backlash - you are guiding in one direction only in DEC
The pixel scale of your guide camera can be calculated using online tools. By inputting the focal length of your guiding optical train and the pixel size of your guide camera's sensor, you will know how many arcseconds of sky is covered by each pixel (arcseconds per pixel). Such a tool is the Astronomy Tools FOV Calculator.
- Dither Settle Pixel Tolerance and Settle Time: these are important parameters that define the succesfull end of a dither move. When a dither is initiated by PHD2 a random move of the mount in RA/DEC is issued, the maximum amount of the random move is defined by PHD2 Dither Pixels. The mount then resumes its tracking operations, but depending on the mechanical stability of the gears it might take a ouple of seconds to return to its normal guiding conditions. This time represents the Settle Time and N.I.N.A. lets you define a Minimum Settle Time during which no attempts to start a new captures will be made.
The succesful completion of a dither settling is achieved when guiding after a dither move remains within the tolerance defined by the PHD2 Settle Pixel Tolerance expressed in guide camera pixels. Once settling is complete N.I.N.A. will start a new capture.
Should settling be not achieved after the period defined in PHD2 Settle Timeout, the settling will be declared failed and N.I.N.A.will start a new capture.
PHD2 Dither Pixels depends on your mount guiding capabilities and guiding scale and should be determined by looking at PHD2 logs. A great tool to analyze PHD2 logs is PHD2 Log Viewer that can be downloaded from here
Settings in Sequences#
Regardless of the dither method in use, initiating dithering during the course of a running sequence is simple. Dithering operations can be activated for each step in a sequence, and be initiated every Nth frame in each step. That is, if a step in a sequence specifies that 20 exposures be taken with a dither operation every second exposure, two normal exposures will be taken, a dither operation performed, and then the next two exposures will be taken, etcetera. N.I.N.A. manages these operations itself in conjunction with PHD2 and the process is entirely hands-off.
Dithering operations happen while the previous image is downloading from the camera. If you have a camera with slow download speeds, it might be that the dithering operation is completed in time for the camera to be ready for the next exposure.
If you use a LRGB rotational sequence (See Also: Advanced Sequencing) you might only want to dither on every L frame. If an OSC or DSLR camera is used, it is suggested to dither after every frame, altough if you are shooting very short exposures (30s, 60s) you may want to reduce the number of dithers to avoid ecessive perturbation of guiding.