matrix_to_brick: matrix_to_brick

Description Usage Arguments Value Examples

View source: R/load_and_reshape.R

Description

Convert an SAR_matrix object m, such as that output by load_SAR_matrix, into a raster brick with the geospatial and dimension attributes stored in m.

Usage

1

Arguments

m

An SAR_matrix object, such as that output by load_SAR_matrix.

Value

A raster brick.

Examples

1
2
3
4
5
6
filename <- system.file(
  "extdata", "MG_CC_sub_norm_testclip.tif", package="rsar")
m <- load_SAR_matrix(filename)
head(m)
matrix_to_brick(m)
raster::plot(m)

frycast/rsar documentation built on Sept. 4, 2020, 3:52 a.m.