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-14 Thread Markus Neteler
On Wed, Feb 14, 2018 at 12:22 AM, Paulo van Breugel wrote: > On Tue, Feb 13, 2018 at 5:15 PM, Markus Neteler wrote: ... >> Could you please check if this depends on the programming language in >> which the respective module was written (Python, C, ...)?

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-13 Thread Paulo van Breugel
On Tue, Feb 13, 2018 at 5:15 PM, Markus Neteler wrote: > On Tue, Feb 13, 2018 at 12:45 AM, Paulo van Breugel > wrote: > > Hi Dinarzarde and Helmut > > > > I checked on Windows (grass 7.4.0 installed using osgeo4w), and > installing > > r.vif using

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-13 Thread Markus Neteler
On Tue, Feb 13, 2018 at 12:45 AM, Paulo van Breugel wrote: > Hi Dinarzarde and Helmut > > I checked on Windows (grass 7.4.0 installed using osgeo4w), and installing > r.vif using g.extension works fine, but after installing it does not appear > in the addon list in the

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-13 Thread Helmut Kudrnovsky
>Many thanks Paulo and Helmut. Have an osgeo4w installation of grass 7.4.0, so will run it on the console. also in the winGRASS7.4.0 standalone installation invoking r.vif in the console should work. - best regards Helmut -- Sent from:

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-13 Thread Helmut Kudrnovsky
>I checked on Windows (grass 7.4.0 installed using osgeo4w), and >installing r.vif using g.extension works fine, but after installing it >does not appear in the addon list in the Modules tab. The same is true >for a number of other addons I installed. There are, on the other hand, >a number of

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-12 Thread Dinarzarde Raheem
Many thanks Paulo and Helmut. Have an osgeo4w installation of grass 7.4.0, so will run it on the console. Best wishes, Dinarzarde From: Paulo van Breugel [p.vanbreu...@gmail.com] Sent: 12 February 2018 23:45 To: Dinarzarde Raheem; Helmut Kudrnovsky Cc:

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-12 Thread Paulo van Breugel
Hi Dinarzarde and Helmut I checked on Windows (grass 7.4.0 installed using osgeo4w), and installing r.vif using g.extension works fine, but after installing it does not appear in the addon list in the Modules tab. The same is true for a number of other addons I installed. There are, on the

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-10 Thread Helmut Kudrnovsky
>I have had a go with a Windows 10 (64 bit) machine with Grass version 7.0.5. could you update to: GRASS GIS 7.4.0 (current stable) or GRASS GIS 7.2.2 (old stable) ? Grass version 7.0.5 is now really very old. - best regards Helmut -- Sent from:

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-10 Thread Dinarzarde Raheem
Hi Paulo & Helmut, I have had a go with a Windows 10 (64 bit) machine with Grass version 7.0.5. I copied the r.vif patch into the location C:\Users\YourUserName\AppData\Roaming\GRASS7\addons\scripts. I get the following error message (I tried with the existing installation, uninstalled this

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-10 Thread Helmut Kudrnovsky
>> Did you consider using cStringIO, if you need a file-object? >> >> That would avoid the temporary file and thus should be more efficient >> too. See attached diff (it is probably not necessary to remove the last >> line break though). >Implemented your patch, thanks. Dinarzarde, can you test?

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-10 Thread Paulo van Breugel
On 2/3/18 1:33 PM, Stefan Blumentrath wrote: Hi Paulo and Helmut, Did you consider using cStringIO, if you need a file-object? That would avoid the temporary file and thus should be more efficient too. See attached diff (it is probably not necessary to remove the last line break though).

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-03 Thread Stefan Blumentrath
Hi Paulo and Helmut, Did you consider using cStringIO, if you need a file-object? That would avoid the temporary file and thus should be more efficient too. See attached diff (it is probably not necessary to remove the last line break though). Just a suggestion. Yet, there might be even more

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-03 Thread Paulo van Breugel
On February 2, 2018 8:52:03 PM Helmut Kudrnovsky wrote: 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

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

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-01 Thread Helmut Kudrnovsky
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 64 bit). I have been testing the > r.vif installation using the example on the r.vif

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

2018-01-31 Thread Dinarzarde Raheem
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 64 bit). I have been testing the r.vif installation using the example on the r.vif page of the Grass 7 addons