fix incorrectly copied code
This commit is contained in:
parent
9e286c1f0c
commit
1d222ff2eb
|
@ -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.
|
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 i in range(3): # Iterate over each band.
|
||||||
# For these pixels, set zero bands to one.
|
# 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.
|
# Calculate the position of the tile in the image data array.
|
||||||
row_pos = (row - min_row) * tile_size
|
row_pos = (row - min_row) * tile_size
|
||||||
|
|
Loading…
Reference in New Issue