Skip to contents

Reference layers

The Alberta boundary, the 1 km reference grid, and the project CRS that every other function harmonizes to.

ab_boundary()
Alberta provincial boundary
ab_crs()
Default coordinate reference system for Alberta workflows
ab_grid()
ABMI 1 km reference grid

Harmonization

Bring a layer onto the reference grid – reproject, mask to the provincial boundary, resample – and confirm the result aligns.

harmonize_crs()
Transform points to the CRS of a reference raster
mask_to_boundary()
Mask a raster to a boundary polygon
resample_to_grid()
Align a raster to a reference grid
check_alignment()
Check alignment of a spatial layer against a reference grid

Extraction

Attach layer values to survey locations: at the point, within a buffer, as class composition, or by containing polygon.

extract_points()
Extract raster values at point locations
extract_buffer()
Extract a summary statistic within one or more buffer radii
extract_proportion()
Extract class proportions within a buffer for categorical layers
extract_vector()
Point-in-polygon attribute join

Inspection

Summary statistics and quick-look plots for checking a layer before it enters a model.

raster_stats()
Summarise raster cell values
plot_raster()
Plot a raster with a stretched colour scale and boundary
plot_hist()
Plot a histogram of raster cell values
theme_science_map()
Minimal ggplot2 theme for scientific map figures

Catalogue

Discover and retrieve canonical layers from the ABMI spatial data share.

spatial_root()
Location of the spatial data share
list_themes()
List the catalogue's themes
list_layers()
List catalogue contents
find_layer()
Filter the catalogue by theme, keyword, year, extent, or resolution
get_layer()
Load a catalogued layer, or return its path
layer_files()
List the spatial data files in a layer folder
build_catalogue()
Build the catalogue manifest by scanning the data share

Metadata

Read and audit the readme files stored beside each layer on the share.

layer_meta()
Return provenance metadata for a catalogue layer
read_metadata()
Read a spatial metadata readme
as_metadata_row()
Flatten parsed metadata to a one-row data.frame
check_metadata()
Audit metadata completeness across the catalogue

Console formatting for the package’s S3 classes.

print(<sciSpatial_audit>)
Print a compact view of a metadata audit
print(<sciSpatial_metadata>)
Print a metadata object
print(<sciSpatial_themes>)
Print a compact view of the themes

Package

sciSpatialR sciSpatialR-package
sciSpatialR: Spatial Harmonization and Covariate Extraction