Description Usage Arguments Details Value
Exports kml of a raster with time properties
1 2 | ExportKMLRasterOverlayWithTime(raster, time, color_pal, alpha,
maxpixels, blur, colNA, outfile, output_dir)
|
raster |
a Raster* object |
time |
Interval* object, default = NULL |
color_pal |
color palette, can be a color ramp (e.g., c("white", "red") or a specific palette (e.g., "SAGA_pal[[1]]") |
alpha |
numeric (0-1), transparency level of the kml. Default is 1. |
method |
method used to compute values for the new RasterLayer. Either 'ngb' (nearest neighbor), which is useful for categorical variables, or 'bilinear' (bilinear interpolation; the default value), which is appropriate for continuous variables. |
overwrite |
logical, whether or not to overwrite result file. Default is TRUE. |
maxpixels |
maximum number of pixels. If ncell(raster) > maxpixels, sample is used to reduce the number of pixels. |
blur |
integer (default=10). Higher values help avoid blurring of isolated pixels (at the expense of a png file that is blur^2 times larger) |
colNA |
color to use for the background (default is transparent) |
outfile |
name of KML, default is to use name of raster |
output_dir |
output folder location, default is getwd() |
zip |
logical, whether or not to convert .kml to .kmz |
Modified from functions in the 'kml' and 'raster' packages
KML of a Raster
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.