Calculates planar volume and grade content from aligned, single-layer rasters in a projected metre CRS. Polygon intersections weight each cell by its exact covered fraction; missing grade or thickness excludes the cell from all totals.
Arguments
- raster_grade
A single-layer SpatRaster of grade values.
- raster_thickness
An aligned single-layer SpatRaster of thickness in metres.
- area
An sf or sfc polygon boundary in the same projected metre CRS.
- density
A positive finite conversion factor (default 1). For grade in kg/m3 use 1; for mass-fraction grade and density in t/m3 the result is tonnes. Convert percentages to fractions before using that second convention.