[GRASS-SVN] r72256 - grass-addons/grass7/raster/r.sentinel/r.sentinel.import
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 19 11:55:06 PST 2018
Author: martinl
Date: 2018-02-19 11:55:06 -0800 (Mon, 19 Feb 2018)
New Revision: 72256
Modified:
grass-addons/grass7/raster/r.sentinel/r.sentinel.import/r.sentinel.import.py
Log:
r.sentinel.import: print proj comparision if differs, see also r72255
Modified: grass-addons/grass7/raster/r.sentinel/r.sentinel.import/r.sentinel.import.py
===================================================================
--- grass-addons/grass7/raster/r.sentinel/r.sentinel.import/r.sentinel.import.py 2018-02-19 19:54:10 UTC (rev 72255)
+++ grass-addons/grass7/raster/r.sentinel/r.sentinel.import/r.sentinel.import.py 2018-02-19 19:55:06 UTC (rev 72256)
@@ -104,13 +104,8 @@
def _check_projection(self, filename):
try:
- # module is not so script friedly, so we discard all
- # warning and errors
- nuldev = open(os.devnull, 'w+')
gs.run_command('r.in.gdal', flags='j',
- input=filename, quiet=True,
- stderr = nuldev)
- nuldev.close()
+ input=filename, quiet=True)
except CalledModuleError as e:
return False
More information about the grass-commit
mailing list