Re: [GRASS-user] List of existing values

2010-07-22 Thread Hamish
Martin Landa wrote: > > as mentioned in Hamish's response, use combination of > > `sort` and `uniq` > > > > r.starts -1 input=data | sort | uniq > > shorter: > > r.starts -1 input=data | sort -u AFAIR, those are not the same thing and can not be used interchangeably. (although I don't fully re

[GRASS-user] v.rast.stats

2010-07-22 Thread Sandile Gumede
Hello Micha, Can you please put all the steps you did here? On Sat, Jun 19, 2010 at 9:57 PM, Micha Silver wrote: > Hello Sandile: > I tried to duplicate your steps and it seems to work for me. > Here's what I did: > > > wget ftp://trmmopen.gsfc.nasa.gov/pub/gis/3B42RT.2010032900.1day.tif > wge

Re: [GRASS-user] List of existing values

2010-07-22 Thread Nikos Alexandris
Martin Landa wrote: > > > as mentioned in Hamish's response, use combination of > > > `sort` and `uniq` > > > r.starts -1 input=data | sort | uniq Nikos: > > shorter: > > r.starts -1 input=data | sort -u Hamish wrote: > AFAIR, those are not the same thing and can not be used > interchangeably. (

Re: [GRASS-dev] Re: [GRASS-user] Get current location projection in a Python Script

2010-07-22 Thread Nikos Alexandris
Nikos Alexandris wrote: > > > > > > >> rows = int(grass.region()['rows']) > > > > > > >> cols = int(grass.region()['cols']) > > > > Is python's "int()" truncating or rounding up values? The question came > > to me while thinking of r.mapcalc's respective functions ( i.e. "int() > > != rou

[GRASS-user] Online database with GRASS

2010-07-22 Thread LeeDaniel
Hi all, My company's looking at making our geodata available online using an OpenStreetMaps map and some kind of geodatabase that the OSM interface accesses to display polygons with various attributes. The user should be able to click on the polygon and read the attributes. Now, I know the online

[GRASS-user] NULL cells

2010-07-22 Thread Sandile Gumede
Hi How do you remove null cells, I guess that is what's causing the problem. r.to.vect complete. GRASS 6.4.0svn (SRTMDEM):~ > r.univar rainfall 100% total null and non-null cells: 12967201 total null cells: 7202 Of the non-null cells: -- n: 1295 minimum: 0 maximum: 36 rang

[GRASS-user] grass 7 quick question: how to display map in text mode

2010-07-22 Thread Jarek Jasiewicz
Hi I need quick answer how can I show map in the text mode in grass7 (no d.mon) It is because grass 7 wx gui has crashed after trying "save settings" in wxgui preferences and wen I try to work GRASS finish his work with following message: I need any possibilities to see map results to track

Re: [GRASS-user] grass 7 quick question: how to display map in text mode

2010-07-22 Thread Jarek Jasiewicz
Nikos Alexandris pisze: Jarek Jasiewicz wrote: I need quick answer how can I show map in the text mode in grass7 (no d.mon) Copy-pasting Glynn's answer (in the past) in a thread titled "grass70 and display monitor": --%<--- You can approximate the pre-7.0 workflow using an image vie

Re: [GRASS-user] grass 7 quick question: how to display map in text mode

2010-07-22 Thread Markus Metz
Could be an erroneous color preference setting that can not be read. Color preferences must be stored as e.g. 255:255:255 and not (255,255,255,255). Open .grass7/wx and search for something like (255,255,255,255) with values ranging between 0 and 255. If I am right and you find something like this,

Re: [GRASS-user] grass 7 quick question: how to display map in text mode

2010-07-22 Thread Nikos Alexandris
Jarek Jasiewicz wrote: > >> I need quick answer how can I show map in the text mode in grass7 (no > >> d.mon) Nikos Alexandris pisze: > > Copy-pasting Glynn's answer (in the past) in a thread titled "grass70 and > > display monitor": > > > > --%<--- > > You can approximate the pre-7.0 workflow u

Re: [GRASS-user] grass 7 quick question: how to display map in text mode

2010-07-22 Thread Nikos Alexandris
Markus Metz wrote: > Could be an erroneous color preference setting that can not be read. > Color preferences must be stored as e.g. 255:255:255 and not > (255,255,255,255). > Open .grass7/wx and search for something like (255,255,255,255) with > values ranging between 0 and 255. If I am right and

Re: [GRASS-user] grass 7 quick question: how to display map in text mode

2010-07-22 Thread Jarek Jasiewicz
Markus Metz pisze: Could be an erroneous color preference setting that can not be read. Color preferences must be stored as e.g. 255:255:255 and not (255,255,255,255). Open .grass7/wx and search for something like (255,255,255,255) with values ranging between 0 and 255. If I am right and you find

Re: [GRASS-user] grass 7 quick question: how to display map in text mode

2010-07-22 Thread Hamish
Jarek wrote: > thanks for answer, but unfortunately no : ( > ximgview still need wxpython it is solution only for > old style display commands but not for corrupted wx Nope, there are two programs, ximgview and wximgview. Or just use your favourite image viewer for it. When ssh'ing to the big se

Re: [GRASS-user] grass 7 quick question: how to display map in text mode

2010-07-22 Thread Martin Landa
Hi, 2010/7/22 Jarek Jasiewicz : > there is nothing like this, but removing .grass7/wx has made wx working. I > will create default wx file and gui crashes again. Diff says that there are > no differences between old and new wx file so I think that something in > default settings create crash. thi

[GRASS-user] Re: v.rast.stats

2010-07-22 Thread Micha Silver
On 07/22/2010 10:36 AM, Sandile Gumede wrote: Hello Micha, Can you please put all the steps you did here? I think all the steps are already below. On Sat, Jun 19, 2010 at 9:57 PM, Micha Silver > wrote: Hello Sandile: I tried to duplicate your steps and it

Re: [GRASS-user] NULL cells

2010-07-22 Thread Micha Silver
On 07/22/2010 10:55 AM, Sandile Gumede wrote: Hi How do you remove null cells, I guess that is what's causing the problem. Sandile: If I remember your project details, I think that the problem is not the null cells in your rainfall data, but rather the very small catchment polygons, some of wh

[GRASS-user] not able to create a table on vector import

2010-07-22 Thread stephen sefick
I changed the Date column to date, and thought this was the problem. This was not the problem, and I don't know what to do to proceed. dbmi: Protocol error dbmi: Protocol error dbmi: Protocol error ERROR: Unable to create table: 'create table srs_points_auburn (" integer, site varchar ( 80 ), base

Re: [GRASS-user] List of existing values

2010-07-22 Thread Nikos Alexandris
Martin Landa wrote: > > > > as mentioned in Hamish's response, use combination of > > > > `sort` and `uniq` > > > > r.starts -1 input=data | sort | uniq Nikos: > > > shorter: > > > r.starts -1 input=data | sort -u Hamish: > > AFAIR, those are not the same thing and can not be used > > interchang