acc_ras2fric: acc_ras2fric

Description Usage Arguments Examples

View source: R/acc_ras2fric.R

Description

This function converts raster data into a raster layer containing travel speeds that can be used to create a friction map.

Usage

1
2
3
4
5
6
7
8
  acc_ras2fric(
  my_input,
  my_baselayer,
  resampling_method="max",
  my_reclass_inputvalues = NULL,
  my_reclass_outputvalues = NULL,
  my_datatype = "UInt16"
  )

Arguments

my_input

An input layer for the conversion. Should be of type raster(raster)

my_baselayer

A baselayer that defines resolution, extent and projection system of the friction map. Should be of class raster(raster). Most commonly a layer containing land-use values. Can be the same layer as the input layer

resampling_method

Defines the method used to resample the raster values into lower resolutions. Defaults to maximum. Other options contain ("near"|"bilinear"|"cubic"|"cubicspline"|"lanczos"|"average"|"mode"|"max"|"min"|"med"|"q1"|"q3", see GDAL documentation for more information.

my_reclass_inputvalues

A vector with all unique values from the input raster that should be reclassified into travel speeds

my_reclass_outputvalues

A vector with all travelspeeds for reclassification. Should be of the same length and in the corresponding order to reclassify values in my_reclass_inputvalues

my_datatype

GeoTiff datatype for temporary storage of data. Defaults to UInt16 storing integer values. For details see GDAL documentation.

Examples

1

mapme-initiative/mapme.accessibility documentation built on March 3, 2021, 12:33 a.m.