arcgisbinding (version 1.0.1.229)

arc.raster: Create arc.raster object

Description

Create arc.raster object

Usage

arc.raster(object, bands, ...)

# S4 method for arc.datasetraster arc.raster(object, bands, ...)

# S4 method for `NULL` arc.raster(object, path, dim, nrow, ncol, nband, extent, origin_x, origin_y, cellsize_x, cellsize_y, pixel_type, nodata, sr, ...)

Arguments

bands

integer vector of bands (default: all bands).

...

optional additional arguments such as nrow, ncol, extent, pixel_type, resample_type to be passed to the method.

Value

arc.raster returns a raster object (type of arc.raster-class).

Examples

Run this code
# NOT RUN {
## create and resample raster
r.file <- system.file("pictures", "cea.tif", package="rgdal")
r <- arc.raster(arc.open(r.file), nrow=200, ncol=200, resample_type="CubicConvolution")
r
stopifnot(r$nrow == 200)

# }

Run the code above in your browser using DataLab