I need to homogenize a set of files where the minimum value is always 1 while the maximum should be 366
I would like to use GDAL to perform this operation and this is my code:
for tiff in `cat list.txt`; do
fname=${tiff##*/}
/usr/bin/gdal_edit.py -a_nodata 0 $tiff
/usr/bin/gdal_translate -of GTiff -scale 1 366 $tiff $output_folder$fname
but the output image is not correct and its size is bigger than the input one
What am I doing wrong?