port_weights | R Documentation |
Creates spatial port establishment likelihood raster as a function of port container volumes and distance from port.
port_weights(template_raster, port_data, beta, outfile, return_rast = FALSE)
template_raster |
A |
port_data |
Character. Path to csv file containing port container volumes and named Latitude and Longitude (in WGS84) for each port of interest. |
beta |
Numeric. The beta coefficient exponential function of how risk changes with distance from port. beta should be in units per 1km. |
outfile |
Character. Output raster file path. Directory will be created if it does not exist.If not provided, object will be returned to R. |
return_rast |
Logical. Should the resulting raster be returned to R?
Ignored if |
If outfile
is specified, the resulting raster is saved as a
geotiff to that path. If return_rast
is TRUE
or
outfile
is not specified the resulting raster is returned,
otherwise NULL
is returned invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.