The rasterbc R Package

Dean Koch 2022-01-17

NOTE (January 17, 2022): FRDR’s direct download functionality is temporarily unavailable. Unfortunately this prevents rasterbc from downloading data tiles from the expected URLs at globus.org. Please be patient as FRDR works to resolve the issue.

rasterbc provides access to a collection of 100m resolution gridded spatial ecological data on the province of British Columbia during the period 2001-2018, including yearly rasterized Forest Insect and Disease Survey (FIDS) pest damage polygons. Given a user-defined geographical region (polygon), the package downloads and imports requested data layers into R as SpatRaster objects. The goal is to improve access to a number of publicly accessible datasets on BC forests and simplify data ingress for modellers.

The available layers are:

All datasets were downloaded and processed in the years 2018-2020, then stored as raster tiles in the standard BC Albers projection, and hosted on FRDR. Follow the links in the list above for code and documentation on this process. The collection is published as a data publication for permanence and easy referencing.

Releases

rasterbc is available on CRAN:

rasterbc v1.0.0

Install it in R using the command

install.packages('rasterbc')

This will also install the dependencies sf and terra, if you don’t have them already. See the introduction vignette for instructions on getting started with this package.

About

This project grew out of my doctoral thesis project on modelling outbreaks of the mountain pine beetle in central BC. Parts of of the rasterbc collection can be found in research publications with professors Mark Lewis and Subhash Lele on statistical methods for spatial data, models for animal dispersal, and an analysis of MPB activity in the Merrit TSA. We gratefully acknowledge the support of NSERC, TRIA-Net, and the University of Alberta Lewis Lab in this work.