[GRASS-dev] [GRASS GIS] #805: i.spectral in GRASS6.4

GRASS GIS trac at osgeo.org
Fri Jun 28 05:08:08 PDT 2013


#805: i.spectral in GRASS6.4
----------------------------------+-----------------------------------------
 Reporter:  arocha                |       Owner:  grass-dev@…              
     Type:  defect                |      Status:  new                      
 Priority:  normal                |   Milestone:  6.4.3                    
Component:  wxGUI                 |     Version:  6.4.0 RCs                
 Keywords:  i.spectral, wingrass  |    Platform:  All                      
      Cpu:  x86-32                |  
----------------------------------+-----------------------------------------

Comment(by hamish):

 The original --interface-description problem on wingrass seems fixed now.

 Xmons are not available in Wingrass, so picking interactively won't work
 there anyway even if gnuplot was installed. I've now added a test in
 devbr6 (r56946) to bail out early if no Xmon is open.

 Gnuplot is not shipped with our Wingrass package, so the module won't work
 there.
 If you try to run it you hit that error message first, asking you to
 install.

 BUT:
  'd.mon -L' as a command layer in the wxGUI shows all monitors as
 running?!
 same for "grass.run_command('d.mon', flags = 'L')" from the Python shell
 tab.
 ??

 I don't know of a good way for the script to test if it was called from
 the wxGUI or not (especially after laundering through g.parser), so the
 solution probably needs to be in menudata.xml.

 trying MarkusN's example from comment:12 works fine for me in Linux from
 the command line. it also doesn't lock up from the wxGUI _without_ the -m
 flag, even without an Xmon open. trying from the wxGUI on linux (with an
 Xmon open) with the -m flag causes the zombie mayhem.  Perhaps in
 menudata.xml the handler for i.spectral needs to be changed to `OnXTerm`
 instead of `OnMenuCmd`? Another idea is to write a wrapper --script for
 the wxGUI menu entry which forces non-interactive mode.

 In addition to a number of other cleanups, I've also just added a new
 east_north= option in devbr6 to allow non-interactive operation (so no
 Xmonitor needed), and a couple new output graphics formats. I'll sync
 those with trunk asap.

 I'm not sure how much to backport to 6.4.3, at least the group= input
 option is totally broken there since the i.group output text changed (but
 luckily the new i.group -g flag makes the parsing much easier).



 Hamish

 ps- interestingly enough, while reading through the Gnuplot manual I
 noticed that a "grass" graphics terminal exists for gnuplot which will
 render your plots directly to a GRASS Xmonitor. It wasn't built into my
 copy though so I couldn't test it.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/805#comment:13>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list