Skip to main content
Sandbox Physics

AC02 · Counting starlight

Crowded-star Photometry

Can a neighboring star make a steady star look brighter? Yes. A circular aperture also collects light spread from nearby stars. Fitting the shapes of both stars can separate their light, but the uncertainty grows as their images overlap.

Drag the amber star into the cyan aperture and watch its light enter the measurement. Compare a circular aperture with a two-star fit to the same noisy detector pixels.

Interactive modelCrowded-star Photometry
Aperture flux, corrected for lost light8.32×103 e−8.32\times10^3\,\mathrm e^{-}
Target flux from the two-star fit6.76×103 e−6.76\times10^3\,\mathrm e^{-}
Fit uncertainty, one standard deviation104 e−104\,\mathrm e^{-}
Neighbor light inside the aperture1.55×103 e−1.55\times10^3\,\mathrm e^{-}

Follow one star through the measurements

White: injected target flux. Cyan: the two-star fit. Amber: aperture flux with the known target aperture correction. All values are photoelectrons per simulated exposure.

Repeated simulated exposures F  [e−]F\;[\mathrm e^{-}]
What the uncertainty includes

The quoted fit error comes from the weighted linear fit to the two pixel-integrated Gaussian profiles and a constant background. Photon and read noise are included. Source positions, profile width and weights are supplied by the generating model. Uncertainty in those inputs would increase the error in a real observation. Aperture leakage is an ideal contribution from the neighbor, corrected by the same target enclosed fraction as the aperture flux.

The detector uses one false-color scale for acquired simulated pixel counts. For display only, the known input sky is removed, negative remaining values use the darkest display color, and an asinh stretch runs from dark blue to white with a ceiling one thousand electrons above the sky. Cyan and amber mark the supplied aperture and star positions. Stored pixels and both measurements retain the original counts.

f^=(ATWA)−1ATWy,Cov⁡(f^)=(ATWA)−1\widehat{\boldsymbol f}=(A^{\mathsf T}WA)^{-1}A^{\mathsf T}W\boldsymbol y,\qquad\operatorname{Cov}(\widehat{\boldsymbol f})=(A^{\mathsf T}WA)^{-1}

Physics tutorial

Separating two overlapping pools of light

BackgroundA telescope spreads the light of a star across several pixels. In a crowded field, the wings of one stellar image reach another. A circle around the target then counts some light from both stars.

Why it mattersA small aperture loses target light. A large aperture admits more sky and neighbors. Knowing the shape of each stellar image offers another way to estimate the brightness.

Start with the essentials

Focus question
How does the same detector image give two different brightness estimates?
One-sentence intuition
An aperture adds pixels inside a boundary; a two-star fit uses their spatial pattern to divide the light.

Core mathematical model

Light in each detector pixel

yi=FtPit+FnPin+B+ϵiy_i=F_{\mathrm t}P_{i\mathrm t}+F_{\mathrm n}P_{i\mathrm n}+B+\epsilon_i

The target and neighbor contribute their total photoelectrons times the fraction falling in pixel i. The constant sky adds photoelectrons to every pixel; noise fluctuates around this mean.

Aperture correction

F^ap=∑iwi(yi−B^)∑iwiPit\widehat F_{\mathrm{ap}}=\frac{\sum_i w_i(y_i-\widehat B)}{\sum_i w_iP_{i\mathrm t}}

A pixel weight is the fraction of its area covered by the aperture. The denominator is the target profile fraction captured with those weights. It corrects target light loss; neighbor light remains in the numerator.

Noise of a pixel

Var⁡(yi)=FtPit+FnPin+B+σread2\operatorname{Var}(y_i)=F_{\mathrm t}P_{i\mathrm t}+F_{\mathrm n}P_{i\mathrm n}+B+\sigma_{\mathrm{read}}^2

Independent Poisson electrons have variance equal to their expected count. The readout contributes an independent variance. The simulation supplies this true variance to the fit.

Common difficulties

More pixels do not always improve the measurement

Typical misconceptionThe widest aperture is best because it catches more target light.

Better mental modelThe outer pixels contain progressively less target light, but still add background noise and neighbor light. Try changing only the radius and compare the corrected aperture flux with the injected white curve.

Run the experiment

  1. 01

    Move the neighbor away

    Select A star on its own, then drag the amber star toward the cyan aperture.

    What to observe: The aperture estimate rises as neighbor light enters. The two-star fit still follows the injected target flux.
  2. 02

    Blur the images together

    Choose Two images merge and reduce Star separation. Compare the fit uncertainty with the isolated preset.

    What to observe: The two profiles become harder to distinguish. The fit can remain unbiased while its uncertainty increases.
  3. 03

    Give the sky the wrong value

    Choose Subtract too much sky. Open Background error and vary only Extra sky subtraction per pixel.

    What to observe: The aperture estimate falls because every covered pixel loses extra electrons. The fit solves its own constant background from the image.

Related experiments and articles

Continue exploring

Measuring the sky

What do positions, colors, interference and radio delays reveal about the sky?

  1. LabStellar Parallax and Proper MotionChange the stellar distance and follow its annual motion.
  2. You are hereCrowded-star PhotometryMove the aperture and compare the light admitted from neighbouring stars.
  3. LabStellar Absorption LinesChange the gas temperature and velocity, then compare the absorption lines.
  4. LabGalaxy Colors and Photometric RedshiftCompare redshift, dust and stellar-population effects in the same five bands.
  5. LabStellar Interferometry and Sparse ImagingMove a telescope and compare images fitted to the same sparse signals.
  6. LabInterstellar Radio PropagationChange the electron column and field, then follow the arriving radio pulse.

Measuring starlight in crowded fields · Reading path

Measuring starlight in crowded fields

Articles on this path that use this experiment, followed by the other experiments they suggest.

  1. ArticleDid the star really fade?
  2. ArticleFrom one photoelectron to an aperture of pixels
  3. ArticleOne pixel can contain light from two stars
  4. ArticleExtract TESS brightness from twelve pixels
  5. ArticleRead the residuals in deblending and difference images
FeedbackSomething broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy