[GRASS-dev] Re: Problem when loading GRASS 6 raster with large integer values into R via r.out.bin

Rainer M Krug r.m.krug at gmail.com
Wed Sep 24 03:49:15 EDT 2008


On Wed, Sep 24, 2008 at 4:45 AM, Hamish <hamish_b at yahoo.com> wrote:
>> > Concerning trapping of the verbose messages, I think it would be a
>> > good idea to do the following:
>> >
>> > 1) add a parameter verbose=TRUE in readRAST6 and writeRAST6 to enable
>> > or disable it
> Roger:
>> I'll try to do this using the existing ignore.stderr= in system(), but
>> it may not stop everything.
>
> When possible it should utilize the --quiet and --verbose flags which all
> GRASS modules listen for, or set the GRASS_VERBOSE environment variable
> to the required level. Blindly throwing all stderr messages to /dev/null
> should be a last resort, there may be something important there.

I think that's a good idea - to use the same standard flags that GRASS
is also using (including the --overwrite which would be nice to have
in the writeRAST6 by the way).
I will keep that approach in mind for other commands interfacing to GRASS.

Rainer


>
>
> Hamish
>
>
>
>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>



-- 
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


More information about the grass-dev mailing list