Re: [GRASS-user] Create_iwave.py script error for template creation -i.atcorr module-reg

2018-10-24 Thread Markus Metz
On Thu, Oct 25, 2018 at 3:02 AM kameswari devi  wrote:
>
> Grass6.4.4 Used for this.

If you want to use i.atcorr, you should use GRASS 7.4 or higher because
quite a few bugs have been fixed in the meantime.

Markus M
>
> On Thu 25 Oct, 2018, 01:38 Markus Metz, 
wrote:
>>
>>
>>
>> On Wed, Oct 24, 2018 at 8:28 AM kameswari devi 
wrote:
>> >
>> > Please check the file i have used and error received as an
>> > attachment.I tried to interpolate using Create_iwave.py script for
>> > i.atcorr module but errors are observed. please suggest me thank you
>>
>> Using create_iwave.py in GRASS 7.7,
>>
>> python create_iwave.py sensors_csv/testint_B131to142.csv
>>
>> works fine without errors. Which GRASS version are you using?
>>
>> Markus M
>> >
>> > --
>> > Regards
>> > kameswari devi P
>> > ___
>> > grass-user mailing list
>> > grass-user@lists.osgeo.org
>> > https://lists.osgeo.org/mailman/listinfo/grass-user
>
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Create_iwave.py script error for template creation -i.atcorr module-reg

2018-10-24 Thread kameswari devi
Grass6.4.4 Used for this.

On Thu 25 Oct, 2018, 01:38 Markus Metz, 
wrote:

>
>
> On Wed, Oct 24, 2018 at 8:28 AM kameswari devi 
> wrote:
> >
> > Please check the file i have used and error received as an
> > attachment.I tried to interpolate using Create_iwave.py script for
> > i.atcorr module but errors are observed. please suggest me thank you
>
> Using create_iwave.py in GRASS 7.7,
>
> python create_iwave.py sensors_csv/testint_B131to142.csv
>
> works fine without errors. Which GRASS version are you using?
>
> Markus M
> >
> > --
> > Regards
> > kameswari devi P
> > ___
> > grass-user mailing list
> > grass-user@lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/grass-user
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Create_iwave.py script error for template creation -i.atcorr module-reg

2018-10-24 Thread Daniel Victoria
I looks like you have a mixed python installation, with some libraries
coming from ArcGIS and others from your grass installation. Not sure that's
a problem but, if it works on Markus M computer, it's worth checking it out.

On Wed, Oct 24, 2018 at 5:08 PM Markus Metz 
wrote:

>
>
> On Wed, Oct 24, 2018 at 8:28 AM kameswari devi 
> wrote:
> >
> > Please check the file i have used and error received as an
> > attachment.I tried to interpolate using Create_iwave.py script for
> > i.atcorr module but errors are observed. please suggest me thank you
>
> Using create_iwave.py in GRASS 7.7,
>
> python create_iwave.py sensors_csv/testint_B131to142.csv
>
> works fine without errors. Which GRASS version are you using?
>
> Markus M
> >
> > --
> > Regards
> > kameswari devi P
> > ___
> > grass-user mailing list
> > grass-user@lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/grass-user
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Create_iwave.py script error for template creation -i.atcorr module-reg

2018-10-24 Thread Markus Metz
On Wed, Oct 24, 2018 at 8:28 AM kameswari devi  wrote:
>
> Please check the file i have used and error received as an
> attachment.I tried to interpolate using Create_iwave.py script for
> i.atcorr module but errors are observed. please suggest me thank you

Using create_iwave.py in GRASS 7.7,

python create_iwave.py sensors_csv/testint_B131to142.csv

works fine without errors. Which GRASS version are you using?

Markus M
>
> --
> Regards
> kameswari devi P
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

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 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_name. The copy is well displayed but this creates a 
copy what is not very convenient...


g.rename

?


Nikos,

g.rename works too. But it's not more convenient because I need to 
keep my raster in his original name.


Cheers,

Frank



Frank,

apologies, but I think I missed the point of what you need to do. Is the
"copy" not convenient because of "wasting" space?  If yes, here another
suggestion then:

https://grasswiki.osgeo.org/wiki/LANDSAT#Hint:_Minimal_disk_space_copies

In Python, something like:

r.reclass(
   input=input_raster,
   output=output_raster,
   rules='-',
   stdin='*=*',
   verbose=False,
   quiet=True)

Nikos

Thanks Nikos, but it's not the point. I just need to add to the display 
tree rasters I calculate with python script without G_OPT_OUTPUT because 
I want to name it by script (the name comes from different attributes of 
vector maps). But, it looks that only G_OPT_OUTPUT adds the check box 
"add tree layer" on the script GUI.


Frank

___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] ps.map

2018-10-24 Thread Frank David

Hello all,

I notice that the same command does not produce the same result if I run 
it from the shell or if I use the ps.map GUI.


From GUI, le scale/region of ps file is correct, and if I run from the 
shell, the region/scale setting is not respected


the psmap file begin with the region settings :

# timestamp: 2018-10-23 12:18
# location: France_L93
# mapset: volkswind_beaurevoir
# page orientation: Portrait
# g.region vector=WOLKSWIND_Beaurevoir_AEE@volkswind_beaurevoir

Is anybody notice that ?

Regards,

Frank


Le 23/10/2018 à 13:35, Frank David a écrit :

Hello,

I can't succeed to scale my raster as I want in the map window with 
ps.map


I've tried :

...
# g.region vector=max_area_vector_map@my_dataset
maploc 1.0 1.0
...

or

...
# g.region n=7030981.0 s=6950949.0 e=755872.0 w=691504.0 rows=1067 
cols=858

maploc 1.0 1.0
...

with and without scale instruction like "scale 1:30", and The 
scaling when I use the command line psmap is always the same...


One thing is strange, when i use g.gui.psmap it works (the map scale 
is fine), but if I try to use the exported instruction file from 
g.gui.psmap with command line "ps.map in=myfile.txt out=myfile.ps" it 
does not export the same scale (see attached file). Like if 
g.gui.psmap do something witch is not writing in the instruction file??


Any idea from where I'm wrong ?

Thank you for your help.

Frank





___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

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 I want to 
set his name by the script ? I succeed with g.copy my_raster_name 
to output_raster_name. The copy is well displayed but this creates 
a copy what is not very convenient...


g.rename

?


Nikos,

g.rename works too. But it's not more convenient because I need to 
keep my raster in his original name.


Cheers,

Frank



Frank,

apologies, but I think I missed the point of what you need to do. Is the
"copy" not convenient because of "wasting" space?  If yes, here another
suggestion then:

https://grasswiki.osgeo.org/wiki/LANDSAT#Hint:_Minimal_disk_space_copies

In Python, something like:

r.reclass(
   input=input_raster,
   output=output_raster,
   rules='-',
   stdin='*=*',
   verbose=False,
   quiet=True)

Nikos

--
Nikos Alexandris | Remote Sensing & Geomatics
GPG Key Fingerprint 6F9D4506F3CA28380974D31A9053534B693C4FB3 


signature.asc
Description: PGP signature
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

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 succeed with g.copy my_raster_name to 
output_raster_name. The copy is well displayed but this creates a 
copy what is not very convenient...


g.rename

?


Nikos,

g.rename works too. But it's not more convenient because I need to keep 
my raster in his original name.


Cheers,

Frank

___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

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_name. The copy is well displayed but this creates a copy 
what is not very convenient...


g.rename

?


signature.asc
Description: PGP signature
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

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

2018-10-24 Thread Frank David

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_name. The copy is well displayed but this creates a copy 
what is not very convenient...


Cheers,

Frank

Le 24/10/2018 à 11:05, Stefan Blumentrath a écrit :


Hi Frank,

Using GRASS standard parser options is a good practice. Unfortunately, 
it does not yet generate the "add to tree layer" check box in the 
AddOn GUI (though I hope that can be added in core though).


You can use e.g. G_OPT_R_OUTPUT and still choose a non-standard 
key-name for the option in your script with a line like this:


#% key: my_option_key_name

Cheers,

Stefan

*From:*Frank David 
*Sent:* onsdag 24. oktober 2018 10:48
*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

Stephan,

Your last message makes me search after G_OPT_OUTPUT. I had never 
realized that this option makes the "add to tree layer" check box 
appear on the script GUI.


All my scripts create rasters without G_OPT_OUTPUT option (because the 
name of output are handled by the script itself) and so, without check 
box. Using d.rast could keep interesting i think in order to select 
witch one should be display or not, but for the moment I can (may be) 
overtake that limitation by using the G_OPT_OUTPUT option (I will see).


Sorry for confusing. And thank you very much for your help. I let you 
see if the ticket you had post is appropriate.


Cheers,

Frank

Le 24/10/2018 à 10:13, Stefan Blumentrath a écrit :

Hi Frank,

My guess is that the GRASS standard parser options [1] (e.g.
G_OPT_R_OUTPUT, G_OPT_R_OUTPUTS,G_OPT_V_OUTPUT, …) would be used
in order to determine what has to be / could be added to the map
display…

But I am no GUI dev, and cannot tell for sure, hope experts on
that part of the code could chime in …

And yes, I agree that a convenient function in the Python library
for adding a map in the currently active layer manager would be a
nice new feature (if it does not exist and I just overlooked it)…

Maybe another ticket?...

Cheers

Stefan

1:
https://grass.osgeo.org/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 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 rasters but only the
few cumulative. If the script GUI have a check box, how to make
the choice between these I want to display and those I don't want ?

For my point of view, the use of d.rast inside the script, as we
do for all other grass command, should be possible, in order to
display what we want to display.

Cheers,

Frank

Le 24/10/2018 à 09:23, Stefan Blumentrath a écrit :

Hei Nikos, Frank,

I opened an enhancement ticket, and asked to activate the "Add
created map(s) into layer tree" also for addons:

https://trac.osgeo.org/grass/ticket/3686. No idea what changes
this would require…

Would that cover your needs, Frank, or do you have a more
interactive use in a python script in mind?

You can start a wx monitor (d.mon wx0) and add a map there,
but I have not found a way to address the currently active Map
Display …

This would probably require additional function(s) in the
Python libraries…?

Maybe this question is better asked at the developer 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 :

* Frank David 
 [2018-10-23 22:06:01 +0200]:




Thank you everybody for y

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

2018-10-24 Thread Frank David

Stephan,

Your last message makes me search after G_OPT_OUTPUT. I had never 
realized that this option makes the "add to tree layer" check box appear 
on the script GUI.


All my scripts create rasters without G_OPT_OUTPUT option (because the 
name of output are handled by the script itself) and so, without check 
box. Using d.rast could keep interesting i think in order to select 
witch one should be display or not, but for the moment I can (may be) 
overtake that limitation by using the G_OPT_OUTPUT option (I will see).


Sorry for confusing. And thank you very much for your help. I let you 
see if the ticket you had post is appropriate.


Cheers,

Frank


Le 24/10/2018 à 10:13, Stefan Blumentrath a écrit :


Hi Frank,

My guess is that the GRASS standard parser options [1] (e.g. 
G_OPT_R_OUTPUT, G_OPT_R_OUTPUTS,G_OPT_V_OUTPUT, …) would be used in 
order to determine what has to be / could be added to the map display…


But I am no GUI dev, and cannot tell for sure, hope experts on that 
part of the code could chime in …


And yes, I agree that a convenient function in the Python library for 
adding a map in the currently active layer manager would be a nice new 
feature (if it does not exist and I just overlooked it)…


Maybe another ticket?...

Cheers

Stefan

1: https://grass.osgeo.org/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 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 rasters but only the few cumulative. 
If the script GUI have a check box, how to make the choice between 
these I want to display and those I don't want ?


For my point of view, the use of d.rast inside the script, as we do 
for all other grass command, should be possible, in order to display 
what we want to display.


Cheers,

Frank

Le 24/10/2018 à 09:23, Stefan Blumentrath a écrit :

Hei Nikos, Frank,

I opened an enhancement ticket, and asked to activate the "Add
created map(s) into layer tree" also for addons:

https://trac.osgeo.org/grass/ticket/3686. No idea what changes
this would require…

Would that cover your needs, Frank, or do you have a more
interactive use in a python script in mind?

You can start a wx monitor (d.mon wx0) and add a map there, but I
have not found a way to address the currently active Map Display …

This would probably require additional function(s) in the Python
libraries…?

Maybe this question is better asked at the developer 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 :

* 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

In the active map display (and respective Layer manager) as d.rast
do it with gui...

Frank

___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

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

2018-10-24 Thread Stefan Blumentrath
Hi Frank,

Using GRASS standard parser options is a good practice. Unfortunately, it does 
not yet generate the "add to tree layer" check box in the AddOn GUI (though I 
hope that can be added in core though).

You can use e.g. G_OPT_R_OUTPUT and still choose a non-standard key-name for 
the option in your script with a line like this:
#% key: my_option_key_name

Cheers,
Stefan

From: Frank David 
Sent: onsdag 24. oktober 2018 10:48
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


Stephan,

Your last message makes me search after G_OPT_OUTPUT. I had never realized that 
this option makes the "add to tree layer" check box appear on the script GUI.

All my scripts create rasters without G_OPT_OUTPUT option (because the name of 
output are handled by the script itself) and so, without check box. Using 
d.rast could keep interesting i think in order to select witch one should be 
display or not, but for the moment I can (may be) overtake that limitation by 
using the G_OPT_OUTPUT option (I will see).

Sorry for confusing. And thank you very much for your help. I let you see if 
the ticket you had post is appropriate.

Cheers,

Frank

Le 24/10/2018 à 10:13, Stefan Blumentrath a écrit :
Hi Frank,

My guess is that the GRASS standard parser options [1] (e.g. G_OPT_R_OUTPUT, 
G_OPT_R_OUTPUTS, G_OPT_V_OUTPUT, ...) would be used in order to determine what 
has to be / could be added to the map display...

But I am no GUI dev, and cannot tell for sure, hope experts on that part of the 
code could chime in ...

And yes, I agree that a convenient function in the Python library for adding a 
map in the currently active layer manager would be a nice new feature (if it 
does not exist and I just overlooked it)...
Maybe another ticket?...

Cheers
Stefan

1: https://grass.osgeo.org/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 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 rasters but only the few cumulative. If the script GUI have a check 
box, how to make the choice between these I want to display and those I don't 
want ?

For my point of view, the use of d.rast inside the script, as we do for all 
other grass command, should be possible, in order to display what we want to 
display.

Cheers,

Frank
Le 24/10/2018 à 09:23, Stefan Blumentrath a écrit :
Hei Nikos, Frank,

I opened an enhancement ticket, and asked to activate the "Add created map(s) 
into layer tree" also for addons:
https://trac.osgeo.org/grass/ticket/3686. No idea what changes this would 
require...

Would that cover your needs, Frank, or do you have a more interactive use in a 
python script in mind?
You can start a wx monitor (d.mon wx0) and add a map there, but I have not 
found a way to address the currently active Map Display ...

This would probably require additional function(s) in the Python libraries...?

Maybe this question is better asked at the developer 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 :
* 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
In the active map display (and respective Layer manager) as d.rast do it with 
gui...

Frank
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

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

2018-10-24 Thread Stefan Blumentrath
Hi Frank,

My guess is that the GRASS standard parser options [1] (e.g. G_OPT_R_OUTPUT, 
G_OPT_R_OUTPUTS, G_OPT_V_OUTPUT, ...) would be used in order to determine what 
has to be / could be added to the map display...

But I am no GUI dev, and cannot tell for sure, hope experts on that part of the 
code could chime in ...

And yes, I agree that a convenient function in the Python library for adding a 
map in the currently active layer manager would be a nice new feature (if it 
does not exist and I just overlooked it)...
Maybe another ticket?...

Cheers
Stefan

1: https://grass.osgeo.org/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 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 rasters but only the few cumulative. If the script GUI have a check 
box, how to make the choice between these I want to display and those I don't 
want ?

For my point of view, the use of d.rast inside the script, as we do for all 
other grass command, should be possible, in order to display what we want to 
display.

Cheers,

Frank
Le 24/10/2018 à 09:23, Stefan Blumentrath a écrit :
Hei Nikos, Frank,

I opened an enhancement ticket, and asked to activate the "Add created map(s) 
into layer tree" also for addons:
https://trac.osgeo.org/grass/ticket/3686. No idea what changes this would 
require...

Would that cover your needs, Frank, or do you have a more interactive use in a 
python script in mind?
You can start a wx monitor (d.mon wx0) and add a map there, but I have not 
found a way to address the currently active Map Display ...

This would probably require additional function(s) in the Python libraries...?

Maybe this question is better asked at the developer 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 :
* 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
In the active map display (and respective Layer manager) as d.rast do it with 
gui...

Frank
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

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

2018-10-24 Thread Frank David

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 rasters but only the few cumulative. If the 
script GUI have a check box, how to make the choice between these I want 
to display and those I don't want ?


For my point of view, the use of d.rast inside the script, as we do for 
all other grass command, should be possible, in order to display what we 
want to display.


Cheers,

Frank

Le 24/10/2018 à 09:23, Stefan Blumentrath a écrit :


Hei Nikos, Frank,

I opened an enhancement ticket, and asked to activate the "Add created 
map(s) into layer tree" also for addons:


https://trac.osgeo.org/grass/ticket/3686. No idea what changes this 
would require…


Would that cover your needs, Frank, or do you have a more interactive 
use in a python script in mind?


You can start a wx monitor (d.mon wx0) and add a map there, but I have 
not found a way to address the currently active Map Display …


This would probably require additional function(s) in the Python 
libraries…?


Maybe this question is better asked at the developer 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 :

* 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

In the active map display (and respective Layer manager) as d.rast do 
it with gui...


Frank

___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

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

2018-10-24 Thread Stefan Blumentrath
Hei Nikos, Frank,

I opened an enhancement ticket, and asked to activate the "Add created map(s) 
into layer tree" also for addons:
https://trac.osgeo.org/grass/ticket/3686. No idea what changes this would 
require...

Would that cover your needs, Frank, or do you have a more interactive use in a 
python script in mind?
You can start a wx monitor (d.mon wx0) and add a map there, but I have not 
found a way to address the currently active Map Display ...

This would probably require additional function(s) in the Python libraries...?

Maybe this question is better asked at the developer 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 :
* 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
In the active map display (and respective Layer manager) as d.rast do it with 
gui...

Frank
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user