iso2raster: Convert isopleths to raster

Description Usage Arguments Details

View source: R/iso2raster.R

Description

Converts isopleths in a SpatialPolygonsDataFrame object to a RasterLayer

Usage

1
2
3
iso2raster(polys, raster = NULL, ext = NULL, dimSize = 100,
  cell.size = NULL, sf.cell.size = 2, ll.round = TRUE, status = TRUE,
  debug = FALSE)

Arguments

polys

A SpatialPolygonsDataFrame containing isopleths sorted by isopleth level (smallest to largest)

raster

A RasterStack object to be used to set the extent and resolution for the output raster.

ext

An extent object or NULL. Ignored if raster is passed.

dimSize

Numeric value used as the number of cells along the largest dimension of the data is numeric. Ignored if raster is passed.

cell.size

. Ignored if raster is passed.

sf.cell.size

. Ignored if raster is passed.

ll.round

Anchor the lower left coordinate of the raster extent to a multiple of the cell size. Ignored if raster is passed.

status

Show status messages and progress bar

debug

Show debugging info

Details

This presumes the SPDF contains isopleths ordered from lowest level to highest. The cell values of the resulting raster will sum up to the largest isopleth leve. In order for the resulting raster to sum to 1, the 100


tlocoh.dev documentation built on May 2, 2019, 5:20 p.m.