diff --git a/prepareS2THEIA.py b/prepareS2THEIA.py index 3323f7402bab0878d5b68fd6718e3ecd053a08b8..b4e128bbc1795f508241655083b909e15f4c8bdd 100644 --- a/prepareS2THEIA.py +++ b/prepareS2THEIA.py @@ -136,7 +136,8 @@ def prepare(argv): out_fn = od + '/' + os.path.splitext(os.path.basename(fn))[0] + '_' + ext + '.tif' subprocess.call(clip_cmd + '\"' + fn + '\" \"' + out_fn + '\"', shell=True) - clip_cmd = 'gdalwarp -q -of GTiff -ot UInt16 -dstnodata 0 -srcnodata 0 -cutline \"' + clip_shp_val + '\" -crop_to_cutline ' + # clip_cmd = 'gdalwarp -q -of GTiff -ot UInt16 -dstnodata 0 -srcnodata 0 -cutline \"' + clip_shp_val + '\" -crop_to_cutline ' + clip_cmd = 'gdalwarp -q -of GTiff -ot UInt16 -cutline \"' + clip_shp_val + '\" -crop_to_cutline ' if srs != None : clip_cmd += '-t_srs {} '.format(srs) fns = ['CLM_R1', 'CLM_R2']