Opened 10 years ago

Closed 9 years ago

Last modified 9 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)

in reply to:  description ; comment:1 by mmetz, 10 years ago

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.

in reply to:  1 comment:2 by lucadelu, 10 years ago

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 by neteler, 9 years ago

Resolution: fixed
Status: newclosed

backport has happened, closing.

comment:4 by neteler, 9 years ago

Milestone: 7.1.07.2.0

Milestone renamed

Note: See TracTickets for help on using tickets.