createHor {skyscapeR} | R 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 |
See Also
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)
[Package skyscapeR version 1.0.0 Index]