VeloxRaster-class: A Reference Class for velox rasters

Description Fields Methods Examples

Description

A Reference Class for velox rasters

Fields

rasterbands

A list of matrices containing the raster data

dim

Raster dimensions

extent

Raster extent

res

Raster resolution

nbands

Number of raster bands

crs

Coordinate reference system (Proj4 string)

Methods

aggregate(factor, aggtype = c("sum", "mean", "min", "max", "median"))

See VeloxRaster_aggregate.

as.matrix(band = 1)

See VeloxRaster_as.matrix.

as.RasterBrick(assign_data_type = FALSE)

See VeloxRaster_as.RasterBrick.

as.RasterLayer(band = 1, assign_data_type = FALSE)

See VeloxRaster_as.RasterLayer.

as.RasterStack(assign_data_type = FALSE)

See VeloxRaster_as.RasterStack.

col2im(mat, wrow, wcol, band, rowframe = 0, colframe = 0, rowstride = 1, colstride = 1)

See VeloxRaster_col2im.

crop(x)

See VeloxRaster_crop.

drop(bands)

See VeloxRaster_drop.

extract(sp, fun = NULL, df = FALSE, small = FALSE, legacy = FALSE)

See VeloxRaster_extract.

extract_points(sp)

See VeloxRaster_extract_points.

getCoordinates()

See VeloxRaster_getCoordinates.

get_data_type()

See VeloxRaster_get_data_type.

im2col(wrow, wcol, band, padval = 0, rowframe = 0, colframe = 0, rowstride = 1, colstride = 1)

See VeloxRaster_im2col.

meanFocal(weights, bands = 1)

See VeloxRaster_meanFocal.

medianFocal(wrow, wcol, bands = 1)

See VeloxRaster_medianFocal.

rasterize(spdf, field, band = 1, background = NULL, small = FALSE)

See VeloxRaster_rasterize.

sumFocal(weights, bands = 1)

See VeloxRaster_sumFocal.

write(path, overwrite = FALSE)

See VeloxRaster_write.

Examples

1
2
3
4
## Make VeloxRaster objects using the 'velox' function
mat <- matrix(1:100, 10, 10)
vx <- velox(mat, extent=c(0,1,0,1), res=c(0.1,0.1), crs="+proj=longlat +datum=WGS84 +no_defs")
class(vx)

velox documentation built on May 2, 2019, 6:01 a.m.