Skip to contents

Sets the baseline raster template to align and standardize all raster predictor layers This package assumes to data is in a metric equal area projection most likely BCAlbers

Usage

create_template(aoi, res)

Arguments

aoi

is a sf or terra::vect object bounding box created expanded in aoi_snap function(e.g. polygon). Should be a meter based projection

res

desired resolution of the raster (in meters)

outpath

output path. Note that the results will be placed in a subfolder labelled with the resolution.

Value

a terra raster. NOT CURRENTLY saving raster objects

Details

This is an essential first step. As subsequent co-variate layers will be generated at multiple resolutions (e.g. 5, 10, 25m^2) and then disaggregate'd back to the lowest resolution. Having the aoi set 100m break-points facilitates this.

Examples


create_template(aoi, 10)
#> Error in create_template(aoi, 10): object 'aoi' not found