diff --git a/contrib/dem-blend/dem-blend.py b/contrib/dem-blend/dem-blend.py index 3a5754c2c..6403c444a 100755 --- a/contrib/dem-blend/dem-blend.py +++ b/contrib/dem-blend/dem-blend.py @@ -22,12 +22,10 @@ print("%s does not exist" % args.input_dems) exit(1) -outdir = os.path.dirname(args.input_dems) -output_dem = os.path.join(outdir, 'merged_blended_dem.tif') +output_dem = os.path.join(args.input_dems, 'merged_blended_dem.tif') input_dem_path = os.path.join(args.input_dems, '*.tif') input_dems = glob.glob(input_dem_path) merge.euclidean_merge_dems(input_dems ,output_dem=output_dem - ,max_workers=multiprocessing.cpu_count() )