
Read the LUH2 terrestrial-area validation layer
Source:R/polycell_layers.R
read_luh2_terrestrial.RdReads staticData_quarterdeg.nc and returns (1 - icwtr) * carea summed to
the 0.5-degree grid: the terrestrial area LUH2 itself implies. This is the
DA-5 validation layer for build_polycell_support() and is never a
production mask, because icwtr includes the ocean as well as ice and inland
water, and because LUH2 misses small islands its own 0.25-degree mask calls
sea.
Usage
read_luh2_terrestrial(vintage = c("GCB2022", "v2h"), dir = NULL)Value
A tibble with lon, lat and terrestrial_ha on the 0.5-degree
grid, carrying the vintage in its "luh2_vintage" attribute.
Examples
# Requires WHEP_LUH2_DIR to be set; not run without it.
if (nzchar(Sys.getenv("WHEP_LUH2_DIR"))) {
read_luh2_terrestrial(vintage = "GCB2022")
}