create_raster: Create RasterLayer object from 'bfastSpatial()' output

Description Usage Arguments Value Examples

View source: R/create_raster.R

Description

This function formats tabular data into a RasterLayer.

Usage

1
create_raster(cell, variable, data, template, no_data = NA)

Arguments

cell

A character with the name of the field in data containing the cell numbers.

variable

A character with the name of the field in data containing the variable to be set as the pixel values in the raster.

data

The data frame containing cell and variable.

template

A Raster object with the same extent, resolution, and projection as the raster dataset used to generate data. Alternatively, the path to an XML file generated by create_raster_metadata.

no_data

A numeric value to fill in the rest of the returned RasterLayer object where no value is specified. The default is NA.

Value

A RasterLayer object containing the specified pixel values.

Examples

1
2
3
4
## Not run: 
create_raster(no_cell, total_breaks, bfast_data_frame, template)

## End(Not run)

jnghiem/bfasttools documentation built on Nov. 4, 2019, 3:02 p.m.