Description Usage Arguments Value
This function is just a wrapper around ambient_shade that supports directly using Raster in the function. The function also tries to set "reasonable" default values for parameters.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | shade_ambient_date_time(
surface_raster,
date = as.character(Sys.Date()),
time = "noon",
tzone = "UTC",
rays_number = 36,
search_distance = 200,
z_value = 1,
verbose = FALSE
)
shade_ambient_sun_position(
surface_raster,
sun_elevation = 45,
rays_number = 36,
search_distance = 200,
z_value = 1,
verbose = FALSE
)
|
surface_raster |
Object of class Raster. |
date |
Date specified as |
time |
Either character representation of time (in format |
tzone |
a character string that specifies which time zone to parse the date with.
The string must be a time zone that is recognized by the user's OS. If no time zone is given the default
value |
rays_number |
Number of rays that are calculated around each pixel. Default value is 36, which means that one ray per 10 degrees of orientation. |
search_distance |
Distance in which sun blocking objects are searched for, specified in map
units. Default value is |
z_value |
numeric value indicating the scale between xy and z. Typical use is if the distance
is measured in meters and elevation in foots, in such case the z value needs to be recalculated
to meters. Default value is |
verbose |
Should informative message be printed? Default |
sun_elevation |
Numeric value, from range 0 - 90, with 0 being sun elevation directly on horizon while 90 means that sun is directly above the surface. |
Object of class Raster.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.