Description
This function presents a summary with the pixel quantity of each category present in a categorical raster. It provides spatial screening functionality to quickly understand the composition of a single land use/cover map.Usage
Arguments
The path for the raster to be analysed. If path is a multilayer raster, only the first RasterLayer will be analysed.
Value
Returns a tibble containing pixel counts for each category:pixvalue: The unique pixel values (category codes) in the rasterQt: The quantity (count) of pixels for each category
Details
The function accepts input in three formats:- Character path: File path to a raster file (loaded using
raster::raster()) - RasterLayer: A single raster layer object
- RasterStack/RasterBrick: Uses only the first layer from the stack
- Quick quality control of categorical raster data
- Understanding the distribution of land use/cover categories
- Verifying that all expected categories are present in a map
- Calculating area statistics when combined with pixel size information
Examples
See Also
summary_dir()- Summary of multiple raster parametersacc_changes()- Calculate accumulated changes across time series