Re: [GRASS-user] GRASS_VERBOSE=-1
Hi Laurent The quiet flag, it seems, doesn't affect warnings. They get printed to stdout even with quiet=True. -- Original Message -- Subject: Re: [GRASS-user] GRASS_VERBOSE=-1 Date: Sat, 13 Aug 2016 09:42:26 -0500 To: Micha Silver, Grass User List From: Laurent C. Hello, Then pass quiet=true to run_command() Laurent El ago. 13, 2016 2:39, "Micha Silver" <mi...@arava.co.il <mailto:mi...@arava.co.il>> escribió: -- Original Message -- Subject: Re: [GRASS-user] GRASS_VERBOSE=-1 Date: Fri, 12 Aug 2016 18:21:55 -0500 To: Micha Silver, Grass User List From: Laurent C. Hello, One solution is to set the environment variable like this: os.environ['GRASS_VERBOSE'] = '3' What I want to do is surpress the warning messages altogether. Setting with: os.environ['GRASS_VERBOSE'] = '-1' doesn't seem to do anything. 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 <mi...@arava.co.il <mailto:mi...@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 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@lists.osgeo.org <mailto:grass-user@lists.osgeo.org> http://lists.osgeo.org/mailman/listinfo/grass-user <http://lists.osgeo.org/mailman/listinfo/grass-user> ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] GRASS_VERBOSE=-1
Hello, Then pass quiet=true to run_command() Laurent El ago. 13, 2016 2:39, "Micha Silver" <mi...@arava.co.il> escribió: > -- Original Message -- Subject: Re: [GRASS-user] GRASS_VERBOSE=-1 > Date: Fri, 12 Aug 2016 18:21:55 -0500 To: Micha Silver, Grass User List > From: Laurent C. > >> Hello, >> >> One solution is to set the environment variable like this: >> os.environ['GRASS_VERBOSE'] = '3' >> > > What I want to do is surpress the warning messages altogether. > > Setting with: > > os.environ['GRASS_VERBOSE'] = '-1' > > doesn't seem to do anything. > > 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 <mi...@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 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@lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/grass-user >>> >> > ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] GRASS_VERBOSE=-1
-- Original Message -- Subject: Re: [GRASS-user] GRASS_VERBOSE=-1 Date: Fri, 12 Aug 2016 18:21:55 -0500 To: Micha Silver, Grass User List From: Laurent C. Hello, One solution is to set the environment variable like this: os.environ['GRASS_VERBOSE'] = '3' What I want to do is surpress the warning messages altogether. Setting with: os.environ['GRASS_VERBOSE'] = '-1' doesn't seem to do anything. 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 <mi...@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 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] GRASS_VERBOSE=-1
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: > 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 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@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] GRASS_VERBOSE=-1
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 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user