I am trying to subset multiple image to smaller Area of interest I have tried with gdal_translate & gdalwarp in commandline but it causes slight shift in pixel in the output raster after cropping/sub-setting image into smaller place by using 1st command.
my 1st command is
gdal_translate -projwin 5.83 47.86 10.98 45.65 -of GTiff inputraster.tif outputraster.tif
I have also tried in qgis (which is basically same thing) by clip raster by extent which also causes shift in pixel from original.
My 2nd command
gdalwarp -tr 0.01 0.01 -te 5.83 47.86 10.98 45.65 -s_srs "EPSG:4326" -t_srs "EPSG:4326" -r near -tap -of GTiff input.tif output.tif outputraster.tif
which causes changes in pixel value the highest raster value decreases in 210 from 215 in original raster