I am running the following code in order to resample a single-band TIFF file, whose data are going from 0 to 100 with 255 being the nodata value
"gdalwarp -t_srs "+srs+" -tr "+pxsz+" "+pxsz+" -te "+xmin+" "+ymin+" "+xmax+" "+ymax+" -te_srs "+srs+" -r average -srcnodata 255 -dstnodata -999 -ot Float32 -of GTiff "+fin+" "+fou
The problem is that the output file have a single alpha band instead of the grey original, as you can see by the gdalinfo
Band 1 Block=11x9 Type=Byte, ColorInterp=Alpha
while the original file had
Band 1 Block=4830x1 Type=Byte, ColorInterp=Gray
How can I solve this?