Re: [GRASS-user] Error running g.mapset

2010-10-15 Thread Glynn Clements
Markus Neteler wrote: > > I'm running WinGRASS and I'm obtaining a weird error when I run g.mapset: > > ERROR: Unable to read GIS_LOCK environment variable > > > > How can I fix this in Win GRASS? > > I have seen > > > > Author: glynn > Date: 2010-10-14 02:51:09 -0700 (Thu, 14 Oct

Re: [GRASS-user] Error running g.mapset

2010-10-15 Thread Markus Neteler
On Thu, Oct 14, 2010 at 3:07 PM, katrin eggert wrote: > Greetings > > I'm running WinGRASS and I'm obtaining a weird error when I run g.mapset: > ERROR: Unable to read GIS_LOCK environment variable > > How can I fix this in Win GRASS? I have seen Author: glynn Date: 2010-10-14 02:5

Re: [GRASS-user] Error when running a scrip in Windows-WinGRASS

2010-10-15 Thread Glynn Clements
M.Onur Kurum wrote: > after installing pywin32 for python25, I get this error: > > GRASS 7.0.svn> r.ipso.py >File "C:\Python25\lib\xml\etree\ElementTree.py", line 1254, in close > self._parser.Parse("", 1) # end of data > xml.parsers.expat.ExpatError: no element found: line 1, column

Re: [GRASS-user] Rename Location using dbf driver

2010-10-15 Thread Markus Metz
Nikos Alexandris wrote: > ssefick wrote: >> I would like to rename a couple of locations.  I am using the dbf driver >> for the database.  Can I safely just rename the folder of the location? >> Thanks in advance. > > Stephen, > > I think renaming is not enough. You have to "reconnect" the data bas

Re: [GRASS-user] Rename Location using dbf driver

2010-10-15 Thread Nikos Alexandris
On Friday 15 of October 2010 21:11:13 ssefick wrote: > I would like to rename a couple of locations. I am using the dbf driver > for the database. Can I safely just rename the folder of the location? > Thanks in advance. Stephen, I think renaming is not enough. You have to "reconnect" the data

[GRASS-user] Rename Location using dbf driver

2010-10-15 Thread ssefick
I would like to rename a couple of locations. I am using the dbf driver for the database. Can I safely just rename the folder of the location? Thanks in advance. Stephen Sefick ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.

Re: [GRASS-user] Error when running a scrip in Windows-WinGRASS

2010-10-15 Thread M.Onur Kurum
after installing pywin32 for python25, I get this error: GRASS 7.0.svn> r.ipso.py Traceback (most recent call last): File "C:\GRASS-70-SVN/etc/gui/wxpython/gui_modules/menuform.py", line 2253, in task = grassTask(cmd[0]) File "C:\GRASS-70-SVN/etc/gui/wxpython/gui_modules/menuform.py",

Re: [GRASS-user] Checking if a raster is in current MAPSET

2010-10-15 Thread Glynn Clements
Monica Buescu wrote: > Hum it sounds interesting. How can I parameterize it? I mean, what is the > order of the parameters? > help(grass.find_file) Help on function find_file in module grass.script.core: find_file(name, element='cell', mapset=None) !Returns the output fr

[GRASS-user] v.in.ogr and g.region trouble coodinate system

2010-10-15 Thread Ricardo Rodríguez
hi all, I have a problem with g.region, since by using v.in.ogr, get the coordinates but leaves the geographic projection and the projection of the files is a flat projection. how to maintain not only the coordinates only, but also the coordinate system?. thanks for your attention and help Ric

Re: [GRASS-user] v.db.join script

2010-10-15 Thread Jón Eiríksson
Hi Micha, I have tested v.db.join2 with mysql and it worked. No truncation! I am using GRASS 6.4.0 on macosx. I will think carefully about your workflow suggestion, many, many thanks, Jon > Hi Jon: > > So we're pretty clear that this problem creeps up only on PostgreSQL and > MySQL based vect

Re: [GRASS-user] Checking if a raster is in current MAPSET

2010-10-15 Thread Monica Buescu
Hello Glynn Hum it sounds interesting. How can I parameterize it? I mean, what is the order of the parameters? About the current mapset I'm already using it thanks :) PS- Where can I find a list of avaliable functions in grass.python? Monica On Fri, Oct 15, 2010 at 2:59 PM, Glynn Clements wrote

Re: [GRASS-user] Error when importing data in Windows with Python Script

2010-10-15 Thread Glynn Clements
Luis Lisboa wrote: > I'm running a Python script in WinGRASS6.4 but when I insert as the input > C:\Data\L5216065_06520070405_B70.TIF > > inside Python Script, the input is: > C:DataL5216065_06520070405_B10.TIF > > I realized that, if I, by-hand, i change the \ by / it runs ok. > > is it possi

Re: [GRASS-user] Checking if a raster is in current MAPSET

2010-10-15 Thread Glynn Clements
Monica Buescu wrote: > I have a Py script where I do some processing. But, I want to limit it to > the files that are available in my current mapset. How can I do this? I > mean, I just to evaluate if the input is in the current/active MAPSET? grass.script.find_file() is a wrapper for g.findfile

[GRASS-user] Error when importing data in Windows with Python Script

2010-10-15 Thread Luis Lisboa
Greetings I'm running a Python script in WinGRASS6.4 but when I insert as the input C:\Data\L5216065_06520070405_B70.TIF inside Python Script, the input is: C:DataL5216065_06520070405_B10.TIF I realized that, if I, by-hand, i change the \ by / it runs ok. is it possible to have an automatic pro

Re: [GRASS-user] v.db.join script

2010-10-15 Thread Micha Silver
Hi Jon: So we're pretty clear that this problem creeps up only on PostgreSQL and MySQL based vector layers. I checked in the documentation and both databases will create a *one* char wide column when the CHARACTER type is used without any size. Sqlite uses their "dynamic typing " so any CHAR

[GRASS-user] Type of data to be used in i.maxlik

2010-10-15 Thread Kim Besson
Greetings Before I used i.maxlik I decided to give a look at the code. And I have one question: - the input data, I mean the data inside the group, must it be CELL (integers that range 0-255) or can it be DOUBLE (double precision that range whatever)? I believe that the training_area MUST be inte

Re: [GRASS-user] Grass Script- Implementing a Quadratic Mahalanobis Distance

2010-10-15 Thread Nikos Alexandris
( Pedro, I kindly ask you to keep the discussion on the list - it's very interesting (to me at least) and of wider interest (I guess) as a small challenge for grass. I am sure others can help here. Also, accept my apologies for re-structuring the mail to make it easy to follow for other readers

Re: [GRASS-user] Difference between r.series; r.patch

2010-10-15 Thread Nikos Alexandris
katrin eggert wrote: > About the i.image.mosaic, it was developed by Markus. I gave a look at the > Script (Python version) and I'm not sure what is the advantage of this > script against r.patch. I guess it's the convenience extending the colomap to all to-be-patched maps. Nikos ___

Re: [GRASS-user] Difference between r.series; r.patch

2010-10-15 Thread Nikos Alexandris
katrin eggert wrote: > About the i.image.mosaic, it was developed by Markus. I gave a look at the > Script (Python version) and I'm not sure what is the advantage of this > script against r.patch. I guess it's the convenience extending the colomap to all to-be-patched maps. Nikos ___

Re: [GRASS-user] Changing raster boundaries

2010-10-15 Thread Christian Schwartze
Thanks to all of you, the approach of Micha using g.region and r.mapcalc did the job...! Regards, Christian. -- From: "Nikos Alexandris" Sent: Friday, October 15, 2010 10:50 AM To: Cc: "Micha Silver" ; "Christian Schwartze" Subject: Re: [GRAS

[GRASS-user] Checking if a raster is in current MAPSET

2010-10-15 Thread Monica Buescu
Greetings I have a Py script where I do some processing. But, I want to limit it to the files that are available in my current mapset. How can I do this? I mean, I just to evaluate if the input is in the current/active MAPSET? Thanks Best regards Monica __

Re: [GRASS-user] Difference between r.series; r.patch

2010-10-15 Thread katrin eggert
Hello Nikos Very good point... As far as I can see, the order is relevant in "overlapping pixels". About the i.image.mosaic, it was developed by Markus. I gave a look at the Script (Python version) and I'm not sure what is the advantage of this script against r.patch. Thanks Kat 2010/10/14 Nikos

Re: [GRASS-user] Changing raster boundaries

2010-10-15 Thread Nikos Alexandris
Christian: > >>> how to change the boundaries of a raster map (simply expand the > >>> border) without any automatic modification of map resolution as it > >>> will happen when using "r.region map=.. n= ..s=.. w= e=.." ? > >>> Thanks for some hint. Micha: > >> How about changing the current regi