Estimate the altitude of the local horizon, and optionally its uncertainty, at one or more true bearings.
hor2alt(hor, az, return.unc = F)
hor |
A skyscapeR.horizon object from which to retrieve horizon altitude. |
az |
Array of azimuth(s) for which to retrieve horizon altitude(s). |
return.unc |
Logical controlling whether to return altitude uncertainty. Default is FALSE. |
A measured axis rarely falls exactly on a stored horizon sample. Separate cubic splines interpolate altitude and its recorded uncertainty as functions of azimuth, and results are rounded to two decimal places. Supply bearings within the profile coverage; a spline beyond the measured range is an extrapolation. Distinguish this lookup from the linear interpolation used inside coordtrans.
With return.unc = FALSE, a numeric vector of altitudes.
With return.unc = TRUE and one azimuth, an unnamed numeric vector
containing altitude followed by uncertainty. With multiple azimuths, a
numeric matrix with columns alt and alt.unc, one row per
input azimuth in the supplied order. Values are rounded to two decimal places.
In H07, lookup at each edge of a north-crossing panorama returned its measured altitude and lookup beyond either edge returned NA. See the H07 check in the technical manual.
At 334 surveyed bearings, the median absolute skyline error was 0.036 degrees and 91.9 percent of predictions were within half a degree. H01 study.
On a level surface with 5 m radial sampling, geometric and effective-radius horizon dips agreed with the analytic values to within 0.000000009 degrees. H03 study.
At eight withheld landmarks in a tilted synthetic panorama, both bearing and skyline altitude were recovered to within one image pixel. H05 study.
A partial photographic horizon returned missing altitudes outside its sector. Full-sky event searches rejected it and accepted the complete profile. H07 study.
The zero-declination track crossed a level skyline at 90 and 270 degrees at 50 degrees north. The study also checks irregular skylines and JPL crossings. A04 study.
All 18 flat-horizon quantile comparisons met the 0.02-degree tolerance. Additional fixtures quantify errors on steep skylines and near a celestial pole. D02 study.
The field-to-sky replay recovered the Gacrux position between the Skorba West entrance edges, 2.41 degrees above the measured skyline at the illustrated instant. W02 study.
createHor, downloadHWT
hor <- createHor(c(0,90,180,270,360), c(0,5,3,1,0),
alt.unc=c(0.1,0.2,0.3,0.2,0.1), loc=c(40,-8,100))
hor2alt(hor, 90)
hor2alt(hor, 90, return.unc=TRUE)
hor2alt(hor, c(90,180,270), return.unc=TRUE)