Re: [GRASS-dev] matplotlib example script

2008-07-25 Thread Yann Chemin
Hi Michael, I tried it in Debian/Sid and here is what I got, a strange permission error Any idea/suggestion? -- GRASS 7.0.svn (spearfish60):~ python histogram_mpldemo.py input=elevation.10m bins=25 output=~/myhistogram fillcolor=20:20:200 start execl() failed:

[GRASS-dev] A function for obtaining UTM coordinate

2008-07-25 Thread roberto caselli
Hello everyone, I need a GRASS function for obtaining for each cell its UTM coordinate. Posta, news, sport, oroscopo: tutto in una sola pagina. Crea l#39;home page che piace a te! www.yahoo.it/latuapagina___ grass-dev mailing list

[GRASS-dev] [GRASS GIS] #233: v.to.db: type description corrupted in wxGUI

2008-07-25 Thread GRASS GIS
#233: v.to.db: type description corrupted in wxGUI --+- Reporter: msieczka | Owner: grass-dev@lists.osgeo.org Type: defect| Status: new Priority: major | Milestone:

[GRASS-dev] [GRASS GIS] #234: v.type, v.type.sh, GUI and WinGRASS

2008-07-25 Thread GRASS GIS
#234: v.type, v.type.sh, GUI and WinGRASS --+- Reporter: msieczka | Owner: grass-dev@lists.osgeo.org Type: defect| Status: new Priority: major | Milestone: 6.4.0

[GRASS-dev] [GRASS GIS] #235: table manager: edits in the table are not saved

2008-07-25 Thread GRASS GIS
#235: table manager: edits in the table are not saved --+- Reporter: msieczka | Owner: grass-dev@lists.osgeo.org Type: defect| Status: new Priority: major | Milestone:

Re: [GRASS-dev] readme for grass.py

2008-07-25 Thread Glynn Clements
Michael Barton wrote: Can the readme file for grass.py be copied to $GISBASE/etc/python along with grass.py during compilation? Done. -- Glynn Clements [EMAIL PROTECTED] ___ grass-dev mailing list grass-dev@lists.osgeo.org

Re: [GRASS-dev] matplotlib example script

2008-07-25 Thread Glynn Clements
Yann Chemin wrote: I tried it in Debian/Sid and here is what I got, a strange permission error Any idea/suggestion? chmod +x histogram_mpldemo.py ./histogram_mpldemo.py Even if you invoke the python interpreter explicitly, the script will run g.parser, which will

Re: [GRASS-dev] matplotlib example script

2008-07-25 Thread Glynn Clements
Michael Barton wrote: Even if it takes just as long, you're less likely to have it fail because plotlist consumed all available RAM. As it stands, plotlist will have one entry for every non-null cell in the raster. When processing bulk data, anything that uses a fixed amount of

Re: [GRASS-dev] A function for obtaining UTM coordinate

2008-07-25 Thread Glynn Clements
roberto caselli wrote: I need a GRASS function for obtaining for each cell its UTM coordinate. In C, G_col_to_easting() and G_row_to_northing() translate col/row coordinates to geographic or cartographic coordinates. Note that the arguments are floating point values, so you need to use e.g.

[GRASS-dev] Re: [GRASS GIS] #234: v.type, v.type.sh, GUI and WinGRASS

2008-07-25 Thread GRASS GIS
#234: v.type, v.type.sh, GUI and WinGRASS ---+ Reporter: msieczka | Owner: grass-dev@lists.osgeo.org Type: defect| Status: new Priority: major | Milestone: 6.4.0

[GRASS-dev] Re: [GRASS GIS] #233: v.to.db: type description corrupted in wxGUI

2008-07-25 Thread GRASS GIS
#233: v.to.db: type description corrupted in wxGUI ---+ Reporter: msieczka | Owner: grass-dev@lists.osgeo.org Type: defect| Status: new Priority: major | Milestone:

Re: [GRASS-dev] readme for grass.py

2008-07-25 Thread Michael Barton
Thanks. It's really helpful. Michael On Jul 25, 2008, at 11:04 AM, Glynn Clements wrote: Michael Barton wrote: Can the readme file for grass.py be copied to $GISBASE/etc/python along with grass.py during compilation? Done. -- Glynn Clements [EMAIL PROTECTED]

Re: [GRASS-dev] matplotlib example script

2008-07-25 Thread Yann Chemin
Hi, after chmod +x, it created a nice histogram of elevation.10m. So I tried on floating point image created by some process. here is the problem: Traceback (most recent call last): File /home/yann/histogram_mpldemo.py, line 173, in module main() File /home/yann/histogram_mpldemo.py,

Re: [GRASS-dev] matplotlib example script

2008-07-25 Thread Michael Barton
The code is pretty simple. I would guess that NAN data could be discarded when making the list that is histogrammed. I'm kind of surprised that it shows up as r.stats is run to discard nulls. But I guess these aren't seen as nulls by r.stats. Michael __ C.

[GRASS-dev] new MatPlotLib example

2008-07-25 Thread Michael Barton
I revised the histogram_mpldemo.py script according to many of Glynn's suggests. I also added the option of creating the output file in png, pdf, ps, eps, and svg. As before, I've posted it at: histogram_mpldemo.py along with an example output: testhist.pdf I also posted another script

Re: [GRASS-dev] matplotlib example script

2008-07-25 Thread Michael Barton
Yann, Have you tried this on a dataset without NAN values? Michael __ C. Michael Barton, Professor of Anthropology Director of Graduate Studies School of Human Evolution Social Change Center for Social Dynamics Complexity Arizona State University Tempe, AZ

[GRASS-dev] success compiling GRASS 7 trunk ... sort of

2008-07-25 Thread Michael Barton
I trashed all of my files in GRASS trunk and rechecked out a new copy. This time it compiled fine. Thanks for the suggestion. Now, however, the wxPython interface won't open. I get the following error: Fatal Python error: Interpreter not initialized (version mismatch?) This happens in

Re: [GRASS-dev] matplotlib example script

2008-07-25 Thread Glynn Clements
Michael Barton wrote: ax.hist() and numpy.histogram() are broken by design. They should accept an iterator as an argument. Requiring the entire data to be passed as a list makes them useless for large amounts of data. Well. For *really* large amounts of data I suppose. And indeed

Re: [GRASS-dev] matplotlib example script

2008-07-25 Thread Glynn Clements
Yann Chemin wrote: this happens because the data has NAN (see r.info output): Range of data:min = nan max = nan Is there a way to discard NAN in a.min() and a.max() calculations? Or is there a NAN-resistant mode in matplotlib? NaN should never appear in GRASS rasters. When it does,

Re: [GRASS-dev] success compiling GRASS 7 trunk ... sort of

2008-07-25 Thread Glynn Clements
Michael Barton wrote: I trashed all of my files in GRASS trunk and rechecked out a new copy. This time it compiled fine. Thanks for the suggestion. Now, however, the wxPython interface won't open. I get the following error: Fatal Python error: Interpreter not initialized (version