I have a .tif file that I created with Python and when I open it in ArcMap it says it doesn’t have spatial reference information. Is there a way to set the spatial reference with GDAL if I have a .prj file? I have tried running this command through Python:
gdalwarp -t_srs ESRI::file.prj tmp.tif ouput.tif
Where -t_srs is the ‘target spatial reference set’, but it gives me the error: “Unable to compute a transformation between pixel/line and georeferenced coordinated for tmp.tif”
Is there an easy way to set the spatial reference of a .tif file with GDAL?