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

GRASS GIS trac at osgeo.org
Fri Dec 5 08:29:22 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 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>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list