hor2alt()

Scientific results for this function.

Intervals estimated from other observing groups covered 91.0 and 88.8 percent of bearings in two terrain-radius selections. H01 validation study.

Thin-wall and partial-occlusion fixtures distinguish numerical altitude error from the visible width in a panorama. H04 validation study.

In H07, lookup at each edge of a north-crossing panorama returned its measured altitude and lookup beyond either edge returned NA. H07 results.

Function index

For a horizon constructed from measurements or a DEM, cubic splines interpolate altitude and recorded uncertainty at the requested azimuth. For an imported photograph the function wraps bearings relative to the coverage origin, linearly interpolates its skyline and returns missing values outside its observed sector. Values are rounded to two decimal places. One bearing with uncertainty returns a numeric pair; multiple bearings with uncertainty return a matrix. Keep these routes distinct from the interpolation inside coordtrans().

Interpretation and limits. The returned extremum or altitude depends on the supplied skyline and the bearings searched. A sharp local notch can be missed between measurements; a wider numerical search cannot recover terrain absent from the profile.

Implementation arguments, return value and documented modes
Argument Formal default Behaviour in this interface
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 F

Logical controlling whether to return altitude uncertainty. Default is FALSE.

Return value

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.

Implementation. R/horizon.R. Full function help · Terrain horizons · Terrain horizons and panoramas outline · Reducing field observations · Photographic calibration and interchange · Bearing lookup and export layouts · Importing site horizons · Partial profile coverage