Skip to content

Commit

Permalink
Include product in result name
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddelkoop committed Dec 13, 2021
1 parent 7b9dd20 commit 9a8b0d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion landsat/combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit 9a8b0d0

Please sign in to comment.