From f3362da9c044674f69911e133f1b9fa8adc70cb9 Mon Sep 17 00:00:00 2001 From: Mohammad Mohseni Aref Date: Thu, 13 Jun 2019 14:49:38 +0200 Subject: [PATCH] Update crop_rdr.py for small bug 'NEW NEW_FILE' is not necessary for clipping data ! --- contrib/timeseries/prepStackToStaMPS/bin/crop_rdr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/timeseries/prepStackToStaMPS/bin/crop_rdr.py b/contrib/timeseries/prepStackToStaMPS/bin/crop_rdr.py index 4e8134c..96bc118 100755 --- a/contrib/timeseries/prepStackToStaMPS/bin/crop_rdr.py +++ b/contrib/timeseries/prepStackToStaMPS/bin/crop_rdr.py @@ -157,7 +157,7 @@ if __name__ == '__main__': print('Lines: ' + str(min_LinePixel[0]) + '\t' + str(max_LinePixel[0])) print('Pixels: ' + str(min_LinePixel[1]) + '\t' + str(max_LinePixel[1])) - print('gdalwarp -to SRC_METHOD=NO_GEOTRANSFORM -of envi -te ' + str(min_LinePixel[1]) + ' ' + str(min_LinePixel[0]) + ' ' + str(max_LinePixel[1]) + ' ' + str(max_LinePixel[0]) + ' FILE FILE_NEW') + print('gdalwarp -to SRC_METHOD=NO_GEOTRANSFORM -of envi -te ' + str(min_LinePixel[1]) + ' ' + str(min_LinePixel[0]) + ' ' + str(max_LinePixel[1]) + ' ' + str(max_LinePixel[0]) + ' ') # print('gdalwarp -to SRC_METHOD=NO_GEOTRANSFORM -of envi -co INTERLEAVE=BIP -te ' + str(min_LinePixel[1]) + ' ' + str(min_LinePixel[0]) + ' ' + str(max_LinePixel[1]) + ' ' + str(max_LinePixel[0])) print('gdal_translate -srcwin ' + str(min_LinePixel[1]) + ' ' + str(min_LinePixel[0]) + ' ' + str(max_LinePixel[1]-min_LinePixel[1]) + ' ' + str(max_LinePixel[0]-min_LinePixel[0]) + ' -of envi -co INTERLEAVE=BIP ' )