Description Usage Arguments Details Value Author(s)
View source: R/dshm_fill_grid.R
dshm_fill_grid
calculates covariate statisitcs within each grid cell in the prediction grid. It also corrects the prediction grid for land or other obstacles not relevant to predictions.
1 | dshm_fill_grid(empty.grid, land.data = NULL, cov, fun, ncores = 2)
|
empty.grid |
Empty grid as SptialPolygonsDataFrame. You can use the function |
land.data |
A SptialPolygonsDataFrame such as land (for marine species) or other obstacles not relevant to predictions. |
cov |
List of covriate rasters. Raster names have to match those in the segment dataset. |
fun |
Function for covariate statistcs within each cell (i.e. mean or median). |
ncores |
Number of cores (this function is runs in parallel only). |
The grid is used for Hurdle model predictions. It is thus important that raster names in cov
are the same of those in the segment dataset. For more information about creating and preparing a prediction grid you can download the build_grid.pdf tutorial.
Prediction grid as SptialPolygonsDataFrame with following data attached:
id: grid cell IDs.
x.coord: grid cell x coordinates.
y.coord: grid cell y coordinates.
area: grid cell area.
XYZ covariates: different habitat covariates such as depth, distance to coast, etc. specific to each grid cell.
Filippo Franchini filippo.franchini@outlook.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.