coordtrans()

Scientific results for this function.

Direct spherical propagation was checked on steep skylines, including a sightline through the celestial pole. D02 validation study.

The transformed-bearing null was tested with steep skylines, three measurement families and shared or site-specific candidate weights. S02 validation study.

When a null predicts bearings and the analysis compares declinations, the third modelTest route applies this transformation separately to every observed and simulated measurement.

For a partial photograph the stored positive bearing density must lie within its photographed sector. H07 verified agreement with a complete skyline on the covered north-crossing cases and rejection of uncovered densities. H07 results.

The integration uses the full bearing density from any of the six measurement families. Measurement families.

Function index

A sightline has a distribution of possible bearings, and each bearing samples a potentially different part of the horizon. For every sampled bearing the function interpolates horizon altitude and uncertainty, maps an altitude range to declination and approximates the conditional declination distribution by a Gaussian. It weights that distribution by the azimuth density and integrates the product by the trapezoidal rule. For positive altitude uncertainties, near-pole cases use direct quadrature over the spherical transformation. Internal calculations retain full precision. A shared horizon can serve several observations, or a supplied list can represent their individual sites.

Density values are calculated at declination spacing .res, then linearly interpolated onto a grid with spacing .output.res. The upper calculation bound is evaluated explicitly if the step does not land on it, avoiding extrapolation at the tail. Linear interpolation preserves nonnegative calculated densities and avoids cubic-spline overshoot. Individual PDF outputs retain their existing area normalisation; SPD outputs retain their existing unnormalised transformation behaviour. Coarse calculation spacing can still miss narrow peaks; interpolation does not replace a resolution-convergence check. Azimuth integration uses a separate grid from -90 to 450 degrees with step .prec. For a distribution split across north, integration uses contiguous bearings around zero at the same spacing. The output grid starts at the lower bound and ends at the last full step within the upper bound. Refine the calculation grid to check that narrow features are resolved. Set atmospheric refraction, pressure and temperature with skyscapeR.vars before transforming. The values used are recorded in the returned PDF or SPD. All three spacings are stored in metadata$param.

Method references

Silva, F (2020) A probabilistic framework and significance test for the analysis of structural orientations in skyscape archaeology Journal of Archaeological Science 118, 105138. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.jas.2020.105138")}

Interpretation and limits. A transformed density inherits the latitude and skyline for its own bearing. Replacing it with a symmetric curve can erase an asymmetric or multimodal distribution created by the terrain.

Implementation arguments, return value and documented modes
Argument Formal default Behaviour in this interface
pdf —

A skyscapeR.pdf object created with az.pdf or a skyscapeR.spd object created with spd

hor —

A shared skyscapeR.horizon or, for individual azimuth PDFs, a list of horizons in measurement order.

xrange —

Array of values (min and max) for SPD when transforming a skyscapeR.spd object.

.res 0.1

Spacing of the declination calculation grid, in degrees. Default 0.1.

.prec 0.1

Azimuth integration spacing, in degrees. Default 0.1. Smaller values increase integration work. Must not exceed 540.

.output.res 0.01

Spacing of the returned declination grid, in degrees. Default 0.01. Coarser spacing reduces output size. All spacings must be positive finite scalars, and the returned grid must contain at least two points.

verbose TRUE

Logical. Display progress or informational messages. Default TRUE.

Return value

A skyscapeR.pdf object for PDF input, or a skyscapeR.spd object for SPD input. Both contain metadata and data. PDF data are a list of data frames with declination x and density y; SPD data are a single such data frame. Metadata include the coordinate type, transformation settings, format version and descriptive source labels.

Implementation. R/statistics.R. Full function help · Significance tests · Uncertainty and orientation distributions outline · From a measured orientation to a declination distribution · Bearing lookup and export layouts · Give each opening a distribution · Partial profile coverage