Skip to contents

Create a categorical land cover raster from a land cover raster from copernicus 10m resolution

Usage

create_cat_copernicus_10m(input_raster, output_raster = NULL)

Arguments

input_raster

Path to your input raster file, which should be the original Copernicus land cover raster.

output_raster

(optional): Path where the categorized raster should be saved. If NULL, the raster is not saved to disk.

Value

A raster

References

Zanaga, D., Van De Kerchove, R., Daems, D., De Keersmaecker, W., Brockmann, C., Kirches, G., Wevers, J., Cartus, O., Santoro, M., Fritz, S., Lesiv, M., Herold, M., Tsendbazar, N.E., Xu, P., Ramoino, F., Arino, O., 2022. ESA WorldCover 10 m 2021 v200. https://doi.org/10.5281/zenodo.7254221

ESA WorldCover project / Contains modified Copernicus Sentinel data (2021) processed by ESA WorldCover consortium

ESA WorldCover 2021

Examples


input_raster = "copernicus_10m_non_categorical_raster.tif"
output_raster = "copernicus_10m_categorical_raster.tif"


create_cat_copernicus_10m(input_raster, output_raster)
#> Warning: copernicus_10m_non_categorical_raster.tif: No such file or directory (GDAL error 4)
#> Error: [rast] file does not exist: copernicus_10m_non_categorical_raster.tif