fix incorrectly copied code

This commit is contained in:
Cyberes 2023-11-12 13:08:12 -07:00
parent 9e286c1f0c
commit 1d222ff2eb
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ if __name__ == '__main__':
mask = np.any(tile_data == 0, axis=-1) & np.any(tile_data != 0, axis=-1) # Identify pixels where not all bands are zero and at least one band is zero.
for i in range(3): # Iterate over each band.
# For these pixels, set zero bands to one.
tile_data[mask & (tile_data[:, :, i] == 0), i] = 0.1
tile_data[mask & (tile_data[:, :, i] == 0), i] = 1
# Calculate the position of the tile in the image data array.
row_pos = (row - min_row) * tile_size