I am change the spatial reference system from raster file with gdalwarp. I would like to overwrite file to avoid own the same file again in my computer. I am trying to use gdalwarp with -overite parameter. But the error happened and I didn't understand why. I think that the path of input and output can be the same in order to do what I would like (not have the same file recorded). Is it possible to do with gdalwarp?
gdalwarp -overwrite /tmp/LC08_L1TP_215068_20160913_20170321_01_T1/LC08_L1TP_215068_20160913_20170321_01_T1_B8.TIF /tmp/LC08_L1TP_215068_20160913_20170321_01_T1/LC08_L1TP_215068_20160913_20170321_01_T1_B8.TIF -s_srs EPSG:32624 -t_srs EPSG:4674 ERROR 5: Source and destination datasets must be different.