[GRASS-user] Re: [GRASS-dev] Grass Python question: do not print warnings

Martin Landa landa.martin at gmail.com
Thu Mar 17 12:46:59 EDT 2011


Hi,

2011/3/17 Franz Schiller <franzschiller1975 at gmail.com>:
> It worked
> I just have one final question:
> I pretend to apply your suggestion to
> proj_image = grass.read_command('g.proj', flags = 'jf', georef = src_file)
> to this.
> If I get a piece of text in proj_image  (like the geoprojection information
> of the src_file, will the stderr=nulldev eliminate the output of this
> function?

I don't fully understand your question, anyway it will discard all
messages printed by `g.proj` to stderr.

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa


More information about the grass-user mailing list