I have a large raster on file. It can be read like so:
my_rast <- rast("my_large_file.tif")
names(my_rast)
[1] "value_a"
Using R or command-line GDAL I would like to change the name of the layer to something different, without totally re-writing the whole raster. How can I do this?
Note: I see there is a command in the Python rasterio library to do this, but I don't see a similar one in R.