[GRASS-user] Long post - Remote Sensing - Classifications

mitch_TX reflexeos at yahoo.it
Sat Feb 21 19:08:38 EST 2009


Hi,


> it's in "Raster -> Manage map colors -> Create RGB" 
> 
> there was a wish a while ago to build a menu tree for the commands, not 
> sure if it went anywhere. Maybe something could be built into 
> tools/module_synopsis.sh (add a line of text under each module descr with 
> italicized a->b->c menu location?)

todo. hmmm...

MODULE=r.composite
xml2 < gui/wxpython/xml/menudata.xml | grep -B5000 "$MODULE" | \
   sed -e 's+^/menudata/menubar/menu/++' | tac | \
   grep '/label=\|^label=' | grep -B1000 '^label=' -m 1 | ... ?

may have to call in awk..


> ..thanks, Moritz told me where to find it...my bad!

if you know it's there but can't find it, what hope does a new user have
of learning that it exists? It indicates a non-intuitive placement or
where the label could be improved. This sort of feedback is rather
valuable IMO.

mitch:
I'm generally familiar with getting to know new GIS sw and new GUIs..that
was my bad (probably not too much attention). Commercial sw give you the
possibility to save your "visualization" once loaded (menu file->save
as...and stuff like that)...d.rast doesn't. Maybe I was expecting to find
"composite" as a key word in a first level menu rather that "Create RGB" in
a second level...but again, I wasn't paying too much attention. Once you
start understanding that in the GRASS GUI you have to look for a word
related to the module, you've got it (i.*....it's got to be in that Imagery
menu somewhere, doesn't it?)
I have to be honest though, the amount of mickeys using GRASS is pretty
relevant but, giving its CL nature (virtually everything could be done just
typing), this comment doesn't really make sense (unless the direction is
really toward a usable GUI as I read in a paper somewhere).

Hamish:
> > I would say "mitigated" not "corrected". The imagery modules generally 
> > still don't like to look at maps in @othermapsets, and generally don't
> > like @currentmapset tacked on map names either. But hopefully it breaks
> > less now and exits with an understandable error message.
> > The imagery libs need some TLC.
>
> Are you saying that it's not a matter of version?
no. it should be better in 6.4. Just that even with the new fixes the
imagery modules (library) are still not as solid as the raster modules
in this regard.

> Would I have the same problem with the 6.4?
I don't know. Hopefully it is fixed, but it might not be. (feedback
from users is really the only way to know)

> I'm sure it doesn't work when I copy the images in the user mapset...
> would that work working in PERMANENT?
try with the imagery maps in the same mapset. perhaps with the maps
in PERMANENT you don't need @mapset (it's in the search path), so
it would be ok. shrug.

> I did try to include the images in the group using the
> graphic way but deleting (in the box) @mapset...no luck.
you can look in the $MAPSET/groups/ files too, they are just plain text.

for all of the above --
mitch:
I installed 6.4 0rc3 and the I realized that for a couple of times
unsupervised was working entering @user and using permanent as a pool. Then,
same thing (unable to find the signature file...when all the files are there
in the group!). So I entered @permanent and worked there...fine (I still
don't understand the inconsistency). I entered  @user, copied the images and
it worked. BTW I used only the GUI (I was testing it) so, a bunch of double
clicks generating a bunch of @here and @there in the file naming...that
wasn't the problem (at least in my case).

> But still, how about the Supervised? Wouldn't that work
> and tell me that THERE IS a sub-group
> since I used it (the one created via command) for the
> Usupervised? (I tried to create another group -- via command --
> and run the i.class but when I have to define the
> subgroup...nothing!..it doesn't find it.

I don't work with any of the classification stuff, so am not really
familiar with them, but if you can recreate the problem(s) from the
command line, using the North Carolina or Spearfish sample datasets,
please post the commands to trigger it to the bug tracker and we can
try and reproduce it at our end.

mitch:
supervised...oh man, my black ship :-)
from GUI it seemed to be working the first time:


OPTION:   Name of raster map to be displayed
     key: map
  format: name
required: YES

Enter the name of an existing raster file
Enter 'list' for a list of existing raster files
Hit RETURN to cancel request
> lsat7_2002_40
<lsat7_2002_40>

OPTION:   Name of input imagery group
     key: group
  format: name
required: YES

Enter the name of an existing group file
Enter 'list' for a list of existing group files
Hit RETURN to cancel request
> landsuper
<landsuper>

OPTION:   Name of input imagery subgroup
     key: subgroup
  format: name
required: YES
enter option > landsuper

You have chosen:
  subgroup=landsuper
Is this correct? (y/n) [y] 

OPTION:   File to contain result signatures
     key: outsig
  format: name
required: YES

Enter a new output file name
Hit RETURN to cancel request
> land_sup_class
<land_sup_class>

OPTION:   File containing input signatures (seed)
     key: insig
  format: name
required: NO

Enter the name of an existing input file
Hit RETURN to cancel request
.
.
.
Enter the name of an existing input file
Hit RETURN to cancel request
> 
<>
/usr/lib/grass64/etc/grass-run.sh: line 29:  9553 Segmentation fault     
"$@"

ERROR: i.class exited abnormally. Press <enter> to continue.


What is that "existing input file"?....I tried everything, then I left it
empty -> enter and it kicked me out.
BUT AT LEAST THIS TIME I GOT THERE.....so, I only need to figure out what
that file is, don't I?



from COMMAND...well, that wasn't good...

i.class group=landsuper sub=landsuper map=lsat7_2002_40 outsig=outsig

Run (in Xterm) and I got the following:

=================================================================
If you wish to resize the X monitor, do so now. Window size is
locked while interactive modules are running.
=================================================================

/usr/lib/grass64/etc/grass-run.sh: line 29: i.class group=landsuper
sub=landsuper map=lsat7_2002_40 outsig=outsig: command not found

ERROR: i.class group=landsuper sub=landsuper map=lsat7_2002_40 outsig=outsig
exited abnormally. Press <enter> to continue.



I have no clue on that one.


I hope this my report will help.
Thanks and tell me if I have to post this somewhere else.

mitch

-- 
View this message in context: http://n2.nabble.com/Long-post---Remote-Sensing---Classifications-tp2347807p2365791.html
Sent from the Grass - Users mailing list archive at Nabble.com.



More information about the grass-user mailing list