Title explains my predicament. I cannot open a tiff file using the raster package and receive an error that tells me it is due to a missing codec:
library(rgdal) library(raster) file_name <- "C:\\path\\to\\raster.tif" r <- raster(file_name)
Error in .local(.Object, ...) : C:\\path\\to\\raster.tif: Cannot open TIFF file due to missing codec. Error in .rasterObjectFromFile(x, band = band, objecttype = "RasterLayer", : Cannot create a RasterLayer object from this file.
Raster Compression Info:
Compression Type: ZSTD Interleave: Band Predictor Level: 3
Raster was created and compressed using gdal GTIFF driver and Creation Options API in Python