[GRASS-dev] [GRASS GIS] #1109: g.mlist functionality extension: return e.g. $prefix.001 to $prefix.031 out of $prefix.365 maps

GRASS GIS trac at osgeo.org
Wed Apr 17 02:29:24 PDT 2013


#1109: g.mlist functionality extension: return e.g. $prefix.001 to $prefix.031 out
of $prefix.365 maps
-------------------------------+--------------------------------------------
 Reporter:  nikos              |       Owner:  grass-dev@…              
     Type:  enhancement        |      Status:  new                      
 Priority:  minor              |   Milestone:                           
Component:  Default            |     Version:  unspecified              
 Keywords:  g.mlist, pattern,  |    Platform:  Unspecified              
      Cpu:  Unspecified        |  
-------------------------------+--------------------------------------------

Comment(by hamish):

 How about a `g.name.sequence` wrapper module with mandatory min= max=
 basename= options and an optional padding(?)= option (default=3) for this?

 g.sequence min=32 max=59 pad=4 base="day."

 would print to stdout `day.0032,day.0033,...,day.0059`.

 ? then you wouldn't have to be a UNIX power tools or python expert to make
 it happen.


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1109#comment:11>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list