Description Usage Arguments Value
This function is just a wrapper around ray_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 | shade_global_date_time(
surface_raster,
date = as.character(Sys.Date()),
time = "noon",
tzone = "UTC",
search_distance = 200,
z_value = 1,
verbose = FALSE
)
shade_global_sun_position(
surface_raster,
sun_elevation = 45,
sun_azimuth = 180,
search_distance = 200,
z_value = 1,
verbose = FALSE
)
|
surface_raster |
Object of class RasterLayer. |
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 |
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. Default value is |
sun_azimuth |
Numeric value that specifies azimuth from which the sun is shining on the
surface. Value has to be from the range 0 - 360. Default value is |
Object of class Raster.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.