Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#2507 closed enhancement (fixed)

r.in.gdal accepts multiple bands in band option

Reported by: lucadelu Owned by: grass-dev@…
Priority: normal Milestone: 7.2.0
Component: Raster Version: unspecified
Keywords: r.in.gdal Cc:
CPU: Unspecified Platform: Unspecified

Description

In r.in.gdal could be really useful to have band option as multiple input to import several bands (but not all) in only one command instead run it in a for loop.

Change History (4)

comment:1 in reply to:  description ; Changed 5 years ago by mmetz

Replying to lucadelu:

In r.in.gdal could be really useful to have band option as multiple input to import several bands (but not all) in only one command instead run it in a for loop.

I do not see how a simple for loop could be an obstacle (not more than 3 lines in bash or python). The only advantage I see is that a group is automatically created by r.in.gdal if several bands are imported.

Selective multi-band import added in r63378, please test.

comment:2 in reply to:  1 Changed 5 years ago by lucadelu

Replying to mmetz:

Replying to lucadelu:

In r.in.gdal could be really useful to have band option as multiple input to import several bands (but not all) in only one command instead run it in a for loop.

I do not see how a simple for loop could be an obstacle (not more than 3 lines in bash or python). The only advantage I see is that a group is automatically created by r.in.gdal if several bands are imported.

Selective multi-band import added in r63378, please test.

Tested and it works, thanks.

I leave open the ticket waiting the backport

comment:3 Changed 5 years ago by neteler

Resolution: fixed
Status: newclosed

backport has happened, closing.

comment:4 Changed 4 years ago by neteler

Milestone: 7.1.07.2.0

Milestone renamed

Note: See TracTickets for help on using tickets.