Re: [GRASS-user] Issue with addon r.vif in MS Windows GUI installations (stand-alone v. 7.2.2 and 7.0.5)

2018-02-02 Thread Helmut Kudrnovsky
>Any idea how I can do that in such a way that it works on both Linux and Windows? in r.vif script I've changed the relevant lines: < # Get the raster values at sample points fd, tmpcov = tempfile.mkstemp() with open(tmpcov, "w") as text_file:

Re: [GRASS-user] Issue with addon r.vif in MS Windows GUI installations (stand-alone v. 7.2.2 and 7.0.5)

2018-02-02 Thread Helmut Kudrnovsky
>Any idea how I can do that in such a way that it works on both Linux and Windows? or maybe something like: >>> import os >>> import tempfile >>> fd, tmpcov = tempfile.mkstemp() >>> with open(tmpcov, "w") as text_file: ... text_file.write("jshdfhg") >>> text_file.close() >>> os.close(fd)

Re: [GRASS-user] Issue with addon r.vif in MS Windows GUI installations (stand-alone v. 7.2.2 and 7.0.5)

2018-02-02 Thread Helmut Kudrnovsky
>I see you commented out the line that removes the temporary file. it was just for debugging to find the issue. >Any idea how I can do that in such a way that it works on both Linux and Windows? https://docs.python.org/2/library/tempfile.html that's maybe an alternative:

Re: [GRASS-user] Issue with addon r.vif in MS Windows GUI installations (stand-alone v. 7.2.2 and 7.0.5)

2018-02-02 Thread Paulo van Breugel
On Thu, Feb 1, 2018 at 12:04 PM, Helmut Kudrnovsky wrote: > Dinarzarde Raheem wrote > > I have been trying to run the addon r.vif using Grass for MS Windows > > standalone v. 7.2.2 and v. 7.0.5 on three separate PCs (two have Windows > 7 > > 32bit/64 bit, one runs Windows 10 Home