Learn R Programming

sits (version 0.13.0)

.raster_read_rast: Raster package internal read raster file function

Description

Raster package internal read raster file function

Raster package internal write raster file function

Usage

.raster_read_rast(file, block = NULL, ...)

.raster_write_rast( r_obj, file, format, data_type, gdal_options, overwrite, ... )

Arguments

file

file path to save raster file

block

numeric vector with names "col", "ncols", "row", "nrows".

...

additional parameters to be passed to raster package

r_obj

raster package object to be written

format

GDAL file format string (e.g. GTiff)

data_type

sits internal raster data type. One of "INT1U", "INT2U", "INT2S", "INT4U", "INT4S", "FLT4S", "FLT8S".

gdal_options

GDAL creation option string (e.g. COMPRESS=LZW)

overwrite

logical indicating if file can be overwritten

Value

numeric matrix

numeric matrix