Re: [GRASS-user] winGRASS 7.8 64bit preview available in OSGeo4W - new snapshot: d1c4ad132

2019-10-25 Thread Helmut Kudrnovsky
Helmut Kudrnovsky wrote
> Helmut Kudrnovsky wrote
>> Hi, 
>> 
>> a winGRASS 7.8 64bit preview should be available in OSGeo4W for testing:
>> 
>> https://trac.osgeo.org/osgeo4w/
> 
> a new snapshot of winGRASS 7.8.1dev 64bit is available in OSGeo4W:
> 
> GRASS version: 7.8.1dev   
>   
> Code revision: d1c4ad132  
>   

next winGRASS snapshot available:

GRASS GIS 7.8.1dev 4785a5b77

testing welcome



-
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] grass78 on centos7 from coprs/neteler/grass78

2019-10-25 Thread Laura Poggio
Hi,
thanks a lot!
In the meantime I can use the png monitor if really needed (working on a
cloud machine on a storage type I can not really mount locally).

Thanks a lot
Laura


On Fri, 25 Oct 2019 at 15:02, Markus Neteler  wrote:

> Hi again,
>
> On Fri, Oct 25, 2019 at 1:52 PM Markus Neteler  wrote:
> ...
> > In GRASS 7.8, we moved to Python 3.
> > In Fedora, we use python3-wxpython4 to compile wxGUI:
> > - https://koji.fedoraproject.org/koji/packageinfo?packageID=26351
> >
> > However, I don't know where to find a corresponding EPEL package:
> > -
> https://centos.pkgs.org/7/epel-x86_64/wxPython-2.8.12.0-9.el7.x86_64.rpm.html
> > - https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/w/
> >
> > Does anyone have an idea? Maybe I am missing something.
>
> I now briefly talked to the wxPython EPEL maintainer, and opened a
> related ticket:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1765573
>
> Hope it get's packaged soon.
>
> Best,
> Markus
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] grass78 on centos7 from coprs/neteler/grass78

2019-10-25 Thread Markus Neteler
Hi again,

On Fri, Oct 25, 2019 at 1:52 PM Markus Neteler  wrote:
...
> In GRASS 7.8, we moved to Python 3.
> In Fedora, we use python3-wxpython4 to compile wxGUI:
> - https://koji.fedoraproject.org/koji/packageinfo?packageID=26351
>
> However, I don't know where to find a corresponding EPEL package:
> - 
> https://centos.pkgs.org/7/epel-x86_64/wxPython-2.8.12.0-9.el7.x86_64.rpm.html
> - https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/w/
>
> Does anyone have an idea? Maybe I am missing something.

I now briefly talked to the wxPython EPEL maintainer, and opened a
related ticket:

https://bugzilla.redhat.com/show_bug.cgi?id=1765573

Hope it get's packaged soon.

Best,
Markus
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] grass78 on centos7 from coprs/neteler/grass78

2019-10-25 Thread Markus Neteler
Dear Laura,

On Fri, Oct 25, 2019 at 9:40 AM Laura Poggio  wrote:
>
> Dear Markus,
> the main installation worked fine. Thanks a lot!

glad it installs now, at least without the GUI.

> One more question. I installed grass-gui as well withou problems or errors
> When I start GRASS I get the message: ERROR: wxGUI requires wxPython. No 
> module named 'wx'
> I installed wxPython (and its devel) with yum but I think it is not the right 
> version. I tried to installed it within conda environments or using pip3, but 
> the installation is giving errors.
> Before I start to dig into it, I was wondering if there is some quick 
> solution to get the right wxPython?

In GRASS 7.8, we moved to Python 3.
In Fedora, we use python3-wxpython4 to compile wxGUI:
- https://koji.fedoraproject.org/koji/packageinfo?packageID=26351

However, I don't know where to find a corresponding EPEL package:
- https://centos.pkgs.org/7/epel-x86_64/wxPython-2.8.12.0-9.el7.x86_64.rpm.html
- https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/w/

Does anyone have an idea? Maybe I am missing something.

thanks
Markus
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] v.kernel - Points weighted with attribute ?

2019-10-25 Thread Micha Silver

  
  
Hi Taïs


Thanks for testing. 
As Moritz mentioned, the important parameter in spatial kernel
  density is the bandwidth.
Here attached is an improved script that uses the spatialEco R
  package (instead of density.ppp from spatstat). To run this,
  you'll need to install spatialEco in your R environment.


This package allows to specify both the bandwidth and the target
  raster extents and resolution. In this script I take the extents
  and resolution from the GRASS region. Bandwidth is specified on
  the command line.
So to try this, in your running GRASS session:


Rscript kernel_density.R   


I also attached two images in a test I did, with bandwidths of
  10,000 and 20,000.


Hope this helps,
Micha


On 10/25/19 12:17 PM, Taïs wrote:


  
  Hi Micha, 
  
  
  
  I successfully run your R script. However to output is weird
and I don't know how to fix it. 
  
  In v.kernel, you can setup the "raduis" parameter to control
what I assume to be the size of the kernel (of the moving
window). I made one test with radius=300 and another with value
3000. The result of the first is more what I would expect in
terms of spatial variability. 
  
  
  
  When I try your script, the output raster has a size of 128x128
which did not correspond at all to my computational region, and
thus the resolution is not the same as the one defined in the
computational region. 
  
  
  
  The other thing is that I'm wondering if it is possible to
control the size of the moving window with the "density"
function in R. I already tried the 'n' parameter but it doesn't
change anything.. 
  
  
  
  I also tried with real weights (the number of inhabitants) and
a unity weighting (value 1 for all points) to see it there is a
change and there is which proof the weights affect the output :)
  
  
  
  Le 22/10/19 à 13:41, Micha Silver a
écrit :
  
  


Here is the script.
Let me know how it goes. (I might try to take time to make it
  into a GRASS addon)


On 10/22/19 2:33 PM, Taïs wrote:


  
  Hi Micha, thanks for your repply.
  
  
  
  For my own need, I think your solution is enough and I
would like to try if you agree to send the R script. 
  
  
  
  
  
  Le 22/10/19 à 12:53, Micha Silver
a écrit :
  
  



On 10/21/19 1:33 PM, Tais
  wrote:

Hi
  all, 
  
  I would like to compute a raster density map ("heat map")
  from vector points using v.kernel. The points represent
  house addresses. However, I would need to weight the
  points with a value stored in the attribute table (number
  of inhabitants). I saw on the module manual page that this
  functionality is a "known issue". 
  
  I imagined a solution to by-passe the limitation:
  duplicate each point as many time as needed (according to
  the value stored in the attribute table) and use this new
  layer directly in v.kernel. However, I think it will
  definitely not be the most efficient way to do the trick.
  Do you have an alternative in mind ? 
  
  Of course the best solution would be that someone in the
  development community would have the time and the kindness
  to implement this function directly in the module (I'm not
  skilled in C and thus cannot try myself). 
  



Maybe not the answer you are looking for, but you can
  create a weighted kernel density in R. I can send an R
  script that is intended to be run from within a GRASS
  session. It accepts a point vector and attrib column, and
  creates a kernel density raster, weighted by the attribute
  values (using the R defaults for bandwidth and Gaussian
  kernel)
Requires, of course, that R is installed, with the
  packages: spatstat, raster, rgrass7.



NB:
  Sorry if I should have posted this on the developer
  mailing list. I hesitated but decided to post here
  finally. 
  
  Best, 
  

-- 
Micha Silver
Ben Gurion Univ.
Sde Boker, 

Re: [GRASS-user] v.kernel - Points weighted with attribute ?

2019-10-25 Thread Moritz Lennert

On 25/10/19 11:17, Taïs wrote:

Hi Micha,


I successfully run your R script. However to output is weird and I don't 
know how to fix it.


In v.kernel, you can setup the "raduis" parameter to control what I 
assume to be the size of the kernel (of the moving window).


AFAIU, radius is not the size of a moving window, it is the bandwidth of 
the kernel function. If you use a gaussian kernel, for example, it will 
be the standard deviation of the normal function to be used. If you use 
a uniform kernel it is the radius of the circular search window.


Moritz
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] grass78 on centos7 from coprs/neteler/grass78

2019-10-25 Thread Laura Poggio
Dear Markus,
the main installation worked fine. Thanks a lot!

One more question. I installed grass-gui as well withou problems or errors
When I start GRASS I get the message: ERROR: wxGUI requires wxPython. No
module named 'wx'
I installed wxPython (and its devel) with yum but I think it is not the
right version. I tried to installed it within conda environments or using
pip3, but the installation is giving errors.
Before I start to dig into it, I was wondering if there is some quick
solution to get the right wxPython?

Thanks a lot again!

Laura



On Thu, 24 Oct 2019 at 20:26, Markus Neteler  wrote:

> Dear Laura,
>
> I forgot to encapsulate two more statements. It has been compiled again.
> Please give it a new try.
>
> ciao
> Markus
>
> Laura Poggio  schrieb am Do., 24. Okt. 2019,
> 16:27:
>
>> Dear Markus,
>> I tried and I get
>>
>> Error: Package: grass-7.8.0-4.el7.x86_64 (copr:copr.fedorainfracloud.org:
>> neteler:grass78)
>>Requires: python3-numpy
>> Error: Package: grass-7.8.0-4.el7.x86_64 (copr:copr.fedorainfracloud.org:
>> neteler:grass78)
>>Requires: python3-matplotlib
>>
>> yum lists
>> python34-numpy.x86_64 : A fast multidimensional array facility for
>> Python 3.4
>> python36-numpy.x86_64 : A fast multidimensional array facility for
>> Python 3.6
>>
>> but not exactly python3-numpy or python3-matplotlib. I installed 
>> python36-numpy.x86_64
>> and python36-*matplotlib*.x86_64
>> I also tried to install from
>> https://copr.fedorainfracloud.org/coprs/neteler/python-matplotlib/ but I
>> could not get past the error above.
>> Maybe it is something on how it is necessary to refer to python3 in
>> centos?
>> I tried both with conda and with python3 from yum.
>>
>> Thanks a lot!
>>
>> Laura
>>
>>
>> On Thu, 24 Oct 2019 at 15:04, Markus Neteler  wrote:
>>
>>> Hi again,
>>>
>>> On Thu, Oct 24, 2019 at 12:21 PM Markus Neteler 
>>> wrote:
>>> > On Thu, Oct 24, 2019 at 12:12 PM Laura Poggio 
>>> wrote:
>>> >
>>> > Right now we are stuck at this:
>>> ...
>>> > Means I have to update the SPEC file to add more special rules for
>>> > EPEL7... I try asap.
>>>
>>> Seems I got it :)
>>>
>>> https://copr.fedorainfracloud.org/coprs/neteler/grass78/
>>>
>>> Please note that I also fixed a typo in the EPEL7 install step in above
>>> page.
>>> Please let me know if it now works for you,
>>>
>>> Best
>>> Markus
>>>
>>>
>>>
>>> --
>>> Markus Neteler, PhD
>>> https://www.mundialis.de - free data with free software
>>> https://grass.osgeo.org
>>> https://courses.neteler.org/blog
>>>
>>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user