Create a new GeoTIFF with the same dimensions/projection the input

create_tiff_like(rast, filename_out, datatype)

Arguments

rast

a GDALRasterDataset

filename_out

filename of output GeoTIFF

datatype

datatype of values in output GeoTIFF

Value

a GDALRasterDataset pointing to the output GeoTIFF