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:
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
#233: v.to.db: type description corrupted in wxGUI
--+-
Reporter: msieczka | Owner: grass-dev@lists.osgeo.org
Type: defect| Status: new
Priority: major | Milestone:
#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
#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:
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
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
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
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.
#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
#233: v.to.db: type description corrupted in wxGUI
---+
Reporter: msieczka | Owner: grass-dev@lists.osgeo.org
Type: defect| Status: new
Priority: major | Milestone:
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]
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,
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.
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
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
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
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
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,
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
20 matches
Mail list logo