From 9a8b0d04224f2d429be8e5a71e29f7b06b17b3ec Mon Sep 17 00:00:00 2001 From: Timothy Middelkoop Date: Mon, 13 Dec 2021 10:02:16 -0600 Subject: [PATCH] Include product in result name --- landsat/combine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/landsat/combine.py b/landsat/combine.py index 977d28e..0102c92 100644 --- a/landsat/combine.py +++ b/landsat/combine.py @@ -13,7 +13,7 @@ # Combine bands into PNG meta.update(count = 3, driver='PNG') -with rasterio.open('output/result.png', 'w+', **meta) as output: +with rasterio.open("output/result-%s.png" % source, 'w+', **meta) as output: for i in range(1, 4): print(i) output.write_band(i,rasterio.open("data/%s/%s_B%d.TIF" % (source, source, i+3)).read(1))