vapour_read_raster_block {vapour} | R Documentation |
Read or write raster block
Description
Read a 'block' from raster.
Usage
vapour_read_raster_block(
dsource,
offset,
dimension,
band = 1L,
band_output_type = "",
unscale = TRUE,
nara = FALSE
)
Arguments
dsource |
file name to read from, or write to |
offset |
position x,y to start writing (0-based, y-top) |
dimension |
window size to read from, or write to |
band |
which band to read (1-based) |
band_output_type |
numeric type of band to apply (else the native type if ”) can be one of 'Byte', 'Int32', or 'Float64' |
unscale |
default is |
nara |
if 'TRUE' return in nativeRaster format |
Value
a list with a vector of data from the band read
Examples
f <- system.file("extdata", "sst.tif", package = "vapour")
v <- vapour_read_raster_block(f, c(0L, 0L), dimension = c(2L, 3L), band = 1L)
[Package vapour version 0.10.0 Index]