Oh!
Thanks "g" flag combined with .split() worked
Leo
2016-04-06 11:59 GMT+10:00 Anna Petrášová :
> On Tue, Apr 5, 2016 at 9:15 PM, Leonardo Hardtke
> wrote:
> > Thanks Laurent for your help,
> > it worked to split the string to a listbut
On Tue, Apr 5, 2016 at 9:15 PM, Leonardo Hardtke wrote:
> Thanks Laurent for your help,
> it worked to split the string to a listbut now I have to remove the 1
> line(group references the following raster
> maps), line 2 ('-'), the last line
Thanks Laurent for your help,
it worked to split the string to a listbut now I have to remove the 1
line(group references the following raster
maps), line 2 ('-'), the last line ('-') and the
"<>" around the names...
I know how to do that but is this the best way
Hello,
Try the .splitlines() method on the string.
Cheers,
Laurent
El abr. 5, 2016 19:52, "Leonardo Hardtke" escribió:
> Dear list members,
> I know this is more a python question than a GRASS question, bot for sure
> some of you knows the ansewer and is able to help
Dear list members,
I know this is more a python question than a GRASS question, bot for sure
some of you knows the ansewer and is able to help me
I need to get a python list with the maps from a group, like
["map1","map2","map"]
But by using gscript.read_command i get string, not a list.
Hi Bianca,
I see you are using Opensuse - I haven't manage to run the gui for grass7 in
opensuse (both in my desktop and laptop) - it runs fin in windows or linux
mint, but not opensuse
I used the provided installer - how did install 7 in opensuse?
thanks,
Dimitris
--
View this message in
Hi,
2016-04-05 20:59 GMT+02:00 Ken Mankoff :
> Where should this script go, and do you have advice on what language to use?
> My first thought was to make it a bash shell script and put it in ~/bin/ or
> ~/bin/grass/ and add that to GRASS_ADDON_PATH. Is there standard
Hi List,
I'm seeking advice on best-practices for where/how to add minor custom scripts
to GRASS.
For example, I'd like be able to run 1 command and see a raster with legend.
This is almost supported by "d.rast.leg", but it crashes if no monitors have
been started. So I'd like to add
Worked like a charm. Thanks Martin
On Tue, Apr 5, 2016 at 9:00 AM, Martin Landa wrote:
> Hi,
>
> 2016-04-05 13:43 GMT+02:00 Daniel Victoria :
> > I'm using Grass 7.0.3 (64 bit) installed from OSGeo4W package. I noticed
> > that the command line
On Tue, Apr 5, 2016 at 6:31 AM, Bianca Federici
wrote:
> Dear all,
> I'm using GRASS 7.0.3 on OpenSUSE on a teaching room
> and the profile function (launched from the Map Display) doesn't start.
> Moreover the d.legend command plots the legend without the values
>
Hi,
2016-04-05 14:01 GMT+02:00 Martin Landa :
>> yes, add to your apps/grass/grass7.0.3/etc/env.bat file:
>>
>> set GRASS_SH=%OSGEO4W_ROOT%\apps\msys\bin\sh.exe
>
> btw, msys package is not dependency of GRASS 7. You need to install it.
documented in r68212 [1]. Ma
[1]
Hi,
2016-04-05 14:00 GMT+02:00 Martin Landa :
> yes, add to your apps/grass/grass7.0.3/etc/env.bat file:
>
> set GRASS_SH=%OSGEO4W_ROOT%\apps\msys\bin\sh.exe
btw, msys package is not dependency of GRASS 7. You need to install it.
Ma
--
Martin Landa
Hi,
2016-04-05 13:43 GMT+02:00 Daniel Victoria :
> I'm using Grass 7.0.3 (64 bit) installed from OSGeo4W package. I noticed
> that the command line interface that winGrass uses is windowss CMD. But I'd
> like to be able to use some bash shell syntax, like using g.list
Hi list,
I'm using Grass 7.0.3 (64 bit) installed from OSGeo4W package. I noticed
that the command line interface that winGrass uses is windowss CMD. But I'd
like to be able to use some bash shell syntax, like using g.list as input
to r.series. Is there a way to use MSys as the Grass 7 command
Dear all,
I'm using GRASS 7.0.3 on OpenSUSE on a teaching room
and the profile function (launched from the Map Display) doesn't start.
Moreover the d.legend command plots the legend without the values
associated to the colors.
I think it can be due to the binary version for OpenSuse, because the
Ah, yes, sorry for my wrong answer.. too much in R mode (where one would
write it as I mentioned).
It is mentioned here:
https://grasswiki.osgeo.org/wiki/GRASS_Python_Scripting_Library , but not
in a very explicit way I have to say.
On Tue, Apr 5, 2016 at 9:11 AM, Leonardo Hardtke
Thanks Paulo and Sören for helping!
overwrite=True made the trick! Is this documented somewhere and I just
missed it??? Or should I fill a ticket?
Leo
2016-04-05 17:06 GMT+10:00 Sören Gebbert :
> Please try gscript.mapcalc(expr... , overwrite=True)
> Am
Please try gscript.mapcalc(expr... , overwrite=True)
Am 05.04.2016 09:02 schrieb "Leonardo Hardtke" :
> Hi Paulo and thanks for the answer... but It gives me a very similar error
> if I write the full flag (The only difference is TypeError... str if I
> use 'o' and int
Hi Paulo and thanks for the answer... but It gives me a very similar error
if I write the full flag (The only difference is TypeError... str if I
use 'o' and int if I use 'overwrite' )
gscript.mapcalc('endmember_rstr.1 = null()', flags="overwrite")
ERROR: output map exists. To
On 05-04-16 08:53, Leonardo Hardtke wrote:
Dear users,
I am writing a script and I'm having problems with the flags for mapcalc
gscript.mapcalc('endmember_rstr.1 = null()', flags="o")
If you are using GRASS 7.+, the overwrite flag should be written in
full, i.e.,
Dear users,
I am writing a script and I'm having problems with the flags for mapcalc
gscript.mapcalc('endmember_rstr.1 = null()', flags="o")
ERROR: output map exists. To overwrite, use the
--overwrite flag
Traceback (most recent call last):
File "", line 1, in
File
21 matches
Mail list logo