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

GRASS GIS trac at osgeo.org
Tue Dec 9 14:18:57 PST 2014


#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>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list