These functions allow for analysis of raster data. Many are written in C++ to be extremely efficient and fast. Some are wrappers around these C++ functions for easier use and integration into other packages.
getDefaultNodata(GDT_name)getOffset(coord, origin, gt_pixel_size)
getGDALformat(file)
basename.NoExt(filepath)
Mode(x, na.rm = FALSE)
Modes(x, na.rm = FALSE)
northness(asp_deg)
eastness(asp_deg)
roughness(x, na.rm = FALSE, asInt = TRUE)
TRI(x, na.rm = FALSE, asInt = TRUE)
TPI(x, na.rm = FALSE, asInt = TRUE)
getPixelValue(
pt,
ds,
ri = NULL,
band = 1,
interpolate = FALSE,
windowsize = 1,
statistic = NULL,
na.rm = TRUE
)
.getPixelValue(pt, rasterfile, ds, ...)
extractPtsFromRaster(
ptdata,
rasterfile,
band = NULL,
var.name = NULL,
interpolate = FALSE,
windowsize = 1,
statistic = NULL,
na.rm = TRUE,
ncores = 1
)
extractPtsFromRasterList(
ptdata,
rasterfiles,
bands = NULL,
var.names = NULL,
interpolate = FALSE,
windowsizes = NULL,
statistics = NULL,
na.rm = TRUE,
ncores = 1
)
rasterInfo(srcfile)
reprojectRaster(
srcfile,
dstfile,
t_srs,
overwrite = TRUE,
s_srs = NULL,
of = NULL,
ot = NULL,
te = NULL,
tr = NULL,
r = NULL,
dstnodata = NULL,
co = NULL,
addOptions = NULL
)
rasterFromVectorExtent(
src,
dstfile,
res,
fmt = NULL,
nbands = 1,
dtName = "Int16",
options = NULL,
init = NULL,
dstnodata = init
)
rasterizePolygons(dsn, layer, burn_value, rasterfile, src = NULL)
clipRaster(
dsn = NULL,
layer = NULL,
src = NULL,
srcfile,
src_band = NULL,
dstfile,
fmt = NULL,
options = NULL,
init = NULL,
dstnodata = NULL,
maskByPolygons = TRUE
)
recodeRaster(srcfile, dstfile, lut, srcband = 1, ...)
pixelCount(rasterfile, band = 1)
focalRaster(
srcfile,
dstfile,
w,
fun = sum,
na.rm = FALSE,
...,
fmt = NULL,
dtName = NULL,
options = NULL,
nodata_value = NULL,
setRasterNodataValue = FALSE,
srcband = NULL
)
zonalStats(
dsn = NULL,
layer = NULL,
src = NULL,
attribute,
rasterfile,
band = 1,
lut = NULL,
pixelfun = NULL,
na.rm = TRUE,
ignoreValue = NULL,
show_progress = FALSE
)
zonalMean(
dsn = NULL,
layer = NULL,
src = NULL,
attribute,
rasterfile,
band = 1,
lut = NULL,
pixelfun = NULL,
na.rm = TRUE,
...
)
zonalFreq(
dsn = NULL,
layer = NULL,
src = NULL,
attribute,
rasterfile,
band = 1,
aggfun = NULL,
lut = NULL,
na.rm = FALSE,
ignoreValue = NULL,
show_progress = FALSE
)
zonalMajority(
dsn = NULL,
layer = NULL,
src = NULL,
attribute,
rasterfile,
band = 1,
lut = NULL,
...
)
zonalMinority(
dsn = NULL,
layer = NULL,
src = NULL,
attribute,
rasterfile,
band = 1,
lut = NULL,
...
)
zonalVariety(
dsn = NULL,
layer = NULL,
src = NULL,
attribute,
rasterfile,
band = 1,
lut = NULL,
...
)
zonalBayes(
dsn = NULL,
layer = NULL,
src = NULL,
zoneidfld,
helperidfld = NULL,
rasterfiles,
prednames,
predfun,
xy = FALSE,
nMCMC = 100
)
getrastlst(
rastnmlst,
rastfolder = NULL,
stopifLonLat = FALSE,
stopifnull = FALSE,
stopifinvalid = FALSE,
gui = FALSE,
quiet = FALSE
)
areacalc.pixel(rastfn, unit = "ACRES", rast.NODATA = NULL, na.rm = TRUE)
aspect_transform(df, asp)
checkrast.longlat(rastfn, dstfile = NULL, nolonglat = TRUE, crs.default = NULL)
getrastlst.rgdal(
rastnmlst,
rastfolder = NULL,
stopifLonLat = FALSE,
stopifnull = FALSE,
stopifinvalid = FALSE,
gui = FALSE,
quiet = FALSE
)
Spatial data object from `sf`. Used for spatial data analyses.
Chris Toney, Tracey S. Frescino
These functions carry out raster data analysis.