I'm trying to name an output file by adding the string "resampled" to the input file name
outputfile = '%s.tif' % '{0}+ {1}'.format(inputfile, '_resampled')
How can I do this so my output file is saved as inputfile_resampled.tif?
For example:
NIR would become NIR_resampled.tif.
"{}.tif".format(inputfile+ '_resampled')?inputfileis a full path and not just the file's name...