Skip to content

Commit

Permalink
DAS-2276: Quick test
Browse files Browse the repository at this point in the history
  • Loading branch information
flamingbear committed Dec 12, 2024
1 parent 8e67313 commit bbd1891
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hybig/browse.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ def create_browse_imagery(
f'incorrect number of bands for image: {rio_in_array.rio.count}'
)

raster, color_map = prepare_raster_for_writing(raster, output_driver)
if rio_in_array.rio.count == 1:
# we only paletize single band input data
raster, color_map = prepare_raster_for_writing(raster, output_driver)
else:
color_map = None

grid_parameters = get_target_grid_parameters(message, rio_in_array)
grid_parameter_list, tile_locators = create_tiled_output_parameters(
Expand Down

0 comments on commit bbd1891

Please sign in to comment.