Moritz,
Couldn’t help myself and tried out the new v.area.thematic.
I very much like it, but there is something not working about the color assignments. I tried the following, using the new NC GRASS demo data set.
GRASS 6.3.svn (nc_spm_07):~ > d.area.thematic map=censusblk_swwake data=total_pop breaks=‘v.class map=censusblk_swwake column=total_pop algo=std nbcla=4’ colors=0:0:255,0:0:100,100:0:0,255:0:0 layer=1 bwidth=0 bcolor=yellow render=l
v.class shows the following
From To Frequency
0.000000 20.208039 1136
20.208039 63.030745 779
63.030745 105.853451 270
105.853451 6173.000000 1136
But the map only shows 2 colors (blue and dark blue). Everything else I try only shows 2 colors, whether I use GRASS standard colors or RGB designations.
C. Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>
On 29/12/07 20:20, Michael Barton wrote:
Moritz,
Couldn't help myself and tried out the new v.area.thematic.
I very much like it, but there is something not working about the color assignments. I tried the following, using the new NC GRASS demo data set.
GRASS 6.3.svn (nc_spm_07):~ > d.area.thematic map=censusblk_swwake data=total_pop breaks='v.class map=censusblk_swwake column=total_pop algo=std nbcla=4' colors=0:0:255,0:0:100,100:0:0,255:0:0 layer=1 bwidth=0 bcolor=yellow render=l
v.class shows the following
From To Frequency
0.000000 20.208039 1136
20.208039 63.030745 779
63.030745 105.853451 270
105.853451 6173.000000 1136
But the map only shows 2 colors (blue and dark blue). Everything else I try only shows 2 colors, whether I use GRASS standard colors or RGB designations.
Thanks for testing. I'll look into this.
Moritz
Michael,
On 29/12/07 20:20, Michael Barton wrote:
Moritz,
Couldn't help myself and tried out the new v.area.thematic.
I very much like it, but there is something not working about the color assignments. I tried the following, using the new NC GRASS demo data set.
GRASS 6.3.svn (nc_spm_07):~ > d.area.thematic map=censusblk_swwake data=total_pop breaks='v.class map=censusblk_swwake column=total_pop algo=std nbcla=4' colors=0:0:255,0:0:100,100:0:0,255:0:0 layer=1 bwidth=0 bcolor=yellow render=l
Two things are not correct in this command line:
- You need to use back ticks (`) and not single quotes (') aroung the v.class command line.
- The example in the description.html was wrong: it should be v.class -g so that you do not get the full v.class output, but only the shell style.
This should work:
d.area.thematic map=censusblk_swwake data=total_pop breaks=`v.class -g map=censusblk_swwake column=total_pop algo=std nbcla=4` colors=0:0:255,0:0:100,100:0:0,255:0:0 layer=1 bwidth=0 bcolor=yellow render=l
Moritz