Code Monkey home page Code Monkey logo

ohp's Introduction

Paris-Saclay OHP Summer School 2023

America / Pelican challenge

Our objective will be to build collectively images of the NGC 7000 / IC 5070 / IC 5067 complex, a.k.a. the North America and Pelican nebulae. We will acquire and reduce the data necessary to produce an image in 'natural' RGB colors (similar to the one below, but at higher resolution) and in 'false color' narrow band (SII, Hα, OII, similar to this).

The challenge will be to collectively accumulate as many hours of exposure as possible to assemble the best final images.

ESPRIT 100 ED / Canon EOS 6D / 10 hours

Beyond making pretty pictures, our objective will be to understand the data acquisition chain and the calibration process. This will be performed using a refracting telescope, a camera and filters, all commercially available. We will measure the physical properties of the CMOS sensor, understand the sources of noise in the data, and derive the optimum acquisition parameters. The principles and methods exposed are generic and applicable to amateur equipment and professional giant telescopes alike.

Using Python notebooks, we will

  • Determine the optimal bias of the camera (notebook)
  • Measure the dark signal of the sensor (notebook)
  • Measure the flat field of the system (notebook)
  • Measure the read noise of the camera (in electrons) (notebook)
  • Measure the gain of the camera (in electrons / DN) (notebook)
  • Measure the sky background (in electrons) (notebook)
  • Determine the optimal exposure time (notebook)

Then, using (Siril, old website), we will

  • Stack the individual frames
  • Composite the channels into color pictures

1. Equipment

1.1 Hardware

1.2 Software

1.3 Notes on the acquisition setup

1.3.1 Plate scale

Given the pixel size of 3.76 μm, and the measured focal length of the telescope is 555 mm (larger than the listed value by 1%), the plate scale of the setup is

3600 * π atan( 0.00376 / 555 ) / 180 = 1.397" / pixel

1.3.2 Angular resolution

The angular resolution is given by the diameter of the Airy disk

r = 1.22 λ / D

with D = 0.1 m the diameter of the objective lens. In the green (530 nm), this corresponds to about 1.3". However, the typical seeing (from atmospheric turbulence) is about 2" to 3" rms, which thus drives the resolution. In addition, the tracking errors of the equatorial mount are of the order of 1" rms. Taking the quadratic sum of the three contributors, we get the effective width of the Point Spread Function (PSF).

Filter λ [nm] Optical r ["] 2" seeing r ["] 3" seeing r ["]
B 460 1.16 2.52 3.37
OIII 496 / 501 1.25 / 1.26 2.56 / 2.57 3.40 / 3.40
G 530 1.33 2.60 3.43
R 640 1.61 2.75 3.55
656 1.65 2.78 3.57
SII 672 1.69 2.80 3.59

While the optical resolution values differ by 45%, the effective resolution varies by 11% with 2" seeing and by 6% with 3". At 2" seeing, the system does not satisfy the Nyquist–Shannon sampling theorem, which requires a sampling of 1.2" / pixel in the blue.

1.3.3 Tracking

The equatorial mount is tracking very accurately, with compensation of the periodic error down to ~2" rms. Without active guiding, long exposures would be affected by drift caused by polar alignment errors, refraction & mechanical deformations. The measured drift rate is typically 0.5" / minute. If we allow a total drift during an exposure to be 1/10th the PSF (so that the effect is negligible), the exposure time is limited to 30s with 2" seeing. Exposures of 90s induce a drift of ~1/3 PSF with 2" seeing, which can be marginally acceptable.

1.3.4 Guiding

Active guiding is provided by a 50 mm diameter, F/4.8 guide telescope equipped with a field flattener and an AZI 178 mono camera. The guiding error is systematically < 1" rms, down to 0.6" rms in good conditions.

2. The acquisition chain

The signal $S(\mathbf{x})$ measured in DN (Digital Number, a.k.a. ADU, Analog to Digital Unit) by the detector is equal to

$$S(\mathbf{x}) = g(\mathbf{x}) \left[ t\ \left( Q(\mathbf{x}, \lambda) I(\mathbf{x}) + N(\mathbf{x}, T) \right) + R(\mathbf{x}) \right] + B(\mathbf{x})$$

where:

  • $\mathbf{x}$ is the vector position on the detector.
  • $\lambda$ is the wavelength.
  • $I(\mathbf{x})$ is the intensity incident on the detector, in photons per second.
  • $Q(\mathbf{x}, \lambda)$ is the external quantum efficiency (EQE), i.e. the number of photo-electrons created per incident photon.
  • $g(\mathbf{x})$ is the gain of the detector, i.e. the number of DN per electron.
  • $N(\mathbf{x}, T)$ is the thermal signal, function of the temperature T, in electrons per second.
  • $t$ is the exposure time, in seconds.
  • $R(\mathbf{x})$ is the read noise, in electrons.
  • $B(\mathbf{x})$ is the bias of the Analog to Digital Converter(s) (ADC), i.e. the output value that corresponds to zero incident intensity, in DNs. The bias is set to a positive value to avoid clipping of faint signals to zero.

It is important to note that for a given pixel, $I(\mathbf{x})$, $N(\mathbf{x}, T)$ and $R(\mathbf{x})$ are also functions of time because of the statistical fluctuations of the photon and thermal signals, and because of the noise in the readout electronics. $I$, $N$ and $R$ must thus be understood as random variables. It is worth noting that thermal electrons cannot be distinguished from photo-electrons. They obey to the same Poisson statistics.

The above equation can be rewritten:

$$S(\mathbf{x}) = g(\mathbf{x}) \left[ t\ Q(\mathbf{x}, \lambda) I(\mathbf{x}) + R(\mathbf{x}) \right] + g(\mathbf{x}) t N(\mathbf{x}, T) + B(\mathbf{x})$$

The relevant quantity to compute the shot noise in the image is $E(\mathbf{x}) = tQ(\mathbf{x}) I(\mathbf{x})$, i.e. the number of photo-electrons. We thus have

$$S(\mathbf{x}) = g(\mathbf{x}) [E(\mathbf{x}) + R(\mathbf{x}) ] + g(\mathbf{x}) t N(\mathbf{x}, T) + B(\mathbf{x})$$

The objective of the calibration of the detector is to invert the above equation to be able to determine $E(\mathbf{x})$ knowing the measured signal $S(\mathbf{x})$. As mentioned above, $N$ and $R$ are random variables. As such, it is impossible to know the exact value taken by each one during a given data acquisition. All we can determine - and correct for - is the temporal mean (denoted $\overline{N}$, $\overline{R}$) of these random variables. In addition, we note that the read noise $R(\mathbf{x})$ has zero mean ($\overline{R}=0$). We can thus now write the calibration equation as

$$\overline{E}(\mathbf{x}) = \frac{\overline{S}(\mathbf{x}) - \left[ g(\mathbf{x}) t\overline{N}(\mathbf{x}, T) + \overline{B}(\mathbf{x})\right]}{g(\mathbf{x})}$$

or, with $\overline{D}(\mathbf{x}) = g(\mathbf{x}) t \overline{N}(\mathbf{x}, T) + \overline {B}(\mathbf{x})$

$$\overline{E}(\mathbf{x}) = \frac{\overline{S}(\mathbf{x}) - \overline{D}(\mathbf{x}) }{g(\mathbf{x})}$$

  • $\overline{D}(\mathbf{x})$, sum of the thermal signal and bias, can be measured by taking 'dark frames', i.e. images taken without illuminating the detector.

  • The gain $g(\mathbf{x})$ and read noise $R(\mathbf{x})$ can be measured simultaneously using a method called the Photon Transfer Curve (PTC) analysis. Although the read noise does not appear in the calibration equation, it is an important quantity to determine to choose the optimal acquisitaion parameters and to reduce the data.

  • The PTC analysis will typically provide the mean value of the gain over the detector. The pixel-to-pixel variations of the gain $g(\mathbf{x})$ are called the 'flat-field' and can be measured using a uniform light source. By extension, the term flat-field is used to describe the combination of all the multiplicative terms that affect the spatial variations of the response of the instrument (e.g. the vignetting).

3. Choosing the optimal acquisition parameters

3.1 Bias

The bias of the ADC needs to be chosen so that the values are not clipped due to random fluctuations of the signal around zero. This will be looked at in the bias notebook.

3.2 Gain

Looking at the characteristics of the ZWO ASI 2600 MM Cool, the 'gain' setting of 100 is a good compromise between dynamic range and read noise. Note that this 'gain' value of 100 is not the gain as defined above. It is a setting value in arbitrary units, to which corresponds a true gain (as expressed in DN / electron), as measured in the ptc notebook.

3.3 Exposure time

Deep sky objects require long exposures, typically several hours. One could either take a single very long exposure, or take multiple shorter exposures and sum (or stack) them up to the same equivalent total exposure time:

  • A single frame is in theory the best in terms of noise (see below), but requires perfect guiding and will be ruined by trails from planes and satellites, and possibly by clouds.
  • Stacking multiple images will result in more noise (see below), but guiding does not have to be as good, and trails can easily be removed in post-processing.

As demonstrated in the exposure time notebook, there is an objective way to determine the optimal exposure for individual frames in the stack.

3.4 Sensor temperature

The sensor temperature is chosen so that the thermal signal is negligible compared to that from the sky background. from the ASI 2600 datasheet, we choose to operate at -5°C, which corresponds to 0.001 electron / s, i.e. ~20 times lower than the sky brightness in narrowband images.

ohp's People

Contributors

frederic-auchere avatar

Watchers

Lucian avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.