mask_hs {rcaiman} | R Documentation |
Mask hemisphere
Description
Given a zenith or azimuth image and angle restrictions, this function produces a mask.
Usage
mask_hs(r, from, to)
Arguments
r |
SpatRaster built with |
from , to |
angle in degrees, inclusive limits. |
Value
An object of class SpatRaster with values 0
and
1
.
See Also
Other Segmentation Functions:
chessboard()
,
mask_sunlit_canopy()
,
polar_qtree()
,
qtree()
,
rings_segmentation()
,
sectors_segmentation()
,
sky_grid_segmentation()
Examples
## Not run:
z <- zenith_image(1000, lens())
a <- azimuth_image(z)
m1 <- mask_hs(z, 20, 70)
plot(m1)
m2 <- mask_hs(a, 330,360)
plot(m2)
plot(m1 & m2)
plot(m1 | m2)
# 15 degrees at each side of 0
m1 <- mask_hs(a, 0, 15)
m2 <- mask_hs(a, 345, 360)
plot(m1 | m2)
# better use this
plot(!is.na(z))
# instead of this
plot(mask_hs(z, 0, 90))
## End(Not run)
[Package rcaiman version 1.2.2 Index]