[GRASS-dev] d.correlate not working

Anna Kratochvílová kratochanna at gmail.com
Mon Jan 14 01:28:28 PST 2013


On Mon, Jan 14, 2013 at 5:46 AM, Rashad M <mohammedrashadkm at gmail.com> wrote:
> when a command is issued and if d.mon wx monitor is working it should be
> routed in a different way.
>
> I noticed when d.correlate command is issued with wx  montior ON, the
> command is not properly parsed.
>
> could you tell when a command is issued within grass shell with Gui ON,
> where is get parsed?
>
> so that i could try for a patch :)

It is strange that instead of d.correlate, there is written d.graph in
the command file used by d.mon (d.correlate calls d.graph). But I
don't know where the command is written into the command file (perhaps
g.parser?).

Anna

>
>
> On Mon, Jan 14, 2013 at 10:04 AM, Rashad M <mohammedrashadkm at gmail.com>
> wrote:
>>
>> it worked using command layer
>>
>> There should be some an option to use d.correlate in the other way too
>> d.mon wx0
>> d.correlate .....
>>
>>
>> On Sun, Jan 13, 2013 at 9:49 PM, Anna Kratochvílová
>> <kratochanna at gmail.com> wrote:
>>>
>>> On Sat, Jan 12, 2013 at 10:43 AM, Rashad M <mohammedrashadkm at gmail.com>
>>> wrote:
>>> > using:
>>> > grass  7.0
>>> > revision:54601
>>> >
>>> >
>>> > d.correlate is not working
>>> >
>>> > To reproduce
>>> > d.mon wx0
>>> > d.correlate map=lsat5_1987_10,lsat5_1987_20
>>> >
>>> > error:
>>> >
>>> > GRASS_INFO_WARNING(25298,1): Illegal filename
>>> > <landsat,lsat5_1987_20 at landsat>. Character <,> not allowed.
>>> >
>>> > GRASS_INFO_END(25298,1)
>>> >
>>> > GRASS_INFO_WARNING(25314,1): Illegal filename
>>> > <landsat,lsat5_1987_20 at landsat>. Character <,> not allowed.
>>> >
>>> > GRASS_INFO_END(25314,1)
>>> > Traceback (most recent call last):
>>> >   File
>>> > "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_misc.py",
>>> > line 1358, in Notify
>>> >     self.notify()
>>> >   File "/usr/local/grass-7.0.svn/etc/gui/wxpython/mapdisp/main.py",
>>> > line
>>> > 290, in watcher
>>> >     self.mapFrm.GetMap().GetLayersFromCmdFile()
>>> >   File "/usr/local/grass-7.0.svn/etc/gui/wxpython/mapdisp/main.py",
>>> > line
>>> > 102, in GetLayersFromCmdFile
>>> >     self.AddLayer(ltype = ltype, command = cmd, active = False, name =
>>> > name)
>>> >   File "/usr/local/grass-7.0.svn/etc/gui/wxpython/core/render.py", line
>>> > 1042, in AddLayer
>>> >     active = active, hidden = hidden, opacity = opacity)
>>> >   File "/usr/local/grass-7.0.svn/etc/gui/wxpython/core/render.py", line
>>> > 339,
>>> > in __init__
>>> >     active, hidden, opacity)
>>> >   File "/usr/local/grass-7.0.svn/etc/gui/wxpython/core/render.py", line
>>> > 88,
>>> > in __init__
>>> >     self.SetType(ltype)
>>> >   File "/usr/local/grass-7.0.svn/etc/gui/wxpython/core/render.py", line
>>> > 268,
>>> > in SetType
>>> >     raise GException(_("Unsupported map layer type '%s'") % ltype)
>>> > core.gcmd.GException: Unsupported map layer type 'None'
>>> >
>>> >
>>>
>>> Some of d. commands are not supported yet in wxGUI but at least you
>>> can try to add them as a command layer in Layer Manager, it is in the
>>> 'Add grid or vector overlays' (perhaps it should be 'Add miscellaneous
>>> overlays').
>>>
>>> Anna
>>>
>>> > --
>>> > Regards,
>>> >    Rashad
>>> >
>>> > _______________________________________________
>>> > grass-dev mailing list
>>> > grass-dev at lists.osgeo.org
>>> > http://lists.osgeo.org/mailman/listinfo/grass-dev
>>
>>
>>
>>
>> --
>> Regards,
>>    Rashad
>
>
>
>
> --
> Regards,
>    Rashad


More information about the grass-dev mailing list