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

Description Usage Arguments See Also Examples

View source: R/horizon.R

Description

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

Usage

1
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

1
2
3
4
5
# 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)

skyscapeR documentation built on Oct. 30, 2021, 1:06 a.m.