[GRASS-dev] Re: [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
Mon Jul 19 03:58:36 EDT 2010


#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):

 as long as it works and is understandable by you, I wouldn't be too
 concerned with how elegant the outer loops are. that's not the
 computationally expensive part.

 if your map names are longer than ~10 chars in total, beware that the
 maximum command line length may be 4096 chars on some OSs. so eg it may be
 better to sum months to get the full year instead of summing up 365 maps
 directly. (although if you can it might be interesting to compare results
 of doing it both ways, in the past I'd gotten two slightly different
 answers by doing that which confused me)


 Hamish

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



More information about the grass-dev mailing list