Re: [GRASS-user] circular pallete?

2008-02-25 Thread Nikos Alexandris
olorscale? maybe using > some illustration program, saving as eps? The intent id to draw a > circular colorscale for aspect maps, so it would look nicer than a > rectangular one. > > cheers > > Carlos > > > -- Nikos Alexandris . Department of Remote

Re: [GRASS-user] How to import KML polygons in GRASS?

2008-02-26 Thread Nikos Alexandris
(Replying partially to myself) Well, afterall it works! I removed gdal-bin (installed from Ubuntu repo's) and build gdal from source. With a simple ./configure - make - sudo make install I get gdal/ogr almost working ( got expat support but lost something else ;-( ) I needed to add in /etc

[GRASS-user] kml topology... ?

2008-02-26 Thread Nikos Alexandris
Continuing my small quest with kml files... and bombing you with simple questions ;-p are kml files carrying topology information besides coordinates? I needed to manually correct a kml file which looked very bad after importing in GRASS (with -c otherwise it was not useful!) Automatic cleaning

[GRASS-user] Just a successful report ; -) --- Compiling GRASS source code under Ubuntu 7.10 64-bit with...

2008-02-26 Thread Nikos Alexandris
... support for 64-bit, SQLite, OpenGL, PYTHON, FFMPEG It's FAST ;-) I would like to put that on the wiki if there no objections. # Compiling latest GRASS source code on a 64-bit machine (with ATI graphic card) under Ubuntu 7.10 64-bit with support for: 64-but, SQLite, OpenGL, PYTHON, FFMPEG

[GRASS-user] Creating with GRASS (and QGIS) a LOCATION with EPSG:2100 assingns the wgs84 ellipsoid instead of grs80!

2008-02-26 Thread Nikos Alexandris
It might be something serious... or maybe not (?) EPSG:2100 is the Greek Geodetic Rereference System 1987 ( I insist it should be named Hellenic Geodetic... etc). This Projected Coordinate Reference System is based on the GRS80 [1] * Whenever I create a LOCATION with this code through GRASS and t

Re: [GRASS-user] MAPSET PERMANENT - permission denied

2008-02-27 Thread Nikos Alexandris
On Wed, 2008-02-27 at 17:06 +0530, Kunal Malik wrote: > Hi jachym, > do i need subversion tool for downloading the source code .??? Yes you can use the svn (=subversion) tool to download GRASS source code and the grass-addons as well. Look at http://trac.osgeo.org/grass/wiki/DownloadSource sign

Re: [GRASS-user] MAPSET PERMANENT - permission denied

2008-02-27 Thread Nikos Alexandris
On Wed, 2008-02-27 at 17:06 +0530, Kunal Malik wrote: > Hi jachym, > do i need subversion tool for downloading the source code .??? Yes you can use the svn (=subversion) tool to download GRASS source code and the grass-addons as well. Look at http://trac.osgeo.org/grass/wiki/DownloadSource sign

Re: [GRASS-user] Just a successful report ; -) --- Compiling GRASS source code under Ubuntu 7.10 64-bit with...

2008-02-27 Thread Nikos Alexandris
On Wed, 2008-02-27 at 18:47 +0100, Maciej Sieczka wrote: > Nikos Alexandris pisze: > > > *** FFTW *** > > > > # ...installing FFTW > > > > cd fftw-2.1.5/ > > Not needed. On Gutsy the stock FFTW 3 suffices. Thanx for the tip. I can just add

Re: [GRASS-user] v.digit background colour

2008-02-28 Thread Nikos Alexandris
On Thu, 2008-02-28 at 13:19 +0200, Craig Leat wrote: > Hi > > It appears that the v.digit option: settings -> Symbology -> Background > is broken, because I am unable to change the background colour. A > further annoyance is that the background colour changes from white to > cyan whenever a bac

Re: [GRASS-user] kml topology... ?

2008-02-28 Thread Nikos Alexandris
On Thu, 2008-02-28 at 09:15 -0800, Dylan Beaudette wrote: Thank you for your reply Dylan! > On Tuesday 26 February 2008, Nikos Alexandris wrote: > > Continuing my small quest with kml files... and bombing you with simple > > questions ;-p > > > > are kml files ca

Re: [GRASS-user] kml topology... ?

2008-02-28 Thread Nikos Alexandris
On Thu, 2008-02-28 at 09:23 -0800, Dylan Beaudette wrote: > On Thursday 28 February 2008, Nikos Alexandris wrote: > > On Thu, 2008-02-28 at 09:15 -0800, Dylan Beaudette wrote: > > > > Thank you for your reply Dylan! > > > > > On Tuesday 26 February 2008, Nikos

Re: [GRASS-user] Just a successful report ; -) --- Compiling GRASS source code under Ubuntu 7.10 64-bit with...

2008-02-28 Thread Nikos Alexandris
On Wed, 2008-02-27 at 19:11 +0100, Nikos Alexandris wrote: > On Wed, 2008-02-27 at 18:47 +0100, Maciej Sieczka wrote: > > Nikos Alexandris pisze: [...] > > Thanx for the tip. I can just add the rest then. Attached is a txt file slightly modified (removed the FFTW section). Super

Re: [GRASS-user] Re: Just a successful report ; -) --- Compiling GRASS source code under Ubuntu 7.10 64-bit with...

2008-02-28 Thread Nikos Alexandris
On Thu, 2008-02-28 at 23:15 +0100, Markus Neteler wrote: > On Wed, Feb 27, 2008 at 11:46 PM, Tim Michelsen > <[EMAIL PROTECTED]> wrote: [...] > > > > We could think to develop a script that does the GRASS compilation and > > install each time there's a new version out. > > This is on the (long)

Re: [GRASS-user] About .mdb geo-data base file format... please some information about alternative file formats!

2008-02-28 Thread Nikos Alexandris
f EEA's geo-data are available publicly (with a > > subscription) in open source file formats. > > > > > > Thank you for your time in advance. > > > > Sincerely, > > > > Nikos Alexandris. and the reply: Dear Nikos Alexandris, > > Thank you

Re: [GRASS-user] About .mdb geo-data base file format... please some information about alternative file formats!

2008-02-29 Thread Nikos Alexandris
On Fri, 2008-02-29 at 11:54 -0500, Frank Warmerdam wrote: > Dylan Beaudette wrote: > > Thanks for posting this transaction Nikos. I look forward to further > > communications from the EEA. > > > > As Hamish mentioned a couple messages up in this thread, it would be a > > good idea (if it hasn't al

Re: [GRASS-user] Re: [GRASS-dev] r.out.gdal Gtiff output does not preserve color tables

2008-02-29 Thread Nikos Alexandris
On Fri, 2008-02-29 at 10:44 -0800, Dylan Beaudette wrote: > On Thursday 28 February 2008, Hamish wrote: > > Hamish: [...] > > > > I decided (out of complete frustration) never to use Arc again before I > > started much with GRASS, so I can't comment on that. For exporting > > stuff for colleagues

Re: [GRASS-user] Just a successful report ; -) --- Compiling GRASS source code under Ubuntu 7.10 64-bit with...

2008-03-01 Thread Nikos Alexandris
On Sat, 2008-03-01 at 07:09 +0100, Jachym Cepicky wrote: > better post it as normal wiki page, rather then attachment o.k. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Re: Just a successful report ; -) --- Compiling GRASS source code under Ubuntu 7.10 64-bit with...

2008-03-01 Thread Nikos Alexandris
Finally I realised my arbitrariness to introduce in the wiki the steps for GRASS' source code compilation with 64-bit support under Ubuntu 7.10 64-bit: grass.gdf-hannover.de/wiki/Compile_and_Install#Ubuntu_7.10_64-bit ___ grass-user mailing list grass

Re: [GRASS-user] kml topology... ?

2008-03-01 Thread Nikos Alexandris
On Thu, 2008-02-28 at 18:36 +0100, Nikos Alexandris wrote: [...] > One example http://tilaphos.blogspot.com/2008/01/blog-post_30.html > > The kml file I am talking about is (for which it is stated that it's > only a rough estimation of burned areas): > http://tila

Re: [GRASS-user] Signature made by i.class not accessible?

2008-03-03 Thread Nikos Alexandris
On Mon, 2008-03-03 at 13:40 +0200, [EMAIL PROTECTED] wrote: > Hello all, Hi! > > I'm a very new GRASS user, me as well ;-) > and I hope this matter hasn't been discussed many times before. (And > I hope this message doesn't arrive to you many times: I've tried > sending it two times so far, a

Re: [GRASS-user] vector data: creating areas from polygon and contour lines?

2008-03-03 Thread Nikos Alexandris
On Mon, 2008-03-03 at 17:16 -0600, Jaime Carrera wrote: > Hi list, > > For a couple of days I've been trying to create three different areas > from a polygon (outer boundary) and two contour lines. The polygon is > rectangle-shaped, while the contours intersect the rectangle on the > right hand

Re: [GRASS-user] a few suggestions and questions

2008-03-03 Thread Nikos Alexandris
On Mon, 2008-03-03 at 22:52 -0300, Carlos "Guâno" Grohmann wrote: > Hello all > > first I'd like to make a few suggestions to enhance (IMO) our favorite GIS: > > - normalize the options in all modules. I noticed that while most > commands take "--overwrite", some (r.neighbors) use "-o" +1 > - so

Re: [GRASS-user] a few suggestions and questions

2008-03-03 Thread Nikos Alexandris
On Mon, 2008-03-03 at 22:52 -0300, Carlos "Guâno" Grohmann wrote: > Hello all [...] > > is plan curvature in r.param.scale broken? I can't get a map of it. > profc works fine. Also is it possible to make r.param.scale work in > latlong regions? (please?) Probably not! Just tested... and it says:

Re: [GRASS-user] How to import KML polygons in GRASS?

2008-03-04 Thread Nikos Alexandris
Just for the records: a. kml2html 1. Rename "Korinthia_estimate_2007.kml" to "Korinthia_estimate_2007.xml" and save on the same directory with "kml2html.xsl." [1] 2. Edit the xml file and replace http://

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

2008-03-04 Thread Nikos Alexandris
ameters of "r.stats" command... or maybe you need the r.univar ) #!/bin/sh # List pixel values covered by areas of interest for each area separately # First attempt, Nikos Alexandris if [ -z "$GISBASE" ] ; then echo "You must be in GRASS GIS to run this program."

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

2008-03-04 Thread Nikos Alexandris
On Tue, 2008-03-04 at 17:08 -0800, Dylan Beaudette wrote: > On Tuesday 04 March 2008, Nikos Alexandris wrote: > > On Tue, 2008-03-04 at 12:57 +, christian Brandt wrote: > > > Dear list, > > Also-- see the application 'starspan'. works with GRASS, based o

Re: [GRASS-user] Re: Signature made by i.class not accessible?

2008-03-05 Thread Nikos Alexandris
On Wed, 2008-03-05 at 11:57 +0200, [EMAIL PROTECTED] wrote: > Dear all, > Since no-one seems to have any ideas for my problem (I can't get the > supervised classification to work, since I can't access the signature > created by i.class, and there seems to be other problems with i.class > as well)

Re: [GRASS-user] removal of duplicate points

2008-03-05 Thread Nikos Alexandris
On Wed, 2008-03-05 at 09:58 -0800, Dylan Beaudette wrote: > Hi, Hi Dylan > > I have some "squares" which are stored as polygons. When converting these to > points (v.to.points) I am left with the 5 points (first and last point are > duplicated) that define the corners of the "square". > > Is

Re: [GRASS-user] removal of duplicate points

2008-03-05 Thread Nikos Alexandris
On Wed, 2008-03-05 at 19:27 +0100, Nikos Alexandris wrote: > On Wed, 2008-03-05 at 09:58 -0800, Dylan Beaudette wrote: > > Hi, > > > Ideas? > > Not really a solution but maybe... Bad Idea afterall! ___ grass-user

Re: [GRASS-user] removal of duplicate points

2008-03-05 Thread Nikos Alexandris
On Wed, 2008-03-05 at 10:50 -0800, Dylan Beaudette wrote: [...] > And this got the job done. I wonder how hard it would be to add a similar > functionality to v.edit-- which would preserve the attribute table. What about rmdupl for points based on x,y,z? __

Re: [GRASS-user] removal of duplicate points

2008-03-05 Thread Nikos Alexandris
On Wed, 2008-03-05 at 11:44 -0800, Dylan Beaudette wrote: > On Wednesday 05 March 2008, Nikos Alexandris wrote: > > rmdupl > > right -- from v.clean . This works, but it would be a good idea at some point > to change the v.clean tool descriptions from referring to "

Re: [GRASS-user] I need help

2008-03-06 Thread Nikos Alexandris
On Thu, 2008-03-06 at 13:18 +0100, Raonel wrote: Hi Raonel! > I have already discharged the installer of Grass but I am not able to > install it. I have the manual but I don't understand the form that they > explain as making it Which operating system do you use? Which version of GRASS are you t

Re: [GRASS-user] I need help

2008-03-06 Thread Nikos Alexandris
On Thu, 2008-03-06 at 14:07 +0100, Raonel wrote: > Nikos Alexandris escribió: > > On Thu, 2008-03-06 at 13:18 +0100, Raonel wrote: > > Hi Raonel! > > > > > >> I have already discharged the installer of Grass but I am not able to > >> install it.

Re: [GRASS-user] I need help

2008-03-06 Thread Nikos Alexandris
On Thu, 2008-03-06 at 23:09 +0100, Philipp Steigenberger wrote: > > [...] > Hola Raonel, > bien venido al mundo GRASS > aquí una lista de difusión en español: > > http://lists.osgeo.org/mailman/listinfo/grass-es > > quizá vas a encontrar ayuda por allá. > > swich to inglés... > > You have

Re: [GRASS-user] occurrence of attributes in vektortable

2008-03-07 Thread Nikos Alexandris
On Fri, 2008-03-07 at 11:37 +0100, Marco Lechner wrote: > hi list, > > how can i get a list of all different occurences in a column of an > attributetable. Marco, in a linux-box another way would be to combine db.select with the "sort" command. Example (commands in quotes): I have a table Tra

Re: [GRASS-user] occurrence of attributes in vektortable

2008-03-07 Thread Nikos Alexandris
On Fri, 2008-03-07 at 13:12 +0100, Nikos Alexandris wrote: > On Fri, 2008-03-07 at 11:37 +0100, Marco Lechner wrote: > > hi list, > > > > how can i get a list of all different occurences in a column of an > > attributetable. > > Marco, > > in a li

RE: [GRASS-user] occurrence of attributes in vektortable

2008-03-07 Thread Nikos Alexandris
On Fri, 2008-03-07 at 07:17 -0500, Patton, Eric wrote: > >how can i get a list of all different occurences in a column of an > >attributetable. > > v.db.select map=mapname column=columnname | uniq (for vector with a connected > attribute table) It doesn't work for me. What am I doing wrong? v

RE: [GRASS-user] occurrence of attributes in vektortable

2008-03-07 Thread Nikos Alexandris
On Fri, 2008-03-07 at 08:55 -0500, Patton, Eric wrote: > On Fri, 2008-03-07 at 07:17 -0500, Patton, Eric wrote: > >>>how can i get a list of all different occurences in a column of an > >>>attributetable. > >> > >> v.db.select map=mapname column=columnname | uniq (for vector with a > >> connect

Re: [GRASS-user] occurrence of attributes in vektortable

2008-03-07 Thread Nikos Alexandris
On Fri, 2008-03-07 at 10:20 -0700, Tom Russo wrote: > On Fri, Mar 07, 2008 at 03:35:17PM +0100, we recorded a bogon-computron > collision of the <[EMAIL PROTECTED]> flavor, containing: [...] So we end up with (in my example using the table "TrainingSamples" and the column "clccode_le"): v.db.s

Re: [GRASS-user] [GRASSLIST:9108] Re: Area size of a vector layer..

2008-03-10 Thread Nikos Alexandris
HamishB wrote: > >> I got a SHP surface vector layer and inside i got 4 categories of >> surfaces (each one splitted in smaller area spread on the map): I >> need to know the total cover extension for each category. >> How can I? > > as mentioned, v.to.db will do it, but in GRASS 6.1, v.repo

Re: [GRASS-user] [GRASSLIST:9108] Re: Area size of a vector layer..

2008-03-10 Thread Nikos Alexandris
On Mon, 2008-03-10 at 07:19 -0700, Nikos Alexandris wrote: [...] > I am replying in an old thread but I've been trying to grab area size per > class from a (CORINE land cover) vector map. Still no luck for a quick and > easy way. I forgot: My column with the various land co

Re: [GRASS-user] Can't connect to osgeo.org today

2008-03-10 Thread Nikos Alexandris
On Mon, 2008-03-10 at 10:51 -0400, Patton, Eric wrote: > Has anyone had success synching their source code to the repositories on > osgeo.org today? I can't update my source, nor connect to osgeo.org via > the main website either. Eric, both work fine for me (web & svn up). > ~ Eric. Nikos __

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

2008-03-10 Thread Nikos Alexandris
Hey guys, wanted to echo this -- we are continuing development on starspan again -- it works with gdal 1.5, among other improvements, and if you have any feature requests (or if anyone can help us make this into a grass package :), please email me or Carlos Rueda! --j Dear Jonathan, how abo

Re: [GRASS-user] Error using v.in.ogr to load a shapefile: any clue?

2008-03-10 Thread Nikos Alexandris
On Mon, 2008-03-10 at 15:52 +, Corrado wrote: > Dear friends, > > I get this error when trying to read the Scotland.shp shape file using > v.in.ogr. Please, not that I have the proper permissions on the databse. Do you use Ubuntu? If no disregard whatever I am writing. If yes there is "str

[GRASS-user] Wich file format to "transport" (raster/ vector) data from a GRASS db in to another computer's GRASS db? Why export vector data in shapefile for starspan/ OpenEV?

2008-03-10 Thread Nikos Alexandris
Dear all, it's some months now that I am trying to learn GRASS-GIS and I wonder 1. if one needs to copy some GRASS raster data from his data base in another computer's GRASS data base (same coordinate system of course), then how? Where do for example the history files go? I understand (I think)

Re: [GRASS-user] Wich file format to "transport" (raster/ vector) data from a GRASS db in to another computer's GRASS db? Why export vector data in shapefile for starspan/ OpenEV?

2008-03-10 Thread Nikos Alexandris
Pardon, the question is "Which" ! No, I am not hunting any wich ;-P ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

RE: [GRASS-user] Wich file format to "transport" (raster/ vector) datafrom a GRASSdb in to another computer's GRASS db? Why export vector data inshapefile for starspan/ OpenEV?

2008-03-10 Thread Nikos Alexandris
On Mon, 2008-03-10 at 14:23 -0400, Patton, Eric wrote: > >1.. if one needs to copy some GRASS raster data from his data base in > >another computer's GRASS data base (same coordinate system of course), > >then how? Where do for example the history files go? > > See r.pack/r.unpack in the Grass A

Re: [GRASS-user] newbie category question..

2008-03-10 Thread Nikos Alexandris
On Mon, 2008-03-10 at 15:50 -0700, [EMAIL PROTECTED] wrote: > Hi - > Hi Chris! > I'm trying to do something I thought was fairly simple, but eludes me... it took me a while till I understand how to do what other people told me... on a similar problem. But since then I know where to look at least

[GRASS-user] Off-Topic: Is there a database with historic (rough) precipitation/ temperature data on (daily?) weekly basis for Europe?

2008-03-11 Thread Nikos Alexandris
I need to check the weather conditions for specific dates over an area in Greece. Are there any rough data? Or, even better, anything satellite-derived? By rough I mean both the spatial and the temporal scale. Thank you in advance, Nikos ___ grass-us

Re: [GRASS-user] Error using v.in.ogr to load a shapefile: any clue?

2008-03-11 Thread Nikos Alexandris
On Tue, 2008-03-11 at 10:11 +, Corrado wrote: > Dear Tom, > > your analysis was absolutely right. I modified the name of the field using > cname, and it worked. Wow! Thanks for the details Tom! ___ grass-user mailing list grass-user@lists.osgeo.o

Re: [GRASS-user] Error using v.in.ogr to load a shapefile: any clue?

2008-03-11 Thread Nikos Alexandris
On Tue, 2008-03-11 at 09:56 +, Corrado wrote: > Dear friends, > > yes I use Ubuntu (7.10). Dear Corrado, can you confirm, if you have some free time, Ubuntu's "strange" behaviour concerning the directory permissions? Can you create as a single user LOCATION(s) by using an EPSG code or an al

Re: [GRASS-user] the area of a polygon?

2008-03-11 Thread Nikos Alexandris
On Tue, 2008-03-11 at 15:07 +, Corrado wrote: > Dear friends, > > how do you measure the area of a polygon in grass? Hi! An example for hectares (read the manual of v.report for more) v.report map=YourPolygonVector option=area units=h Or use the "Query" button on the Map Display of your GI

Re: [GRASS-user] the area of a polygon?

2008-03-11 Thread Nikos Alexandris
On Tue, 2008-03-11 at 15:35 +, Corrado wrote: > 2) the query button returns the length of the boundary, but not the area. If you are a bit more careful (given that your vector data are closed polygons -- check with v.clean) and click inside the polygon it will report you the area as well. It

Re: [GRASS-user] Unable to import some raster and vector type maps

2008-03-11 Thread Nikos Alexandris
On Tue, 2008-03-11 at 15:17 -0300, Eric & Elga wrote: > Good afternoon. > Hi! > After having created a new project location, I try to import SRTM3 About SRTM: I don't know from where you have your srtm data. You can grab srtm3 tiles also from http://srtm.csi.cgiar.org/ (look for the SRTM Data S

Re: [GRASS-user] Unable to import some raster and vector type maps

2008-03-11 Thread Nikos Alexandris
On Tue, 2008-03-11 at 20:49 +0100, Marco Lechner wrote: > why not grabbing it from ftp://e0srp01u.ecs.nasa.gov/srtm/version2/SRTM3 > and using r.in.srtm directly? Marco, this is version2 which I think is not corrected for "wholes"! Version3 is provided in the link I copy-pasted in my previous e

Re: [GRASS-user] Unable to import some raster and vector type maps

2008-03-11 Thread Nikos Alexandris
On Tue, 2008-03-11 at 16:06 -0300, Eric & Elga wrote: > @ nikos : The problem with CSI data is that they are not freely > reusable : I > create maps, mostly topographic ones, as hobby for the Wikipedia > community > where all media have to be placed under a free license, i.e. which can > also > be

Re: [GRASS-user] GRASS-6.2.3: Compilation problems with NVIZ

2008-03-11 Thread Nikos Alexandris
On Tue, 2008-03-11 at 22:09 +0100, Markus Neteler wrote: > Roberto. > > it doesn't find GL/gl.h and others which means that you didn't yet install > the development package for OpenGL. > > Markus Also, if you still have trouble after installing OpenGL stuff maybe you need to do following: (lo

Re: [GRASS-user] Off-Topic: Is there a database with historic (rough) precipitation/ temperature data on (daily?) weekly basis for Europe?

2008-03-11 Thread Nikos Alexandris
On Tue, 2008-03-11 at 22:25 +0100, Markus Neteler wrote: > > Myself, I am working on reconstructing time series from MODIS LST > data... coming soon :) I am doing that on a cluster since it still needs > heavy computational resources. > > Markus Great! That's what I was looking for ;D But... it

Re: [GRASS-user] Off-Topic: Is there a database with historic (rough) precipitation/ temperature data on (daily?) weekly basis for Europe?

2008-03-11 Thread Nikos Alexandris
On Wed, 2008-03-12 at 00:03 +0100, Nikos Alexandris wrote: > But... it doesn't include Peloponnese (South Greece) ;-( Ooops... I was too quick. Yes, there is a weather station in Peloponnese: Methoni. It's in the southern tip of the peninsula. It's better tha

Re: [GRASS-user] db.connect database= parameter is null

2008-03-12 Thread Nikos Alexandris
On Wed, 2008-03-12 at 11:14 -0400, Patton, Eric wrote: > I created a new location using today's svn source, and noticed that > db.connect doesn't have its database parameter pre-populated with > $GISDBASE/$LOCATION_NAME/$MAPSET/dbf as it used to; it is now blank. Possible > bug? Would it possib

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

2010-06-27 Thread Nikos Alexandris
On Tuesday 01 of June 2010 05:46:22 Glynn Clements wrote: > Markus Neteler wrote: > > >> # faster/ easier way: use of the "grass.region()" function > > >> rows = int(grass.region()['rows']) > > >> cols = int(grass.region()['cols']) > > > > > > In 7.0, these fields are already integers;

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

2010-06-27 Thread Nikos Alexandris
Nikos Alexandris wrote: > > > > >> # faster/ easier way: use of the "grass.region()" function > > > > >> rows = int(grass.region()['rows']) > > > > >> cols = int(grass.region()['cols'

Re: [GRASS-user] using mapcalc in a python script

2010-06-30 Thread Nikos Alexandris
Ned Horning wrote: > I am working on converting a shell script to python and ran into a > problem I haven't been able to figure out using the r.mapcalc command. > Can someone let me know how to write the following command using python. > The command creates a GRASS MASK layer: > > r.mapcalc "MASK=

Re: [GRASS-user] global radiation calculated with r.sun seems to be very high

2010-07-15 Thread Nikos Alexandris
Hi Frank. Could please help me a bit (...two questions below) Frank Reekers wrote: > the global radiation, calculated with r.sun, seems to be very high in > comparison to PVGIS (Photovoltaic Geographical Information System). > - r.sun for 14. Feb: ~2363 Wh/m² per day > - PVGIS: 1330 Wh/m² per da

Re: [GRASS-user] global radiation calculated with r.sun seems to be very high

2010-07-16 Thread Nikos Alexandris
Frank Reekers wrote: > I think, that's not a back-of-the-envelope calculation, it is more a > good way to verify things and not believe everything... > But, back to my problem: Yes, you are right. PVGIS values are real-sky > values => http://re.jrc.ec.europa.eu/pvgis/solres/solrespvgis.htm. > So,

[GRASS-user] [off-topic] Thank you for r.sun-script(s) found in the wiki

2010-07-16 Thread Nikos Alexandris
Hamish, I would like to thank you (so much) on behalf of... me and a colleague for the "g.linke..." python script. You saved our day(s) with this :-) Nikos ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/g

Re: [GRASS-user] create a mask to exclude plate area

2010-07-19 Thread Nikos Alexandris
Etienne DELAY wrote: > Bonjour Bonjour Monsieur, mon francais est terrible :-O. Si'll vous plait regardez ci- apres (en anglais). > Je travaille actuellement sur des problématiques liées à la viticulture > de montagne, qui répond a des critères bien précis (altitude supérieure > a 500, ou pente s

Re: [GRASS-user] List of existing values

2010-07-21 Thread Nikos Alexandris
Nikos Dumakis: > > In my case I have not more than 1200 different cell values. If I do : > > r.stats -1 input=data > > I obtained a list of all pixel values but what I am lookinf is for the > > unique values (not repeated). Martin Landa wrote: > as mentioned in Hamish's response, use combination

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

2010-07-21 Thread Nikos Alexandris
Nikos Alexandris wrote: > > > > >> rows = int(grass.region()['rows']) > > > > >> cols = int(grass.region()['cols']) Glynn: > > > > > In 7.0, these fields are already integers; r40555 should be > > > > >

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 val

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": > > >

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] 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

[GRASS-user] Minimum number of pixels required by i.gensigset (i.smap)

2010-07-23 Thread Nikos Alexandris
I am trying to find an answer to the question of how many "pixels/per training object" are at least required for i.gensigset (and successively i.smap) to work. I could not find the answer in the (Bouman and Shapiro, 1994) paper. Among my notes I have "if the number of pixels (of a training objec

Re: [GRASS-user] create a mask to exclude plate area

2010-07-23 Thread Nikos Alexandris
Etienne, if the main difficulty is about how to combine two criteria in one "r.mapcalc" command, then, I recommend to go through the r.mapcalc manual [1]. There are many examples. Also read the old (but very good) tutorial [2] (which is referenced in the manual). Nikos --- [1]

Re: [GRASS-user] Re: Using shell and perl scripts via a python script in windows, or better change to Linux?

2010-07-23 Thread Nikos Alexandris
On Friday 23 of July 2010 11:58:54 sonja1 wrote: > Maybe I gave up to early, but my solution is the change to Linux. > I finally got my python scripts, which call the Geomhydas shell and perl > scripts, to work. > I wrote some documentation: > > How to run Python/Shell/Perl scripts in combination

Re: [GRASS-user] Copy a vectormap

2010-07-26 Thread Nikos Alexandris
gutle wrote: > Is there any possibility to copy a vector-map with only selected columns? > > E.g. I have a vectormap "Buildings" with the columns area, id, permeter, > cat, etc. and I want to have a copy from this vectormap with only the > columns id and area Hi gutle. You mean you want to avoi

Re: [GRASS-user] Re: Copy a vectormap

2010-07-26 Thread Nikos Alexandris
gutle wrote: > yes. i want to avoid using "g.copy + v.db.dropcol". > the problem is, I have too much unnecessery column after all Gis > operations. such as a_a_cat, a_b_cat and so on... I see. I guess it is not possible (currently?) to avoid using "v.db.dropcol" and/or "v.db.renamecol". Nikos __

Re: [GRASS-user] v.in.ogr suddenly slow?

2010-07-26 Thread Nikos Alexandris
Giovanni Manghi wrote: > > Hi all, > > > > I just made a fresh install on my pc, Ubuntu 10.04 and GRASS 6.4 rc6 > > from the Ubuntugis repository. > > > > It seems to me that v.in.ogr is quite slower if compared with my old > > installation (6.4 rc5 on Ubuntu 9.04) > > > > for example this > >

Re: [GRASS-user] v.in.ogr suddenly slow?

2010-07-26 Thread Nikos Alexandris
5 input > > polygons. Import time was reduced to 4 minutes when snapping > > boundaries during import. With snapping during import and grass7, it's > > down to 1 min 46 sec and the result is topologically clean. > > I would rather use another world boundary layer, e.g. UN

Re: [GRASS-user] v.in.ogr suddenly slow?

2010-07-27 Thread Nikos Alexandris
Nikos Alexandris wrote: > > in grass64 with snapping=0.1: > > time v.in.ogr dsn=TM_WORLD_BORDERS-0.3.shp > > out=tm_world_borders_03_snapped_01 snap=0.1 Markus Metz wrote: > TM_WORLD_BORDERS-0.3 is dirty but not that dirty, snap=0.01 is in > this case a large enough

Re: [GRASS-user] Cluster whit area?

2010-07-27 Thread Nikos Alexandris
Etienne DELAY: > I work with GRASS GIS, and arrives on time where I need to do a bit of > statistics (aggregated plots clustered) so I turn to R. but I'm a noob, > in R to... Does someone can give me a hand for my fist R experience? I > installed R ... I find a module that area to do what I want :

Re: [GRASS-user] v.in.ogr suddenly slow?

2010-07-27 Thread Nikos Alexandris
Nikos Alexandris: > > > --%<--- > > > 3775 input polygons > > > Total area: 1.480245e+14 (4647 areas) > > > Overlapping area: 0.00e+00 (0 areas) > > > Area without category: 1.139301e+12 (1628 areas) > > > > > >

Re: [GRASS-user] r.sun2: "Wh" or "kWh"?

2010-07-27 Thread Nikos Alexandris
Nikos: > > r.mapcalc global_daily_avg_kJ="int(global_daily_avg * 3,6)" Hamish wrote: > does r.mapcalc support comma as decimal sep or is that "3,6" a typo? (just a "bit" late this reply)obviously a typo! Nikos :-) ps: I like it when past messages/threads are really easy to read and understand

Re: [GRASS-user] Signature file structure

2010-07-28 Thread Nikos Alexandris
Pedro Roma wrote: > I have runned i.gensig and I would like to know where can I find some > information regarding the strucutre of the file? Just to know which value > refers to what From the "g.manual i.gensig": "...the resultant signature file (containing the means and covariance matrices) for

Re: [GRASS-user] Signature file structure

2010-07-28 Thread Nikos Alexandris
On Wednesday 28 of July 2010 21:22:08 Nikos Alexandris wrote: > Perhaps just reading the created signature (text) files and identifying > the mean's and variance/covariance matrices is enough. Didn't have a look yet but the "Mean's ... matrices" is I guess wrong

Re: [GRASS-user] Signature file structure

2010-07-29 Thread Nikos Alexandris
Pedro: > Ok as far as I can see it's > Category ID (class) > Mean vector (each value is the average for the category in each band) > > Var(b1;b1) > Cov(b1,b2) Var(b2;b2) > Cov(b1,b3) Cov(b2,b3) Var(v3,v3) > > it's this? It would take me to perform a test with numbers and see what is what exac

Re: [GRASS-user] Retrieve pixel position

2010-08-03 Thread Nikos Alexandris
António Rocha wrote: > I have retriecve a Pixel coordinates but instead of lat lon I want > row/col. As far as I can see, r.what only retrieves Lat/lon not row/col. > How can I do this? Check "r.stats -x" (or "-xg" for both). Cheers, Nikos ___ grass-user

Re: [GRASS-user] Retrieve pixel position

2010-08-03 Thread Nikos Alexandris
(forgot to cc to the list) António: > Thanls for the tip. But isn't there any other more "interactive" way > (like r.what?) I thought you have a points vector map and want to retrieve row,col for each point. Maybe "d.what.rast -c" is what you are looking for then? Cheers, Nikos

Re: [GRASS-user] Retrieve pixel position

2010-08-03 Thread Nikos Alexandris
On Tuesday 03 of August 2010 19:11:27 Nikos Alexandris wrote: > (forgot to cc to the list) > > António: > > Thanls for the tip. But isn't there any other more "interactive" way > > (like r.what?) > > I thought you have a points vector map and want t

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

2010-08-03 Thread Nikos Alexandris
Hi! 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 the following format: ... 7839

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 ca

Re: [GRASS-user] 1-page grass overview

2010-08-06 Thread Nikos Alexandris
Hamish wrote: [...] > [4] > http://download.osgeo.org/livedvd/4.0-rc6/osgeolive-docs/quickstart/grass_ > quickstart.html I would only add something about the powerful i.smap in the quickstart page. Cheers, Nikos ___ grass-user mailing list grass-user@l

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

2010-08-06 Thread Nikos Alexandris
On Wednesday 04 of August 2010 15:20:58 schorschli wrote: > 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 lis

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

2010-08-06 Thread Nikos Alexandris
Nikos Alexandris: > > distances = grass.read_command("v.distance",\ > > flags = 'pa',\ > > _from = reference_points_map,\ > > to = lowres_vector_grid,\ > > column = gridcell_column,\ > > to_column = "cat",\ > > upload =

Re: [GRASS-user] Clipping shapefile

2010-08-06 Thread Nikos Alexandris
On Friday 06 of August 2010 10:57:25 Giacomo Piva wrote: > Hi all, > I have a new question. > I need to clip a shapefile using a bounding box, can I do that with grass? Giacomo, have a look at: Cheers, Nikos

Re: [GRASS-user] List of existing values

2010-08-07 Thread Nikos Alexandris
On Friday 23 of July 2010 08:58:09 Nikos Alexandris wrote: > Martin Landa wrote: > > > > > as mentioned in Hamish's response, use combination of > > > > > `sort` and `uniq` > > > > > r.starts -1 input=data | sort | uniq > > Nikos

Re: [GRASS-user] Error in a script that calls g.mapset

2010-08-10 Thread Nikos Alexandris
Helena Herrera wrote: > hello Hi! > I'm sorry for bothering you but I have sent this question last week and I > didn't get any answer. > > I have a Python Script (for GRASS6.4) where I run this: > grass.run_command("g.mapset", mapset = t_mapset) > (to change active mapset) > But I get all this

Re: [GRASS-user] Merging with Overlap

2010-08-10 Thread Nikos Alexandris
Monica Buescu wrote: > Hello, > > I've been using GRASS spatial merging tool (r.patch) with success but now I > have one small problem: My tiles have a small overlap area. Is there any > module to merge tiles but with methodologies to overlap these tiles (mean, > maximum, etc)? > > Thanks > Moni

<    1   2   3   4   5   6   7   8   9   10   >