[GRASS-user] GRASS_VERBOSE=-1

Laurent C. lrntct at gmail.com
Fri Aug 12 16:21:55 PDT 2016


Hello,

One solution is to set the environment variable like this:
os.environ['GRASS_VERBOSE'] = '3'

the other is to pass the verbosity as an argument to run_command(verbose=True)

Cheers,
Laurent


2016-08-12 9:56 GMT-05:00 Micha Silver <micha at arava.co.il>:
> How do I use the VERBOSE=-1 option in a python script?
>
> I am importing lists of rasters that do not have CRS info (grib2 format), so
> I use the '-o' option to override CRS check. But the screen gets filled
> with:
>
> WARNING: Datum <unknown> not recognised by GRASS and no parameters found
> WARNING: Over-riding projection check
>
> and I miss the messages that I want to see.
>
> Thanks
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user


More information about the grass-user mailing list