On Thu, Sep 25, 2008 at 9:13 AM, Moritz Lennert <[EMAIL PROTECTED]> wrote: > On 24/09/08 16:50, Rainer M Krug wrote: >> >> On Wed, Sep 24, 2008 at 4:01 PM, Daniel Victoria >> <[EMAIL PROTECTED]> wrote: >>> >>> Hi, >>> >>> How about separating it in smaller chunks. >>> Try 3 comands first >>> g.mremove -f rast=* >>> g.mremove -f vect=* >>> g.mremove -f region=* >> >> That would not help much - all (except of a handfull of layers) are raster >>> >>> If you still get "argument list to long" you will have to split the >>> rast/vect/region list once more. I don't know how your rasters are >>> named but, for example, remove all that starts with the letter a >>> g.remove -f rast=a* >> >> That would be an option - but as it is used in a simulation, I don't >> know for sure that not to many starting with a are created. >> I therefore resorted to iterate through them: >> >> for I in `g.mlist type=rast`;do g.remove $I; done >> >> But in general, I would consider it a bug if an operation with >> wildcard results in an error when to many are selected. I will file a >> bug report for that. > > There is a C replacement of the current scripts in the GRASS 6.x and GRASS > 7.x development branches (see e.g. [1]). > Maybe you could just compile that and see if it solves the problem. > > > [1] > http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/general/g.mremove > > > Moritz >
Thanks - I'll do so on a later stage. For now I am iteratting... Rainer -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Faculty of Science Natural Sciences Building Private Bag X1 University of Stellenbosch Matieland 7602 South Africa _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
