Re: [GRASS-user] d.rast in python script

2018-10-24 Thread Frank David
Le 24/10/2018 à 15:14, Nikos Alexandris a écrit : * Frank David [2018-10-24 12:04:43 +0200]: Le 24/10/2018 à 11:58, Nikos Alexandris a écrit : * Frank David [2018-10-24 11:35:07 +0200]: Stephan, The G_OPT_OUTPUT option generate well the check box "add tree layer" in my script GUI. My

Re: [GRASS-user] d.rast in python script

2018-10-24 Thread Nikos Alexandris
* Frank David [2018-10-24 12:04:43 +0200]: Le 24/10/2018 à 11:58, Nikos Alexandris a écrit : * Frank David [2018-10-24 11:35:07 +0200]: Stephan, The G_OPT_OUTPUT option generate well the check box "add tree layer" in my script GUI. My problem, now is how to add the raster output while

Re: [GRASS-user] d.rast in python script

2018-10-24 Thread Frank David
Le 24/10/2018 à 11:58, Nikos Alexandris a écrit : * Frank David [2018-10-24 11:35:07 +0200]: Stephan, The G_OPT_OUTPUT option generate well the check box "add tree layer" in my script GUI. My problem, now is how to add the raster output while I want to set his name by the script ? I succ

Re: [GRASS-user] d.rast in python script

2018-10-24 Thread Nikos Alexandris
* Frank David [2018-10-24 11:35:07 +0200]: Stephan, The G_OPT_OUTPUT option generate well the check box "add tree layer" in my script GUI. My problem, now is how to add the raster output while I want to set his name by the script ? I succeed with g.copy my_raster_name to output_raster_nam

Re: [GRASS-user] d.rast in python script

2018-10-24 Thread Frank David
Blumentrath ; Nikos Alexandris *Cc:* Laurent C. ; GRASS user list ; GRASS developers list (grass-...@lists.osgeo.org) *Subject:* Re: [GRASS-user] d.rast in python script Stephan, Your last message makes me search after G_OPT_OUTPUT. I had never realized that this option makes the "add to tree la

Re: [GRASS-user] d.rast in python script

2018-10-24 Thread Frank David
user list ; GRASS developers list (grass-...@lists.osgeo.org) *Subject:* Re: [GRASS-user] d.rast in python script Hi Stephan, Thank you for the ticket. One thing seems to me important. Some (of my) scripts can generate numerous rasters and one or two cumulative raster. I don't want to a

Re: [GRASS-user] d.rast in python script

2018-10-24 Thread Stefan Blumentrath
@lists.osgeo.org>) <mailto:grass-...@lists.osgeo.org> Subject: Re: [GRASS-user] d.rast in python script Hi Stephan, Thank you for the ticket. One thing seems to me important. Some (of my) scripts can generate numerous rasters and one or two cumulative raster. I don't want to add base

Re: [GRASS-user] d.rast in python script

2018-10-24 Thread Stefan Blumentrath
/grass74/manuals/parser_standard_options.html From: Frank David Sent: onsdag 24. oktober 2018 09:35 To: Stefan Blumentrath ; Nikos Alexandris Cc: Laurent C. ; GRASS user list ; GRASS developers list (grass-...@lists.osgeo.org) Subject: Re: [GRASS-user] d.rast in python script Hi Stephan, Thank

Re: [GRASS-user] d.rast in python script

2018-10-24 Thread Frank David
t (thus I put grass-dev in CC). Cheers Stefan *From:*Frank David *Sent:* onsdag 24. oktober 2018 08:26 *To:* Nikos Alexandris *Cc:* Stefan Blumentrath ; Laurent C. ; GRASS user list *Subject:* Re: [GRASS-user] d.rast in python script Le 23/10/2018 à 23:26, Nikos Alexandris a écrit 

Re: [GRASS-user] d.rast in python script

2018-10-24 Thread Stefan Blumentrath
loper list (thus I put grass-dev in CC). Cheers Stefan From: Frank David Sent: onsdag 24. oktober 2018 08:26 To: Nikos Alexandris Cc: Stefan Blumentrath ; Laurent C. ; GRASS user list Subject: Re: [GRASS-user] d.rast in python script Le 23/10/2018 à 23:26, Nikos Alexandris a écrit : * F

Re: [GRASS-user] d.rast in python script

2018-10-23 Thread Frank David
Le 23/10/2018 à 23:26, Nikos Alexandris a écrit : * Frank David [2018-10-23 22:06:01 +0200]: Thank you everybody for your help. Do you know why a run_command("d.rast"... in a python script is not enough to display a raster ? I don't understand why this command is so different. Display a r

Re: [GRASS-user] d.rast in python script

2018-10-23 Thread Nikos Alexandris
* Frank David [2018-10-23 22:06:01 +0200]: Thank you everybody for your help. Do you know why a run_command("d.rast"... in a python script is not enough to display a raster ? I don't understand why this command is so different. Display a raster map where? Nikos signature.asc Description:

Re: [GRASS-user] d.rast in python script

2018-10-23 Thread Frank David
Thank you everybody for your help. Do you know why a run_command("d.rast"... in a python script is not enough to display a raster ? I don't understand why this command is so different. Frank Le 23/10/2018 à 07:41, Nikos Alexandris a écrit : * Stefan Blumentrath [2018-10-22 08:20:05 +]:

Re: [GRASS-user] d.rast in python script

2018-10-22 Thread Nikos Alexandris
* Laurent C. [2018-10-20 22:06:38 +0100]: Hello Frank, It is not very straightforward, but it is possible. Here is an example on how I do it: import os import grass.script as gscript from grass.pygrass.gis.region import Region # Set general env os.environ['GRASS_RENDER_IMMEDIATE'] = "cairo"

Re: [GRASS-user] d.rast in python script

2018-10-22 Thread Nikos Alexandris
* Stefan Blumentrath [2018-10-22 08:20:05 +]: I think Laurents solution is for rendering maps to file/image. If of interest, see also: https://lists.osgeo.org/pipermail/grass-user/2018-October/079436.html Nikos signature.asc Description: PGP signature

Re: [GRASS-user] d.rast in python script

2018-10-22 Thread Frank David
st *Subject:* Re: [GRASS-user] d.rast in python script Hello Laurent, Thank you for your help. I'm very surprised by the complexity of the way to display a raster. I thought that only d.rast was needed. Other grass command are so simple to use... Anayway, I don't understand wh

Re: [GRASS-user] d.rast in python script

2018-10-22 Thread Stefan Blumentrath
possible)… Kind regards, Stefan From: grass-user On Behalf Of Frank David Sent: søndag 21. oktober 2018 21:35 To: Laurent C. Cc: GRASS user list Subject: Re: [GRASS-user] d.rast in python script Hello Laurent, Thank you for your help. I'm very surprised by the complexity of the way to di

Re: [GRASS-user] d.rast in python script

2018-10-21 Thread Frank David
Hello Laurent, Thank you for your help. I'm very surprised by the complexity of the way to display a raster. I thought that only d.rast was needed. Other grass command are so simple to use... Anayway, I don't understand why you need to set a image width and height. is it pixel number between

Re: [GRASS-user] d.rast in python script

2018-10-20 Thread Laurent C.
Hello Frank, It is not very straightforward, but it is possible. Here is an example on how I do it: import os import grass.script as gscript from grass.pygrass.gis.region import Region # Set general env os.environ['GRASS_RENDER_IMMEDIATE'] = "cairo" os.environ['GRASS_RENDER_FILE_COMPRESSION'] =

[GRASS-user] d.rast in python script

2018-10-19 Thread Frank David
Hello, I wrote some python script and I do not find how to display created rasters. I tried to use d.rast but I believe this command is not designed to be used in python script (no monitor available with d.mon -l). Am I wright ? so how to do ?... Thank you for your help. Frank __