Find celestial targets within declination and time ranges

Description

Screen solar, lunar and stellar candidates whose declinations overlap a measured orientation range during a proposed period of use.

Usage

findTargets(
  decrange,
  year,
  loc = FALSE,
  max.mag = 2.5,
  dates = FALSE,
  calendar = skyscapeR.env$calendar,
  timerange
)

Arguments

decrange

Range of declination to consider.

year

Temporal range to consider. Historical labels such as "3700 BC" are accepted by astroYear.

loc

FALSE for geocentric declinations, a vector of latitude, longitude and elevation, or a skyscapeR.horizon to also evaluate the local horizon.

max.mag

Maximum magnitude of stars to consider. Defaults to 2.5

dates

Whether to display time period when identified celestial targets occur within declination range. Default is FALSE.

calendar

Calendar for civil dates. Use "G" for Gregorian or "J" for Julian.

timerange

Earlier argument name for year, retained for existing scripts.

Details

The search tests overlap in declination. Solar and lunar limiting declinations are sampled across the years of the interval. Site coordinates enable zenith targets and a horizon enables the spatial equinox. The named equinoxes and solstices use geocentric apparent solar longitudes of 0, 90, 180 and 270 degrees. Dates are UT civil days in the requested calendar. Different dates for the first and last year appear in endpoint order separated by a slash. Intermediate years can differ. The sunrise/set date ranges also use the two endpoint years. Solar and lunar candidates are selected before display rounding. Zenith candidates use the period-specific tropical limit and require a reachable solar passage. For spatial equinoxes the reported range uses rising and setting solutions at the endpoint epochs, not an annual interior search. For each star passing the catalogue magnitude cut, the search computes its declination at noon UT on 1 January Gregorian of every astronomical year, including both endpoints. It tests overlap before rounding and linearly interpolates between annual samples to estimate entry and exit. Separate passages are reported separately, with boundaries rounded to the nearest year. A contact within 0.0000001 degree of a stellar band edge is treated as a closed-boundary match. Shorter variations within a sampling year are unresolved. Magnitude describes catalogue brightness and does not model atmospheric visibility.

Silva and Lomsdalen (2025, table 5) give an example of stellar target screening for the Maltese temples.

Astronomical positions require Swiss Ephemeris files covering the epoch. We recommend installing swephRdata; see skyscapeR-package for setup.

Value

A list of candidate solar, lunar and stellar matches. The tables give target names and declination limits in degrees. Stellar matches also carry catalogue identifiers and visual magnitudes. Set dates to TRUE to request stellar date ranges. A category with no matches may be absent.

Validation

A08 verified closed-band membership, separate stellar passages, sampled contact, magnitude filtering and comparisons before display rounding. See the A08 check in the technical manual.

Candidate selection and visibility

A match is a declination overlap, not evidence that a celestial object was visible, deliberately observed or associated with the archaeological feature. The magnitude filter uses fixed catalogue values; it includes integrated magnitudes for non-stellar entries such as M45. It does not predict naked-eye visibility through extinction or twilight, or resolve the members of a cluster.

Choose the dating interval and measurement uncertainty from the archaeological and survey evidence. Then examine candidate stars with star.phases, riseset and sketchSky. For a statistically selected local declination band, candidate screening is exploratory; the significance of that band does not identify its cause. Physical plausibility and independent archaeological evidence are separate parts of the interpretation.

Spatial equinox epochs

When a horizon is supplied, the spatial equinox is evaluated at both endpoints of the requested year range (once for a single year), with the current atmospheric settings. The candidate interval spans the finite sunrise and sunset declinations at those endpoints. This is an endpoint envelope, not an exhaustive search for intermediate changes of terrain crossing over very long periods. Undefined crossings generate warnings; if all are undefined, the candidate is omitted.

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.

Scientific checks

References

Silva, F. and Lomsdalen, T. (2025). 'No easy way from the earth to the stars': a new statistical approach to the orientation of the Maltese temples. Archaeological and Anthropological Sciences 17, 96. doi:10.1007/s12520-025-02208-4.

See Also

star.phases, riseset, sketchSky, spatial.equinox, solar.date, EFM, planet.extremes

Examples

if (requireNamespace("swephRdata", quietly = TRUE)) {
  ## Not run: 
  findTargets(c(-25,-17.5), c(-2500,-1750))
  
  # if a location is given then the zenith and anti-zenith sun will also be looked at:
  findTargets(c(3,12), c(-2500,-1750), loc=c(8.6, 7.3, 200))
  
  # if a horizon profile is given then the spatial equinox will also be looked at:
  hor <- malta_horizons[[1]]
  findTargets(c(-7,2), c(-2500,-1750), loc=hor)
  
## End(Not run)
}