sketchSky()
Scientific results for this function.
Observational accuracy and validation.
Prepare a reusable sky sketch for a horizon plot
Description
Calculate the sky above one observing site at one instant, then reuse it as the background of a horizon plot. Natural style illustrates daylight, twilight, moonlight and atmospheric extinction. Publication styles show the selected objects without brightness-dependent visibility filtering.
Usage
sketchSky(
hor,
jd = NULL,
time = NULL,
timezone,
calendar,
display = list(),
style = c("natural", "publication-colour", "publication-mono"),
max.mag = 6,
k = skyscapeR.vars()$k,
band.extinction = TRUE
)
Arguments
hor |
A |
jd |
One finite UT Julian day. Supply exactly one of |
time |
A civil timestamp accepted by |
timezone, calendar |
Civil timezone and calendar for character |
display |
A named list of logical switches: |
style |
One of |
max.mag |
Finite catalogue magnitude cutoff, default 6. Applied before extinction to star symbols and the integrated magnitudes of supported clusters. It does not limit constellation endpoints, the Sun, Moon or planets. Raising the cutoff includes additional stars only where the catalogue supplies them. |
k |
Non-negative visual extinction coefficient in magnitudes per airmass for natural style. Defaults to |
band.extinction |
Logical. Defaults to TRUE. Set to FALSE to disable Milky Way extinction in publication styles. Natural style already applies it. |
Details
The function computes an object without drawing. Use
plot(hor, sky = sky, xrange = ..., yrange = ...) to choose the sector.
Replotting the object changes framing without recalculating the instant. Use
skyStep to recalculate at another time. Astronomical calculations
require Swiss Ephemeris files covering the epoch; see
skyscapeR-package for installation.
Value
An object of classes skyscapeR.sketch and skyscapeR.sky.
It stores jd, loc, style, display, settings
(calendar, magnitude cutoff and extinction), and atmosphere.
stars and coords contain azimuth, altitude and symbol size;
star.opacity retains an earlier symbol-opacity diagnostic; natural
sketches draw from light.budget. bodies, diameters,
planet.size and lunar describe selected Solar System bodies.
clusters holds supported cluster footprints and opacity when applicable. The natural view uses the integrated Pleiades magnitude as the light budget within its projected footprint. When the plotted stars exceed that budget, their fluxes are scaled together to preserve their relative brightness. Any residual light uses a broad, tapered profile;
guides, light, background and twilight fields support drawing.
Components can be empty when a layer is disabled. No image file is written.
Reading a natural sketch
The sky is calculated for the specified instant. Stars, clusters, planets and
the Moon contribute light on a common visual (V-band) magnitude scale.
Diffuse Milky Way light and atmospheric background are measured per unit
sky area. Their light is added before brightness is compressed for display.
To inspect the values underlying a view, use skyRadiance.
Stars remain unresolved as the field is enlarged. Mercury, Venus, Mars, Jupiter, Saturn and the Moon use apparent disc sizes and illuminated fractions from Swiss Ephemeris. A close view can therefore show the phase of Venus. Star colours follow catalogue spectral classes; the diffuse band has a neutral tint. Colour and projection influence the screen appearance. Publication styles use magnitude-scaled star and planet symbols on white. In publication colour, stellar hue identifies the leading catalogue spectral class O through M; other or missing classes use neutral grey.
Azimuth increases clockwise from true north. Refraction, pressure and
temperature come from skyscapeR.vars when the sky is calculated.
The Sun and Moon switches control their contributions to sky illumination as
well as their discs. Use display = list(moon = FALSE) for a moonless
comparison. The terrain masks the drawn sky; a local ridge hiding the Moon
can still leave scattered moonlight in the sky.
Constellations
Use display = list(constellations = "Orion") to select and enable line
figures. "modern" selects all 88 Western figures, "chinese" the
full Chinese set, and "chinese_mansions" the 28 lunar-mansion figures.
Names and abbreviations are case-sensitive; for example c("Ori", "Tau").
Alternatively, supply a data frame from importConstellations.
See constellations for sources and identifiers.
Supplying a selection enables lines unless constellation.lines = FALSE
is also supplied. Setting constellation.lines = TRUE without a selection
uses modern figures. Endpoint coordinates are calculated independently of the
star-symbol magnitude cut. Lines therefore remain when their stars are faint,
extincted, or switched off. A single-star figure is drawn as a ring. Normal
plot clipping and the horizon foreground still apply. These are reference
figures; their visibility is not an observing prediction.
Twilight and extinction
At twilight the sky brightens differently towards and away from the Sun. Zenith brightness uses the Paranal V-band observations of Patat et al. (2006) at solar depressions of 5 to 15 degrees. Sacramento Peak measurements supply earlier twilight levels and the directional variation (Koomen et al. 1952). These clear-sky estimates depend on site conditions. Moonlight uses the scattering model of Krisciunas and Schaefer (1991), with its dependence on lunar phase, altitude and angular separation.
Direct light fades towards the horizon as its path through the atmosphere
lengthens. The coefficient k sets the loss per airmass. The model
uses Rozenberg's airmass approximation (Krisciunas and Schaefer 1991);
uncertainty is greatest close to the skyline. The twilight colours are
illustrative (Lee 1994, 2015). Above the geometric horizon, the display blends
gradually into a clear daylight blue, reaching its full daytime palette and
exposure at a solar altitude of 15 degrees.
Milky Way and clusters
The Milky Way uses a 0.1-degree Galactic grid classified from the reviewed 1024-pixel diffuse-light image in Deep Star Maps 2020. A smoothed image-tone threshold defines its outer envelope. Dark patches are more than 8 percent below an 8-degree local reference and cover at least 7 square degrees. Two brighter classes use fixed image-tone cutoffs and a 10-square-degree minimum area. These settings, including the 7-square-degree cutoff, were chosen by visual comparison and remain illustrative, not visibility thresholds. Dark patches remain within the outer envelope for alignment purposes. See the technical manual and bundled milky-way-source.txt for reproduction. Natural sketches anchor the mean surface brightness of a four-degree field in Carina to 20.7 V magnitudes per square arcsecond (van der Kruit 2024). Brightness elsewhere is approximate. Atmospheric extinction can make the band difficult to follow down to its calculated horizon crossing. The Galactic equator is an optional geometric guide.
A supported cluster contributes its catalogue light across its angular extent. Light already assigned to plotted stars within that footprint is subtracted before the remaining glow is drawn. This accounts for projected overlap; it does not establish membership. Integrated cluster magnitude alone is insufficient to predict first detection (Crumey 2014).
Using a sketch with a stellar phase date
Use riseset to locate the terrain crossing and skyStep to follow the star through twilight. For first morning or last evening, inspect adjacent dates as well. A rendered symbol alone cannot establish naked-eye detection.
Validation
W02 verified the reconstructed Gacrux bearing and altitude at the same instant and viewpoint using direct equatorial coordinates and spherical geometry. See the W02 check in the technical manual.
Provenance
Structured results carry a provenance attribute. Read it with
attr(result, "provenance"); its packages entry records the loaded
skyscapeR and swephR versions, with NA when a namespace version is unavailable.
This attribute adds no list entries or table columns. Ordinary subsetting or
transformations may discard attributes; save the original result for reference.
It does not identify ephemeris files, catalogue revisions or a development
commit. Retain those and the analysis script separately for exact reproduction.
Observational validation
Across 56 recorded dates, heliacal rising fell within seven days of 22 of 23 first morning sightings. The median prediction was two days early. Acronycal setting fell within seven days of 21 of 33 last evening sightings. The median prediction was five days late. A week is a practical search window. Larger discrepancies occur, especially at dusk. These results apply to the two tested events. V01 observed dates and scientific checks.
Scientific checks
First-morning dates fell within seven days of 22 of 23 sightings and last-evening dates within seven days of 21 of 33. The respective median predictions were two days early and five days late. V01 study.
The Milky Way lookup recovered all 4,323,600 stored classes and agreed across the longitude seam. Independent tracing of the outline remains open. V02 study.
Twilight brightness had a mean absolute residual of 0.481 magnitudes against 22 held-out measurements. This benchmark covers twilight only. V03 study.
Across six independent diffuse-light fields the residuals had both signs. The Carina normalisation alone could not account for the spatial differences. V04 study.
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. V05 study.
A one-minute native sky step retained the publication extinction setting. External Stellarium capture requires a separate comparison. V07 study.
The field-to-sky replay recovered the Gacrux position between the Skorba West entrance edges, 2.41 degrees above the measured skyline at the illustrated instant. W02 study.
Additional stellar visibility checks
The detection criterion matched 27 of 45 observing sessions used in the development of the Schaefer model. Six separate Sirius first-morning predictions fell on the recorded sighting date or up to three days earlier. Study details.
A replay of 12 timed records included three principal Sirius sightings. Only Seattle 2003 crossed the natural-sketch contrast threshold within the tested time window. Study details.
Of 28 published Schaefer reference calculations, 20 agreed within one day. The high-latitude Izar discrepancy remained about five days after finer sampling. Study details.
Seasonal and dawn-sketch dates agreed within seven days in 76 of 80 comparisons. Five additional southern stars agreed within two days. This comparison measures agreement between models under the stated assumptions. Study details.
References
Patat, F., Ugolnikov, O. S. and Postylyakov, O. V. (2006). UBVRI twilight sky brightness at ESO-Paranal. Astronomy and Astrophysics 455, 385-393. doi:10.1051/0004-6361:20064992.
Koomen, M. J. et al. (1952). Measurements of the brightness of the twilight sky. JOSA 42, 353-356. doi:10.1364/JOSA.42.000353.
van der Kruit, P. C. (2024). Pannekoek's Galaxy. Journal of Astronomical History and Heritage 27, 135-199. doi:10.3724/SP.J.1440-2807.2024.01.10.
Krisciunas, K. and Schaefer, B. E. (1991). A model of the brightness of moonlight. PASP 103, 1033-1039. doi:10.1086/132921.
Schaefer, B. E. (1986). Atmospheric Extinction Effects on Stellar Alignments. Journal for the History of Astronomy 17, S32-S42. doi:10.1177/002182868601701003.
Schaefer, B. E. (1993). Astronomy and the Limits of Vision. Vistas in Astronomy 36, 311-361. doi:10.1016/0083-6656(93)90113-X.
Lee, R. L., Jr. (1994). Twilight and daytime colors of the clear sky. Applied Optics 33, 4629-4638. doi:10.1364/AO.33.004629.
Lee, R. L., Jr. (2015). Measuring and modeling twilight's Belt of Venus. Applied Optics 54, B194-B203. doi:10.1364/AO.54.00B194.
Crumey, A. (2014). Human contrast threshold and astronomical visibility. MNRAS 442, 2600-2619. doi:10.1093/mnras/stu992.
NASA/Goddard Space Flight Center Scientific Visualization Studio (2020). Deep Star Maps 2020. https://svs.gsfc.nasa.gov/4851/.
Verga, M. and contributors. OpenNGC. Source of cluster angular sizes. https://github.com/mattiaverga/OpenNGC. See installed COPYRIGHTS for data attribution and licences.
Astrodienst. Swiss Ephemeris programmer's manual, fixed stars, horizontal coordinates and planetary phenomena. https://www.astro.com/swisseph/swephprg.htm.
See Also
star.phases, riseset,
findTargets, skyStep,
stellariumSky, plot.skyscapeR.horizon,
importConstellations, skyscapeR.vars
Examples
## Not run:
hor <- malta_horizons[[1]]
sector <- c(0, 180)
sky <- sketchSky(hor, time = "2026/12/21 20:00", timezone = "UTC")
plot(hor, sky = sky, xrange = sector)
sky <- skyStep(hor, sky, minutes = 10, xrange = sector)
# Compare publication styles at exactly the same instant.
colour <- sketchSky(hor, jd = sky$jd, style = "publication-colour",
display = list(constellations = "modern"))
mono <- sketchSky(hor, jd = sky$jd, style = "publication-mono",
display = list(constellations = "modern"))
plot(hor, sky = colour, xrange = sector)
plot(hor, sky = mono, xrange = sector)
## End(Not run)
Implementation. R/sketchSky.R. Full function help · Stellar visibility · Sky reconstruction · Sky brightness and visualisation outline · Terrain crossings and event searches · Identifying celestial candidates and limiting declinations · Astronomical conventions and stellar positions · Photographic calibration and interchange · Generating a terrain panorama · Display styles, capture and stepping time · Constellation selection and planisphere geometry · Equinoctial sunrise · The heliacal rising of the Pleiades · Watch the cluster rise later in the season · Exploring celestial candidates · Compare the three sky styles · Compare constellation patterns