The century IDs of CHELSA-TraCE21k: ID 20 = 1900-1990 CE (0 ka BP),
ID 0 = 100-1 BCE (2 ka BP), ID -200 = 22 ka BP; i.e.
ID = round((2000 - age) / 100), limited to -200..20.
References
Karger, D.N., Nobis, M.P., Normand, S., Graham, C.H., Zimmermann, N.E. (2023) CHELSA-TraCE21k - high-resolution (1 km) downscaled transient temperature and precipitation data since the Last Glacial Maximum. Climate of the Past 19, 439-456. doi:10.5194/cp-19-439-2023
Examples
trace21k_id(c(0, 2000, 12000, 30000))
#> [1] 20 0 -100 -200
