extend_raster: Extend Raster

Description Usage Arguments Examples

View source: R/extend_raster.R

Description

extend_raster will extend a Raster* object by identifying each point which is NA based on a set of provided co-ordinates. It will then find the nearest non-NA cell and extend the raster so that no observation records sit on NA pixels. This function is best employed on islands where species' observation records may not overlap with an underlying climate layer (e.g. due to resolution differences).

Usage

1
2
extend_raster(xy, raster, only.na = TRUE, output.table = FALSE,
  fact = 1)

Arguments

xy

xy coordinates specifying cell centroids. Ensure that column headings are lower case and labelled as longitude/latitude or lat/long or xy.

raster

Raster which will be extended

only.na

Logical. If TRUE, the function will only calculate new values for NA cells. When TRUE, processing time is greatly reduced.

output.table

Logical. If output.table=TRUE then a data.frame will be displayed instead of a raster. If output.table=FALSE then an extended raster will be displayed. Default is output.table=FALSE

fact

Integer. This argument disaggregates raster* (i.e. increases the reshighres.split<-split.raster(raster=global_climate[[1]], ppside = 10, save = TRUE, plot=FALSE, raster.name="highres_split_")

Examples

1
Coming soon.

simon-tarr/island documentation built on May 6, 2019, 8:05 p.m.