Astronomical conventions and stellar positions
Implementation. skyscapeR, R/dates.R, R/mechanics.R, R/stars.R, R/ephemeris.R and R/misc.R. To reproduce a position, specify the instant, the origin of the coordinate frame, the axes and the observer. A calendar agreement does not guarantee that two programs return the same coordinate. This chapter follows those choices from a dated record to a local sightline. The ephemeris chapter covers file selection and the supplier’s accuracy claim.
See the independent checks for results and limitations.
From a year label to an instant
astroYear() and BC.AD() translate between historical labels and astronomical year numbers. Astronomical year 0 is 1 BCE, −1 is 2 BCE and −3499 is 3500 BCE. This conversion addresses the year numbering only. The Gregorian and Julian calendars in time2jd() are proleptic: the analyst selects a rule for the whole calculation, without an automatic reform date. A Julian day number can represent an instant specified in either calendar.
With a fixed civil offset hours east of UTC, the conversion is . The input is checked for a valid calendar date; a date alone starts at local midnight. A Julian day rolls over at noon. In the reverse direction, jd2time() rounds to the nearest second, applies the offset at that rounded instant and handles day rollover. The output string does not retain its offset. Keep the numeric JD, calendar and timezone with a published result.
| Step in the worked conversion | Result |
|---|---|
| Input label | 3500 BCE, 21 June, 01:00:00, Julian calendar, fixed UTC+02:00 |
| UT Julian date | 443219.4583333 |
| Same instant, UT and proleptic Julian calendar | Astronomical year −3499, 20 June, 23:00:00 |
| Same instant, UT and proleptic Gregorian calendar | Astronomical year −3499, 23 May, 23:00:00 |
j <- time2jd("3500 BCE/06/21 01:00:00", timezone = "UTC+02:00", calendar = "J")
jd2time(j, "UTC", "J")
jd2time(j, "UTC", "G")The +02:00 offset is a declared convention for this example. Longitude alone does not assign an ancient civil timezone. Current code accepts fixed offsets between −14 and +14 hours; UTC, GMT and an empty string all mean zero. Named zones use the installed IANA rules for the Gregorian date and are supported for 1900–9999. Ambiguous or nonexistent local times at a clock transition are rejected. Two distinct JDs can format to the same repeated wall time, so reversing a zone-free output string may be ambiguous (Internet Assigned Numbers Authority, n.d.). The helpers do not apply leap-second, UT1 or TT corrections. Earth-rotation uncertainty and the dynamical ephemeris enter downstream (Espenak, n.d.; Astrodienst, n.d.).
timestring() formats components and defaults an omitted time to noon; a date passed alone to time2jd() defaults to midnight. long.date() formats a month/day label without resolving its year. ten() converts angular fields to decimal degrees, with a sign applied to the entire angle. These helpers address representation; none resolves an unknown epoch, timezone or angular reference.
Origin, axes and apparent altitude
body.position() accepts numeric UT Julian dates or civil timestamps. Without a site it forces geocentric equatorial output. With a site it can calculate topocentric coordinates, applying the observer’s longitude, latitude and elevation before the horizontal conversion. In this build the geocentric branch requests equatorial Swiss coordinates, while the topocentric branch also requests the true-position flag; a numerical difference between those outputs therefore need not be pure parallax. Right ascension and declination are returned in degrees. Azimuth increases clockwise from true north, with altitude above the local astronomical horizontal. A horizon object contributes its georeference, not a terrain clearance test (Astrodienst, n.d.).
The Moon makes the distinction measurable. At 06:30 UTC on 20 March 2026, at 51° N, 0° longitude and 100 m elevation, the following three calls refer to one instant:
| Requested output | RA | Declination | Bearing | Altitude |
|---|---|---|---|---|
| Geocentric, no site | 13.13455° | 9.02629° | — | — |
| Topocentric, geometric altitude | 13.75936° | 8.25669° | 78.26270° | 1.15128° |
| Topocentric, refraction enabled (1013.25 mbar, 15 °C) | 13.75936° | 8.25669° | 78.26270° | 1.49413° |
The two site calls differ by about 0.343° in horizontal altitude. Whether the Moon clears a ridge at 78.26° still depends on the site’s measured or modelled skyline. When comparing software, match the origin, date, frame, parallax, refraction and positional corrections before interpreting a residual as an ephemeris error. A printed equality in RA and declination in this example should not be used to infer a choice of horizontal altitude.
Catalogue positions across epochs
star() resolves a Western name through star.names or accepts a catalogue identifier. It evaluates Swiss fixed-star coordinates at noon UT on Gregorian 1 January of each requested astronomical year. In this build the explicit flag combination requests the file-backed Swiss backend, equatorial axes, barycentric origin and true positions. The calculation checks the returned backend; the fixed catalogue magnitude is read separately. Use the identifier, epochs, catalogue revision and ephemeris files when reproducing a result (Astrodienst, n.d.).
For Aldebaran (α Tau), the 3500 BCE annual position was RA 356.67231°, declination −7.85151°; a century later it was 357.91715°, −7.29134°. The target-screening chapter shows the consequences for a narrow declination band. These are annual catalogue positions. For a rise time or the appearance of the star on a particular morning, use the appropriate local event and visibility calculations. A star object prepared for one year must be recomputed for another when the receiving function uses the supplied coordinates as given.
obliquity() supplies an annual true-obliquity reference; parallax.corr() supplies the approximate latitude- and altitude-dependent correction used by the limiting declination helpers. Neither substitutes for an instantaneous topocentric ephemeris of the Moon. Record skyscapeR.vars() settings along with the calls: the same script can otherwise inherit a different atmosphere, timezone, calendar or frame. A02 compares planetary and lunar positions against JPL. Stellar propagation and reference frames are the subject of the planned A03 check.
Reproduce the time, frame and stellar calculations.
For astronomy results carrying a provenance attribute, inspect attr(result, "provenance")$packages. It records skyscapeR and swephR namespace versions. It does not identify the fixed-star catalogue, ephemeris files, development commit or session settings. Save these alongside the original result before subsetting.
Related function entries
BC.AD(), astroYear(), time2jd(), jd2time(), timestring(), ten(), long.date(), skyscapeR.vars(), body.position(), riseset(), sketchSky(), star(), obliquity(), parallax.corr(), findTargets(), star.phases().