Sky reconstruction and visual radiance
The stellar visibility study compares predicted seasonal dates and twilight contrast with recorded naked-eye observations. V01 observations and calibration.
Implementation. skyscapeR 2.0, R/sketchSky.R, R/light-budget.R and R/galactic.R. A site reconstruction asks two distinct questions: where does a body appear relative to the skyline, and what light reaches the corresponding part of the sky? The plotting stage consumes their results. This distinction matters when a feature remains geometrically above the terrain but fades into the twilight background.
Geometry and state
sketchSky() takes a georeferenced horizon and an instant. Record the calendar and timezone when specifying civil time. It resolves astronomical positions at the site using the epoch-appropriate ephemeris and captures the session’s refraction, pressure and temperature settings. The horizontal frame uses true azimuth clockwise from north. The resulting object can be replotted for another sector without moving the sky in time. Recompute the instant with skyStep() for a time sequence. See the ephemeris chapter for file coverage, time scales and the scope of the upstream precision claim.
Natural mode is the default. Stars, the Sun and the Moon are enabled by default; planets require their switch. The Milky Way switch follows the stars unless set explicitly. Turning the Moon off removes its disc and its illumination. A ridge occulting the disc in the plotted scene can still leave scattered moonlight. The constellation geometry section describes the endpoint selection.
Linear radiance and the rendered pixel
With extinction of 0.2 magnitudes per airmass, transmission was 0.149 at 5 degrees and 0.832 at the zenith under the adopted law. Reproduction files.
A source of visual magnitude has relative flux . For extinction coefficient in magnitudes per airmass, direct flux is attenuated by , with the Rozenberg airmass approximation used in the package (Schaefer 1986; Krisciunas and Schaefer 1991, eq. 14). This uses altitude above the horizontal. It is the terrain that determines whether a rendered line of sight is blocked. Near the horizon, actual extinction is particularly sensitive to local conditions.
Stars remain unresolved as the field is enlarged. Planetary and lunar contributions use apparent size and illumination from Swiss Ephemeris. For a cluster with an integrated catalogue magnitude, the renderer subtracts light already assigned to plotted stars inside its projected footprint before distributing the residual glow. This avoids double-counting projected light; membership and individual detectability require different evidence (Crumey 2014). Source sizes and attributions are recorded in the package help and inst/COPYRIGHTS.
For a natural sketch, skyRadiance() samples the unmasked field as magnitude-zero flux per square degree. It returns total, direct-source and Milky Way matrices; subtracting the latter two from the total gives the atmospheric component. Pixel solid angle varies with altitude. For an azimuth width in radians and altitude limits , its solid angle is steradians. Convert to square degrees before multiplying the returned surface brightness by area and summing to recover source flux. The Sun’s disc is drawn separately as an overlay.
The natural display combines the components before adapting to background brightness, compressing the brightness range and converting to screen colour. Directly comparing RGB values across zoom levels would mix photometry with pixel area and display mapping. The publication styles instead draw magnitude-scaled symbols. The study register identifies the tested build for each result.
Twilight and moonlight
Twilight brightness had a mean absolute residual of 0.481 magnitudes against 22 held-out measurements. This benchmark covers twilight only. Reproduction files.
The adopted zenith curve uses Paranal V-band photometry at solar depressions of 5–15°, with tabulated anchors and interpolation outside that interval (Patat, Ugolnikov, and Postylyakov 2006). Directional structure uses Sacramento Peak photometry (Koomen et al. 1952). The implementation interpolates log brightness ratios across viewing altitudes and solar-altitude samples, then blends the solar and antisolar directions with weight . This yields a continuous azimuthal field that agrees at the zenith. The transition to the daytime gradient is a separate modelling choice. Moonlight uses the phase, altitude and angular scattering dependence in Krisciunas and Schaefer (1991). Twilight colours remain illustrative; local aerosol and atmospheric structure are not reconstructed from the site coordinates (Lee 1994, 2015).
Milky Way boundary, internal structure and calibration
The Milky Way lookup recovered all 4,323,600 stored classes and agreed across the longitude seam. Independent tracing of the outline remains open. Reproduction files.
The outer envelope and internal regions are classified from the diffuse-light component of Deep Star Maps 2020 (Wright 2020). An 8° local reference identifies dark regions more than 8% below their surroundings; connected dark regions smaller than 7 square degrees are omitted. Two brighter classes retain the reviewed image-tone cutoffs. These settings were chosen visually and remain illustrative. In particular, 7 square degrees is not a physiological visibility threshold or an independently established angular scale. For alignments defined by the outer envelope, enclosed dark regions remain within the Milky Way.
The implemented relative intensities are 0 outside the band, 1 for ordinary band, 0 for the dark class, and 1.35 and 2.1 for the two bright classes. These are provisional rendering weights. Atmospheric background can still contribute light in a dark-class pixel. The surface-brightness scale is anchored to a four-degree Carina field at 20.7 V mag arcsec⁻² (Kruit 2024). Normalisation in that field constrains the adopted scale, not every direction around the Galaxy. The direct atmospheric transmission is evaluated separately for the displayed altitude, so a geometrically predicted crossing can be difficult to follow near the skyline. A plotted Galactic equator and an outer Milky Way edge represent different sightlines.
Publication-colour and publication-mono sketches attenuate the Milky Way towards the horizon using k by default. Set band.extinction = FALSE to display its intrinsic structure in those styles. Natural skies apply atmospheric transmission to the band. A native skyStep() carries the stored setting into the next frame.
Reproducing the illustrative boundary
The exact 1024 × 512 RGB source image used during visual selection is retained with the reproduction script in data-raw/milky-way. Its weighted image tone (RGB weights 0.2126, 0.7152 and 0.0722, on a 0–255 scale) is resampled onto a 0.1° Galactic grid and smoothed at 1° FWHM. Further 4° smoothing and a tone threshold of 40 define the main connected region around the Galactic plane; enclosed holes are filled. Longitude wraps continuously.
Dark patches fall more than 8% below an 8° Gaussian local reference in the presmoothed image. Their minimum connected area is 7 square degrees. Brighter regions exceed fixed tones of 72.4751 and 115.3013 and cover at least 10 square degrees. The bright thresholds preserve the reviewed 1.10 and 1.75 multiples of the pilot reference mean, 65.8865; they are held fixed when the dark mask changes. Areas account for spherical cell size. All smoothing widths are FWHM.

The stored grid has 3,600 longitude and 1,201 latitude samples from −60° to +60°. Fine sampling supports smooth projection but does not create independent detail beyond the source resolution. The script, source checksum, chosen thresholds and grid checks are retained for reproduction. The source used for visual selection cannot independently validate the resulting boundary; this revision changes the adopted geometry, so analyses dependent on the previous outline should be rerun.
How the Carina field fixes the intensity scale
The implementation in R/light-budget.R samples a circle of radius 2° centred at Galactic on a 0.1° grid. Let be the relative intensity of the class at sample . The mean accounts for the area represented by each Galactic latitude row. The intrinsic brightness assigned to class , in magnitude-zero flux per square degree, is
The factor converts square arcseconds to square degrees. This construction makes the field mean reproduce the adopted Carina brightness (Kruit 2024, table 3). A comparison in the same field therefore checks the normalisation. Off-Carina photometry tests the extrapolation across six fields. In the renderer, the Galactic class is looked up along the geometrical direction corresponding to the displayed pixel, and its brightness is multiplied by transmission at the displayed altitude. This explains how the outline can retain the same geometrical extent while a low-altitude section loses visual contrast. The study register distinguishes the traced boundary, measured twilight comparisons, flux recovery and extinction checks.
Constellation selection and planisphere geometry
In sketchSky(), a constellation selection can identify a set, a named figure, a stable identifier such as CHN009, or a table from importConstellations(). Supplying the selection enables constellation lines unless the line switch is explicitly set. A legacy Stellarium FAB row gives one figure identifier, a segment count and two positive HIP identifiers per segment. The importer rejects malformed counts and duplicate figure IDs. It returns a reusable table of connections. The catalogue supplies the stellar positions. A magnitude cut on star symbols does not remove a valid line endpoint. A missing catalogue endpoint limits what can be drawn. The modern and Chinese mansion selections in the vignette can therefore be compared using exactly the same sky. For attribution use the source of the selected sky culture (Stellarium contributors, n.d.).
planisphere() projects those connections on a different surface. With pole sign in the northern hemisphere (including the equator), or in the southern hemisphere, radius is , plotted angle follows , and the outer radius is . Between distinct endpoints the code samples the shorter great-circle arc at intervals of at most about 0.2°, then clips the projected line to the accessible sky. Coincident endpoints can denote a single marker. Optional equatorial, ecliptic and Galactic reference curves have distinct geometries. The observer’s terrain profile, timestamp and atmospheric brightness do not enter this chart. Record the epoch, latitude, magnitude cut, figure set and enabled layers when comparing it to a dated sketch.
Display styles, capture and stepping time
A one-minute native sky step retained the publication extinction setting. External Stellarium capture requires a separate comparison. Reproduction files.
A natural sketchSky() uses enabled luminous sources and their atmospheric contributions. The publication-colour and publication-mono styles show positions with magnitude-scaled symbols. The catalogue filter max.mag acts before atmospheric dimming and leaves constellation endpoints, the Sun, Moon and planets outside that cut. In a natural sketch, turning the Sun or Moon off also removes its contribution to illumination. The stellar layer sets the default for the Milky Way unless milky.way is explicitly supplied. The ecliptic, celestial and Galactic equators, poles and zenith are independent guides.
stellariumSky() freezes the external application’s clock and captures a full-sphere Cylinder Fill raster. The seam is north, the centre south and the horizontal midline is zero altitude. A 30° crop of a 4096-pixel capture contains approximately 341 source pixels. Zooming into a saved raster cannot add stellar detail. Record Stellarium version, catalogue, selected sky culture and display switches. The capture defaults leave landscape and fog off. Other omitted switches can depend on the existing application state (Stellarium contributors, n.d.).
skyStep() computes . For a native sketch it rebuilds the sky using its stored calendar, style, magnitude limit, extinction coefficient and display selection. It reads refraction, pressure and temperature again from the current session. For a Stellarium sky it requests another screenshot with the saved capture settings. In both cases assign the invisibly returned object before stepping again. Drawing another sector at the same instant only requires replotting. Doorway edge lines added to the graphics device must be redrawn after the new plot.
Comparative strengths and outstanding issues
Stellarium provides an interactive planetarium with navigable sky, exchangeable sky cultures and landscape visualisation (Stellarium contributors, n.d.). For an archaeological analysis, the specific advantage of skyscapeR is the ability to use the same R horizon and instant for the geometry, inspect the separate radiance components, and archive the inputs and calculation alongside the figure. No matched comparison in the register establishes photometric superiority over Stellarium. A screenshot can check gross appearance; validation of angular position, diffuse brightness or human detection requires a reference appropriate to that quantity.
The study register links the twilight, flux and extinction checks to the functions they exercise. The off-Carina comparison quantifies spatial brightness errors. Independent tracing of the outer boundary remains open.
Related function entries
body.position(), createHor(), importConstellations(), plot.skyscapeR.horizon(), sketchSky(), skyRadiance(), skyscapeR.vars(), skyStep(), star(), stellariumSky(), time2jd().