Commit c53d8d76 authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

Merge remote-tracking branch 'origin/develop' into develop

parents 4467df00 ca7d4396
......@@ -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']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment