Re: [GRASS-user] Error while creating vectorial file in WinGRASS

2010-08-04 Thread Hamish
You need to run db.connect to select a database backend to use first. (There is no VAR file in the mapset yet) Manage databases - connect see the help page for details, I usually just cut and paste out of the examples. v.db.addtable can probably do this automatically. Vector database

Re: [GRASS-user] Distance-weighted focal functions?

2010-08-04 Thread Jarek Jasiewicz
Dylan Beaudette pisze: Hi, After hacking together some R + r.mapcalc code, I started to wonder about how hard it would be to add distance-weighting to r.neighbors... Specifically, the focal distance-weighted mean difference. An example of what I was trying to accomplish can be found here:

Re: [GRASS-user] Error while creating vectorial file in WinGRASS

2010-08-04 Thread Hamish
Hamish wrote: You need to run db.connect to select a database backend to use first. (There is no VAR file in the mapset yet) hopefully fixed ready for testing in 6.5svn r42988 (v.edit). devs: maybe do this for 'v.in.ascii -e' and 'v.digit -n' too? or move this into Vect_open_new() ? ...

Re: [GRASS-user] Error while creating vectorial file in WinGRASS

2010-08-04 Thread Markus Metz
Hamish wrote: Hamish wrote: You need to run db.connect to select a database backend to use first. (There is no VAR file in the mapset yet) hopefully fixed ready for testing in 6.5svn r42988 (v.edit). devs:  maybe do this for 'v.in.ascii -e' and 'v.digit -n' too?  or move this into

[GRASS-user] Filling Null values in a MODIS image

2010-08-04 Thread Hanlie Pretorius
Hi, I have a MODIS land cover image that contains NULL values according to r.univar: - r.univar map=modis_land_cover_type1_2001_prim...@permanent total null and non-null cells: 41884 total null cells: 17145 - So, I tried to fill it with r.fillnulls and I get the following: -

Re: [GRASS-user] Filling Null values in a MODIS image

2010-08-04 Thread Markus Metz
Hanlie Pretorius wrote: Hi, I have a MODIS land cover image that contains NULL values according to r.univar: - r.univar map=modis_land_cover_type1_2001_prim...@permanent total null and non-null cells: 41884 total null cells: 17145 - So, I tried to fill it with r.fillnulls

Re: [GRASS-user] High resolution dem

2010-08-04 Thread Frank Broniewski
Hi, Hamish:Feb 28, 2010; 03:15am Re: High resolution dem I am curious to know what the problem with r.surf.contour was. Usually it does a great job as long as you take a moment to work around the integer and NULL/0 issues. Sorry that I quitted this discussion so silently, but I had to drop

Re: [GRASS-user] Filling Null values in a MODIS image

2010-08-04 Thread Markus Metz
Apart from the region resolution, it's land cover classes, r.fillnulls will produce nonsense data: floating point. Rather use r.neighbors with a modal filter, patch the original with the filtered map, that would replace NULLs with the most common surrounding land cover type. Markus M Hanlie

Re: [GRASS-user] Error while creating vectorial file in WinGRASS

2010-08-04 Thread Kim Besson
Hi there Regarding Hamish suggestion You need to run db.connect to select a database backend to use first. (There is no VAR file in the mapset yet) The thing is: I have been using an WinGRASS6.4 binary version where I didn't need to do anything else. Just create Vector by doing this. So, my

Re: [GRASS-user] Error while creating vectorial file in WinGRASS

2010-08-04 Thread Hamish
Kim wrote: Hi there Regarding Hamish suggestion You need to run db.connect to select a database backend to use first. (There is no VAR file in the mapset yet) The thing is: I have been using an WinGRASS6.4 binary version where I didn't need to do anything else. Just create Vector by doing

Re: [GRASS-user] Filling Null values in a MODIS image

2010-08-04 Thread Hamish
Hanlie wrote: I have a MODIS land cover image that contains NULL values according to r.univar: - r.univar map=modis_land_cover_type1_2001_prim...@permanent total null and non-null cells: 41884 total null cells: 17145 - So, I tried to fill it with r.fillnulls and I get the

Re: [GRASS-user] Filling Null values in a MODIS image

2010-08-04 Thread Hamish
Hanlie wrote: | Rows: 11957 | Columns: 6277 ... I have tried to see the NULLS by displaying everything in white, except for NULLS displayed in red, but I didn't see anything. Does anyone know how I can find out if there are actually NULL value and where they are? try

Re: [GRASS-user] Feed and manipulate the result of v.distance -pa in python

2010-08-04 Thread Hamish
Nikos Alexandris wrote: I need to convert the following bash-one-liner: v.distance --q -pa from=ref_points to=coi_points upload=cat \ column=anycol | cut -d| -f2 | sort -nu | tail -1 into python. My unsolved problem is that v.distance -pa returns for example thousands of lines in

[GRASS-user] GRASS vs OpenJump

2010-08-04 Thread Fahad Rasheed
Hi all , I recently viewed OpenJump application written in JAVA which is also a GIS software but have less features when compared to GRASS GIS. What my plan is to contribute modules of GRASS GIS written in C/Python to OpenJump written in Java. Does osgeo or any grass developers have any

[GRASS-user] Re: Installing r.area

2010-08-04 Thread LeeDaniel
This will never work unless the OpenSuse packager fixes the wrong path (.../BUILD/... is wrong and needs to be /opt/...). Or you do it yourself... AFAIK, it is in your case in /opt/grass/include/Make/Platform.make Alright, I think I understood what to do. I edited

[GRASS-user] Re: Filling Null values in a MODIS image

2010-08-04 Thread Hanlie Pretorius
2010/8/4, Hamish hamis...@yahoo.com: Hanlie wrote: | Rows: 11957 | Columns: 6277 ... I have tried to see the NULLS by displaying everything in white, except for NULLS displayed in red, but I didn't see anything. Does anyone know how I can find out if there are actually

Re: [GRASS-user] Re: Filling Null values in a MODIS image

2010-08-04 Thread Markus Metz
Hanlie Pretorius wrote: Thanks for all the replies. I first tried finding the NULLS using r.mapcalc, and it turns out that the NULLS are the cells in the GRASS region (rectangular), but outside my study region (irregular geographical border). I was under the misconception that g.region set

[GRASS-user] Re: Feed and manipulate the result of v.distance -pa in python

2010-08-04 Thread schorschli
For your task the use of lists and the split tool may help. The different lines have are seperated by a '\n' (which is interpreted as a new line). After splitting the string into a line list you can make a loop each item of this list. Something like this:

Re: [GRASS-user] Re: Installing r.area

2010-08-04 Thread Glynn Clements
LeeDaniel wrote: wrong path (.../BUILD/... is wrong and needs to be /opt/...). Or you do it yourself... AFAIK, it is in your case in /opt/grass/include/Make/Platform.make Alright, I think I understood what to do. I edited /opt/grass/include/Make/Platform.make (made a backup) and

[GRASS-user] Re: Installing r.area

2010-08-04 Thread LeeDaniel
Alright, I gave it another shot... GRASS_HOME is the location of the GRASS source tree. If you don't have the GRASS source tree, it should be unset. Okay, I turned it off by putting # in front of it. Now the line looks like this: # GRASS dirs # GRASS_HOME =

[GRASS-user] Re: Vector attribute query errors on a Mac

2010-08-04 Thread I. Syncrasy
Thank you! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Vector-attribute-query-errors-on-a-Mac-tp5365200p5373451.html Sent from the Grass - Users mailing list archive at Nabble.com. ___ grass-user mailing list

[GRASS-user] Error when trying to show attribute data on a Mac

2010-08-04 Thread I. Syncrasy
I'm trying to view attribute data for a vector file in the sample North Carolina data using the GUI. My steps: In the GIS Manager, 1. Click the Add Vector Layer button in the toolbar 2. Click the Show attribute data in the settings pane below. The Output window shows the following error:

Re: [GRASS-user] Re: Installing r.area

2010-08-04 Thread Glynn Clements
LeeDaniel wrote: Its value is used to initialise a few other variables, which need to be changed when building without the source tree: ARCH_DISTDIR = $(GRASS_HOME)/dist.$(ARCH) ARCH_BINDIR = $(GRASS_HOME)/bin.$(ARCH) ERRORLOG=

Re: [GRASS-user] Cluster whit area?

2010-08-04 Thread Etienne DELAY (deust 2010)
Hi Dylan and everybody I'm come back. I have past this week on R for uderstand what you do in http://casoilresource.lawr.ucdavis.edu/drupal/node/340 Now it's great for R but... I don't understand how make a loop in grass in the web site we can read for x in `seq 1 5` do v.extract --o in=bclust

Re: [GRASS-user] Cluster whit area?

2010-08-04 Thread Nikos Alexandris
(apologies for interfering...) Etienne wrote: Hi Dylan and everybody I'm come back. I have past this week on R for uderstand what you do in http://casoilresource.lawr.ucdavis.edu/drupal/node/340 Now it's great for R but... I don't understand how make a loop in grass in the web site we can

[GRASS-user] 1-page grass overview

2010-08-04 Thread Hamish
Hi, for the upcoming FOSS4G conference[1] we have put together a live dvd[2] with GRASS and a whole bunch of other OSGeo software, about 40 FOSS geo projects are participating in all. It would be great if folks could read through the 1-page overview doc[3] for GRASS (made with reStructured Text