Re: [GRASS-dev] [SoC] Weekly report #3 - GRASS Interactive Scatter Plot Tool

2013-07-08 Thread Štěpán Turek
span style='color: rgb(51, 51, 51); font-family: helvetica, arial, sans-serif; line-height: 19px; white-space: normal;'Hi Michael,/spanbr Are you planning to use wxPlot for the scatterplot display? This provides a consistent graphical interface with the other plotting modules. currently 

Re: [GRASS-dev] [SoC] Weekly report #3 - GRASS Interactive Scatter Plot Tool

2013-07-08 Thread Michael Barton
OK. I originally wanted to use matplotlib because it is a much richer environment, but it was nixed by the dev team because it added a new dependency. If we start using it, it will make numerous, powerful analytical functions accessible. Michael C. Michael Barton Director,

Re: [GRASS-dev] [SoC] Weekly report #3 - GRASS Interactive Scatter Plot Tool

2013-07-07 Thread Štěpán Turek
Hi Sören and Markus, many thanks for big help. If I understand it correctly, the key, which will solve my issue, is the multiprocessing  module, which allows to define region just in this process without affecting the others (as it is in the modules). Thanks to that it will be possible to

Re: [GRASS-dev] [SoC] Weekly report #3 - GRASS Interactive Scatter Plot Tool

2013-07-07 Thread Pietro Zambelli
Hi Štěpán, On Sunday 07 Jul 2013 13:55:15 Štěpán Turek wrote: many thanks for big help. If I understand it correctly, the key, which will solve my issue, is the multiprocessing module, which allows to define region just in this process without affecting the others (as it is in the modules).

Re: [GRASS-dev] [SoC] Weekly report #3 - GRASS Interactive Scatter Plot Tool

2013-07-07 Thread Štěpán Turek
Hi, yes, you can just run your command giving the right environment variables... I have just one more question. Will it work properly when I will call some function from C libraries: Im my case it is something like this:  int I_ComputeScatts(struct Cell_head *region, struct scCats *

Re: [GRASS-dev] [SoC] Weekly report #3 - GRASS Interactive Scatter Plot Tool

2013-07-07 Thread Sören Gebbert
Hi, 2013/7/7 Štěpán Turek stepan.tu...@seznam.cz: Hi, yes, you can just run your command giving the right environment variables... I have just one more question. Will it work properly when I will call some function from C libraries: Im my case it is something like this: int

Re: [GRASS-dev] [SoC] Weekly report #3 - GRASS Interactive Scatter Plot Tool

2013-07-07 Thread Sören Gebbert
Hi, [snip] Be aware that you must use Python objects to transfer the data from the child process to its parent process using a queue[5]. I think that numpy array objects should work. I just realized that you can use shared ctypes objects as well for inter process communication[1]. [1]

Re: [GRASS-dev] [SoC] Weekly report #3 - GRASS Interactive Scatter Plot Tool

2013-07-07 Thread Michael Barton
Are you planning to use wxPlot for the scatterplot display? This provides a consistent graphical interface with the other plotting modules. Michael C. Michael Barton Director, Center for Social Dynamics Complexity Professor of Anthropology, School of Human Evolution Social

Re: [GRASS-dev] [SoC] Weekly report #3 - GRASS Interactive Scatter Plot Tool

2013-07-06 Thread Štěpán Turek
Hi Hamish and Michael, your questions are connected I will try to explain both. The scatter plot tool backend is run in same process as wxGUI. If you select some area in scatter plot, then data from numpy arrays are passed to the backend (through ctypes), which describes selected areas in

Re: [GRASS-dev] [SoC] Weekly report #3 - GRASS Interactive Scatter Plot Tool

2013-07-06 Thread Štěpán Turek
Hi Michael, Out of curiosity, why aren't you reusing and/or enhancing the existing scatter plot python classes? I will probably use some code when I will work on gui part of the scatter plot tool. Best Stepan ___ grass-dev mailing list

Re: [GRASS-dev] [SoC] Weekly report #3 - GRASS Interactive Scatter Plot Tool

2013-07-06 Thread Markus Metz
On Sat, Jul 6, 2013 at 4:19 PM, Štěpán Turek stepan.tu...@seznam.cz wrote: Hi Hamish and Michael, your questions are connected I will try to explain both. The scatter plot tool backend is run in same process as wxGUI. If you select some area in scatter plot, then data from numpy arrays are

Re: [GRASS-dev] [SoC] Weekly report #3 - GRASS Interactive Scatter Plot Tool

2013-07-06 Thread Sören Gebbert
Hi Štěpán, some notes to you implementation approach: 2013/7/6 Markus Metz markus.metz.gisw...@gmail.com On Sat, Jul 6, 2013 at 4:19 PM, Štěpán Turek stepan.tu...@seznam.cz wrote: Hi Hamish and Michael, your questions are connected I will try to explain both. The scatter plot tool

Re: [GRASS-dev] [SoC] Weekly report #3 - GRASS Interactive Scatter Plot Tool

2013-07-06 Thread Michael Barton
FWIW, r.stats respects any changes in computational region but I don't think that r.out.bin does. r.stats also will calculate values from multiple rasters, along with xy coordinates in one pass. These are a couple of the reasons I used r.stat to collect data on rasters. Michael

Re: [GRASS-dev] [SoC] Weekly report #3 - GRASS Interactive Scatter Plot Tool

2013-07-06 Thread Hamish
Michael wrote: FWIW, r.stats respects any changes in computational region but I don't think that r.out.bin does. (actually r.out.bin does respect the current computational region, it uses the standard library functions to read the input raster map. if you look at the code it is not too

Re: [GRASS-dev] [SoC] Weekly report #3 - GRASS Interactive Scatter Plot Tool

2013-07-05 Thread Michael Barton
So I take it you are not using r.stats to generate the data to plot, but are getting data directly accessing rasters via GRASS libraries? Michael __ C. Michael Barton Director, Center for Social Dynamics Complexity Professor of Anthropology, School of Human

Re: [GRASS-dev] [SoC] Weekly report #3 - GRASS Interactive Scatter Plot Tool

2013-07-05 Thread Michael Barton
Out of curiosity, why aren't you reusing and/or enhancing the existing scatter plot python classes? Michael __ C. Michael Barton Director, Center for Social Dynamics Complexity Professor of Anthropology, School of Human Evolution Social Change Arizona State