# \donttest{
# default projects full extent on 100x100 pixel raster:
scan_to_raster(example_scan)
# crop the scan and project at a resolution of 0.1 degree:
scan_to_raster(example_scan, ylim = c(55, 57), xlim = c(12, 13), res = .1)
# using a template raster (a terra SpatRaster can be passed directly):
template_raster <- terra::rast(terra::ext(12, 13, 56, 58), crs = "epsg:4326")
scan_to_raster(example_scan, raster = template_raster)
# }
Run the code above in your browser using DataLab