[GRASS-dev] [GRASS GIS] #2507: r.in.gdal accepts multiple bands in band option

#2507: r.in.gdal accepts multiple bands in band option
-------------------------+--------------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.1.0
Component: Raster | Version: unspecified
Keywords: r.in.gdal | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
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.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2507&gt;
GRASS GIS <http://grass.osgeo.org>

#2507: r.in.gdal accepts multiple bands in band option
-------------------------+--------------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.1.0
Component: Raster | Version: unspecified
Keywords: r.in.gdal | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by mmetz):

Replying to [ticket:2507 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.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2507#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#2507: r.in.gdal accepts multiple bands in band option
-------------------------+--------------------------------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.1.0
Component: Raster | Version: unspecified
Keywords: r.in.gdal | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by lucadelu):

Replying to [comment:1 mmetz]:
> Replying to [ticket:2507 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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2507#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#2507: r.in.gdal accepts multiple bands in band option
--------------------------+-------------------------
  Reporter: lucadelu | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: normal | Milestone: 7.1.0
Component: Raster | Version: unspecified
Resolution: fixed | Keywords: r.in.gdal
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by neteler):

* status: new => closed
* resolution: => fixed

Comment:

backport has happened, closing.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2507#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>