D02 · Bearing uncertainty on flat and irregular skylines
We tested coordtrans() at 50° N with a constant 2° skyline and refraction disabled. Bearings had a Gaussian standard deviation of 2° about centres of 90°, 359° and 0°. Independent Gaussian altitude errors had a standard deviation of 0.5°. For each centre, we transformed one million paired draws through the spherical altitude equation and compared the median and both endpoints of the equal-tailed 95% interval with the package density. We used the same seeded draws at each centre.
All 18 quantile comparisons on the level horizon met the 0.02° tolerance. In the extended design, all 11 configurations returned densities on each of five numerical grids. The independent reference used 524,288 scrambled Sobol draws per configuration. The refracted case shares the Swiss altitude correction to isolate the density calculation. The archive includes individual quantiles, CDF distances, modes and 80% highest-density regions.
| Configuration | Largest fine-grid quantile difference from direct propagation |
|---|---|
| Rising eastern slope | 0.00164° |
| Falling eastern slope | 0.00256° |
| Sloping skyline crossing north | 0.00089° |
| Asymmetric ridge | 0.00022° |
| Kunċizzjoni terrain model | 0.00168° |
| Refracted slope | 0.00757° |
| Observer at the geographic pole | 0.00057° |
| Sightline through the celestial pole | 0.00081° |
| Doubled altitude uncertainty | 0.00577° |
| Canrooska survey | 0.00023° |
| Sightline near the celestial pole | 0.00274° |
The largest quantile discrepancy across all 55 combinations was 0.00757°. Transforming a normalised sum of two bearing densities produced area 0.99999947. Its integrated absolute difference from the sum of the individually transformed densities was 0.00145 after normalisation. Download A04 and D02 reproduction material.
Steep skylines and pole crossings
At latitude 45° N, a constructed skyline changed by 31° over 4° of bearing. We propagated nine combinations of centre (0°, 3°, 7°) and measurement family (normal, compact Epanechnikov and asymmetric triangular). We compared the 2.5th, 50th and 97.5th percentiles with direct spherical calculations from 500,000 independent bearing–altitude pairs per combination, using a 0.5° altitude standard deviation. All 36 combinations of input density and requested integration spacing (0.05°, 0.1°, 0.25°, 1°) produced finite densities. The largest absolute discrepancies over the tested quantiles were 0.0282° for normal, 0.0121° for Epanechnikov and 0.0309° for triangular measurements. These differences include Monte Carlo sampling variation.
For positive altitude uncertainties, a four-standard-deviation endpoint at absolute declination 80° or above, or coincident endpoints, selects direct spherical quadrature. It integrates 256 equiprobable normal-altitude strata at each bearing. The bearing spacing is capped at 0.025° for this calculation and for profiles locally steeper than one degree of height per degree of bearing. At a 2.02° bearing, where the two endpoint declinations differ by only 0.00357°, internal calculations retain full precision. The exact-pole regression independently checks both ends of the resulting 95% interval. The separate S02 calibration tests the statistical consequences under matched null models. Scripts, inputs and quantiles.
Function entries
az2dec(), coordtrans(), hor2alt(), az.pdf(), dec.pdf(), spd(), hpdi().