createHor: Create _skyscapeR.horizon_ object from Az/Alt data

View source: R/horizon.R

createHorR Documentation

Create skyscapeR.horizon object from Az/Alt data

Description

This function creates a skyscapeR.horizon object from measurements of azimuth and altitude.

Usage

createHor(az, alt, alt.unc = 0.5, loc, name = "", smooth = F, .scale = 1000)

Arguments

az

Array of azimuth values

alt

Array of altitude values.

alt.unc

(Optional) Either a single value or an array of altitude uncertainty.

loc

Location, a vector containing the latitude, longitude and elevation of the location, in this order.

name

Name of site.

smooth

Boolean to control whether to smooth horizon profile using rolling mean. Defaults to FALSE

.scale

Rolling mean window for smoothing. See createHWT

See Also

plot.skyscapeR.horizon

createHWT, downloadHWT

Examples

# Create a skyscapeR.horizon from 5 measurements:
az <- c(0,90,180,270,360)
alt <- c(0,5,5,0,0)
hor <- createHor(az, alt, 0.1, c(40.1,-8), 'Test')
plot(hor)

f-silva-archaeo/skyscapeR documentation built on Sept. 24, 2023, 8:14 p.m.