Re: [gdal-dev] help printing the standard out from gdal_grid in python

2018-04-12 Thread Sean Gillies
Hi Nicolas, check_output() is higher level and easier to use. I recommend it: https://docs.python.org/2.7/library/subprocess.html#subprocess.check_output. There's a note in there about capturing stderr as well. If gdal_grid is running successfully, there may not be anything in stdout. I think I s

[gdal-dev] help printing the standard out from gdal_grid in python

2018-04-12 Thread Nicolas Cadieux
Hi, I am not an experienced programmer.  I am calling gdal_grid from a python script.  I am using p.imap_ unordered to multiprocess the script.  The idea is the following: def gdal_Grid(fileList):     gdal_Grid_Cmd = 'gdal_grid -l '     shell = subprocess.Popen(r'c:\