Land Mask for PRIO-GRID Cells (Natural Earth)
Source:R/data_naturalearth.R
gen_naturalearth_cover.RdGenerates a binary raster mask indicating which PRIO-GRID cells intersect
with land, based on the Natural Earth land dataset. By default, any nonzero
land coverage qualifies a cell as land. The minimum proportion of land cover
required to classify a cell as land can be adjusted with min_cover.
Details
The function:
Calls
gen_naturalearth_cover_shareto compute the fractional land cover of each grid cellSets cells with land coverage below
min_covertoNAReturns a raster aligned to PRIO-GRID resolution with non-
NAvalues representing land cells
References
Natural Earth (2024). “Land. 10m Physical. Made with Natural Earth. Free Vector and Raster Map Data.”
Examples
if (FALSE) { # \dontrun{
# Generate default land mask
land_mask <- gen_naturalearth_cover()
terra::plot(land_mask, main = "PRIO-GRID Land Mask (Natural Earth)")
# Require 50% land cover to classify as land
land_mask50 <- gen_naturalearth_cover(min_cover = 0.5)
terra::plot(land_mask50, main = "PRIO-GRID Land Mask (≥50% Land)")
} # }