One module of the PEMr
project.
Functions in the package focus on the initial data acquisition,
covariate generation, including the preparation of multi-resolution
covariate stack.
Additional modules in the project include:
PEMsamplr
– functions for preparing a sample planPEMmodelr
– model generation, and evaluationPEMmapr
– map production
The raster focused functions have the objective of creating a multi-resolution raster stack of numerous covariates.
- Snap and area of interest to ensure that subsequent rasters are stackable
- Creation of covariates from a digital terrain model via SAGA-GIS
- Disaggregate coarse resolution rasters to fine scales
The bulk of the functions are wrapper-functions utilizing the
terra
and
sf
packages
Vector functions in this package faciltate the aquisition of a standard
set of data from the BC Data
Catalogue via the bcdata
package.
remotes::install_github("bcgov/PEMprepr", build_vignettes = TRUE)
Raster based:
- Create a standardized folder structure for the area of interest
- Create an standardized area of interest – that fits well to a xxx100m2 extent
- Create a digital terrain model for the desired resolutions (e.g. 5, 10, and 25m2)
- Generate covariates for each resolution
- disaggregate the course scale covariates to the finest resolution level
Vector based – collect a standard set of vectors and place them within the folder structure.
todo – add a graphic of the folders
see: https://bcgov.github.io/PEMprepr/
or locally,
The vignette for the package provides an example workflow.
vignette("PEMprepr")
currently functional … with polish needed.
To report bugs/issues/feature requests, please file an issue.
If you would like to contribute to the package, please see our CONTRIBUTING guidelines.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Copyright 2022 Province of British Columbia
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
This project was created using the bcgovr package.