[GRASS-dev] color for each cell?

2011-09-18 Thread Barton Michael
Is there a way to find out the color value for every cat value in a raster map?

Michael

C. Michael Barton
Director, Center for Social Dynamics  Complexity 
Professor of Anthropology, School of Human Evolution  Social Change
Arizona State University

voice:  480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax:  480-965-7671 (SHESC),  480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu











___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] color for each cell?

2011-09-18 Thread Hamish
Michael wrote:
 Is there a way to find out the color value for every cat
 value in a raster map?

r.stats -n fields --quiet | r.what.color -i fields


Hamish

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev


[GRASS-dev] Re: [GRASS GIS] #1448: run model menu item does not seem to work

2011-09-18 Thread GRASS GIS
#1448: run model menu item does not seem to work
-+--
 Reporter:  cmbarton |   Owner:  martinl
 Type:  defect   |  Status:  assigned   
 Priority:  normal   |   Milestone:  6.4.2  
Component:  wxGUI| Version:  svn-trunk  
 Keywords:  modeler  |Platform:  Unspecified
  Cpu:  Unspecified  |  
-+--

Comment(by martinl):

 Replying to [comment:4 cmbarton]:
  Tested in trunk. Now it runs without an error. But it does not respect
 the 'parameterization' checkbox when run this way. That is, it does not
 open a dialog for file selection or module options when the relevant
 parameterization box is checked. When loaded and run in the modeler GUI
 window, it does present dialogs for parameterized options.  I don't know
 if this is by design or not.

 hopefully fixed in r48342 (trunk) and r48343 (develbr6).

-- 
Ticket URL: http://trac.osgeo.org/grass/ticket/1448#comment:5
GRASS GIS http://grass.osgeo.org

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] Re: [GRASS GIS] #1448: run model menu item does not seem to work

2011-09-18 Thread GRASS GIS
#1448: run model menu item does not seem to work
-+--
 Reporter:  cmbarton |   Owner:  martinl
 Type:  defect   |  Status:  assigned   
 Priority:  critical |   Milestone:  6.4.2  
Component:  wxGUI| Version:  svn-trunk  
 Keywords:  modeler  |Platform:  Unspecified
  Cpu:  Unspecified  |  
-+--
Changes (by martinl):

  * priority:  normal = critical


-- 
Ticket URL: http://trac.osgeo.org/grass/ticket/1448#comment:6
GRASS GIS http://grass.osgeo.org

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] Re: [GRASS GIS] #1448: run model menu item does not seem to work

2011-09-18 Thread GRASS GIS
#1448: run model menu item does not seem to work
-+--
 Reporter:  cmbarton |   Owner:  martinl
 Type:  defect   |  Status:  assigned   
 Priority:  critical |   Milestone:  6.4.2  
Component:  wxGUI| Version:  svn-trunk  
 Keywords:  modeler  |Platform:  Unspecified
  Cpu:  Unspecified  |  
-+--

Comment(by martinl):

 Replying to [comment:6 martinl]:

 Candidates for backport (relbr64):

  * r48308
  * r48343

-- 
Ticket URL: http://trac.osgeo.org/grass/ticket/1448#comment:7
GRASS GIS http://grass.osgeo.org

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] color for each cell?

2011-09-18 Thread Michael Barton
Perfect. Thanks.

Michael

On Sep 18, 2011, at 2:03 AM, Hamish wrote:

 Michael wrote:
 Is there a way to find out the color value for every cat
 value in a raster map?
 
 r.stats -n fields --quiet | r.what.color -i fields
 
 
 Hamish
 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev


Re: [GRASS-dev] color for each cell?

2011-09-18 Thread Martin Landa
2011/9/18 Hamish hamis...@yahoo.com:
 Michael wrote:
 Is there a way to find out the color value for every cat
 value in a raster map?

 r.stats -n fields --quiet | r.what.color -i fields

wiki faq candidate?

Martin

-- 
Martin Landa landa.martin gmail.com * http://geo.fsv.cvut.cz/~landa
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev


Re: [GRASS-dev] color for each cell?

2011-09-18 Thread Michael Barton
Maybe. Where would it go?

Michael Barton



On Sep 18, 2011, at 10:41 AM, Martin Landa wrote:

 2011/9/18 Hamish hamis...@yahoo.com:
 Michael wrote:
 Is there a way to find out the color value for every cat
 value in a raster map?
 
 r.stats -n fields --quiet | r.what.color -i fields
 
 wiki faq candidate?
 
 Martin
 
 -- 
 Martin Landa landa.martin gmail.com * http://geo.fsv.cvut.cz/~landa

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev


[GRASS-dev] [GRASS GIS] #1451: r.li.mps (mean patch size): SIGPIPE at ipc.c:31

2011-09-18 Thread GRASS GIS
#1451: r.li.mps (mean patch size): SIGPIPE at ipc.c:31
--+-
 Reporter:  hamish|   Owner:  grass-dev@…  
 Type:  defect|  Status:  new  
 Priority:  normal|   Milestone:  6.4.2
Component:  Raster| Version:  svn-develbranch6 
 Keywords:  r.li.mps  |Platform:  Linux
  Cpu:  x86-64|  
--+-
 Hi,

 as reported on the ML, r.li.mps falls over with a SIGPIPE. Running outside
 of gdb results in a double free or corruption (fasttop) fault.


 to reproduce: (North Carolina dataset)
 {{{
 g.region rast=landcover_1m
 r.mapcalc forest.test = if(landcover_1m == 2, 1, null())

 mkdir -p ~/.r.li/history/
 cat  EOF  ~/.r.li/history/movwindow7
 SAMPLINGFRAME 0|0|1|1
 SAMPLEAREA -1|-1|0.0147679324895|0.0133079847909
 MOVINGWINDOW
 EOF

 r.li.mps map=forest.test conf=movwindow7 out=mps.test
 ...
 Program received signal SIGPIPE, Broken pipe.
 }}}


 gdb session extracts:
 {{{
 (gdb) frame 2
 #2  0x7754edc9 in calculateIndex (file=0x605270 movwindow7,
 f=0x4013a7 meanPatchSize, parameters=0x0,
 raster=0x605250 forest1996.maybe, output=0x605590 test.out) at
 daemon.c:198
 198 send(child[j].channel, m);
 (gdb) list
 193 j = 0;
 194
 195
 196 while (j  WORKERS  donePid != child[j].pid)
 197 j++;
 198 send(child[j].channel, m);
 199
 200 }
 201
 202 /*kill childs */



 (gdb) frame 1
 #1  0x77551365 in send (pipe=5, m=0x7fffaa80) at ipc.c:31
 31  check = write(pipe, m, sizeof(msg));
 (gdb) list
 26  int send(int pipe, msg * m)
 27  {
 28  int check;
 29
 30  /* write on pipe */
 31  check = write(pipe, m, sizeof(msg));
 32  if (check  0)
 33  return 1;
 34  else
 35  return 0;
 }}}


 Hamish

-- 
Ticket URL: https://trac.osgeo.org/grass/ticket/1451
GRASS GIS http://grass.osgeo.org

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] Re: [GRASS GIS] #1451: r.li.mps (mean patch size): SIGPIPE at ipc.c:31

2011-09-18 Thread GRASS GIS
#1451: r.li.mps (mean patch size): SIGPIPE at ipc.c:31
--+-
 Reporter:  hamish|   Owner:  grass-dev@…  
 Type:  defect|  Status:  new  
 Priority:  normal|   Milestone:  6.4.2
Component:  Raster| Version:  svn-develbranch6 
 Keywords:  r.li.mps  |Platform:  Linux
  Cpu:  x86-64|  
--+-

Comment(by hamish):

 ps- see #1323 for some automatically detected problems by Cppcheck

 {{{
  ./raster/r.li/r.li.mps/mps.c:159 [error] - Resource leak: mask_fd
  ./raster/r.li/r.li.mps/mps.c:530 [error] - Resource leak: mask_fd
  ./raster/r.li/r.li.mps/mps.c:900 [error] - Resource leak: mask_fd
 }}}


 Hamish

-- 
Ticket URL: https://trac.osgeo.org/grass/ticket/1451#comment:1
GRASS GIS http://grass.osgeo.org

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev