Skip to content

Ability to remove specific bands within raster datasets #14098

@VaasuDevanS

Description

@VaasuDevanS

Feature description

The current workflow is to use gdal raster select command to subset required bands and write a separate dataset. It would be really great if there is a simpler way to "remove" specific bands in-place or write as new raster.

something like below:

gdal raster select in.tif out.tif --band 3,4 --remove`
gdal raster select in.tif --band 3,4 --remove

The rationale is given a 10-band raster image, removing a couple bands should be faster in terms of processing and writing than selecting and writing 8 bands to disk.

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementnot for AI loversSee https://gdal.org/en/stable/community/ai_tool_policy.html

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions