riseset()
Scientific results for this function.
H07 verified that a partial panorama is rejected before searching for solar or stellar crossings on an unobserved skyline. H07 results.
A04 recovered the expected crossing counts and order on synthetic ridges, notches and grazing tracks; solar and lunar centre crossings at the Malta test site agreed with JPL Horizons within 0.85 seconds and 0.0041 degrees. A04 results.
A02 validation. A02 tested sensitivity to ephemeris conventions using a separate solver on airless lunar-centre trajectories. Across 177 prehistoric skyline crossings, default azimuths differed from JPL Horizons by a median of 0.059 degrees and a maximum of 0.322 degrees. Matching delta T reduced the maximum to 0.027 degrees. Lunar crossing results.
The event is a crossing of the local horizon by the body's centre. A raised ridge can delay the first visible rise and an uneven horizon can give several appearances or disappearances. Choose the horizon model, atmosphere, calendar and time convention to match the observation.
Events refer to the centre of the disc. For a Solar System body with a coordinate vector, alt is one constant horizon altitude and the Swiss Ephemeris rise/set solver is used. For stars, the daily track is evaluated against the supplied constant altitude or site skyline. With a horizon object, its profile is linearly interpolated in azimuth and compared with the body's topocentric altitude; do not supply alt as well. Refraction TRUE uses apparent altitude; FALSE uses geometric altitude. The constant-altitude solver likewise disables refraction only when FALSE. For a profile, search the 48 hours after each requested local midnight and return the first upward and first downward crossing separately. They need not enclose one continuous visibility interval or occur on the requested day. Missing crossings return NA fields. A one-minute base grid, quarter-step samples, azimuth turning points and recursively subdivided rapid azimuth motion bracket visits to the profile's corners. Each smooth segment is also searched for an interior altitude extremum, so short emergence/reoccultation pairs need not straddle time samples. A pure tangency without a sign change is not a rise or set. Horizon altitudes at 0 and 360 degrees must agree. Root tolerance is 0.01 seconds; interior optimization uses relative seconds to avoid precision loss from large Julian dates. These settings are not a physical accuracy guarantee: finite precision, unresolved terrain and near-zenith azimuth singularities limit numerical completeness. The dec argument controls returned declination, not the topocentric event search.
Method references
Astrodienst. Swiss Ephemeris programmer's manual. https://www.astro.com/swisseph/swephprg.htm.
Interpretation and limits. An event time is conditional on the chosen event definition and clock. A centre crossing of terrain differs from first visibility of a limb; a recurring solar declination can admit more than one date.
Implementation arguments, return value and documented modes
| Argument | Formal default | Behaviour in this interface |
|---|---|---|
loc |
— | Location, either a skyscapeR.horizon or a vector containing the latitude, longitude and elevation of location, in this order. |
date |
— | Either a string containing the date in the format "YYYY/MM/DD" (see |
jd |
— | A numeric containing the julian date (see |
obj |
"sun" |
Solar System body, Western star name or fixed-star catalogue identifier (including M 45). Defaults to 'sun'. |
alt |
0 |
The altitude of the horizon to consider. Defaults to zero degrees. |
timezone |
— | Timezone for civil timestamps. Use UTC or a fixed offset for dates before 1900. See |
calendar |
— | Calendar for civil dates. Use |
dec |
— | Output declination: geo for the geocentric, or topo for the topocentric frame of reference. If not given the value set by |
refraction |
— | Logical. Apply atmospheric refraction. Defaults to the session setting in |
atm |
— | Atmospheric pressure in mbar. Defaults to the session setting in |
temp |
— | Air temperature in degrees Celsius. Defaults to the session setting in |
verbose |
TRUE |
Logical. Display progress or informational messages. Default |
Return value
A list containing object, rise and set; rise/set are data frames with date, time, azimuth and declination columns. Missing events have NA fields.
Crossing is not first visibility
The result supplies geometry and time. It applies neither atmospheric extinction
nor a twilight detection threshold and does not test whether the star can be
seen. A centre exactly at the skyline can remain obscured in a plot or too faint
to detect. Use star.phases to select a candidate season, then
inspect moments after the crossing with sketchSky and
skyStep. The extra time needed for clearance depends on track
slope, latitude and terrain; a universal minute offset is inappropriate.
A numerical root tolerance describes the solver, not observational timing accuracy. Uncertain terrain height, refraction and ancient Earth-rotation models can dominate it. Saved output contains formatted civil times rather than a complete record of the input atmosphere and horizon. Preserve the original call and convert date/time back with matching calendar and timezone.
Implementation. R/mechanics.R. Full function help · Stellar visibility · Ephemeris · Solar, lunar and planetary events outline · Terrain crossings and event searches · Equinoctial full Moons and crescent crossovers · Identifying celestial candidates and limiting declinations · Astronomical conventions and stellar positions · Equinoctial sunrise · The heliacal rising of the Pleiades · Watch the cluster rise later in the season · Exploring celestial candidates · Partial profile coverage