[GRASSLIST:92] 5.0.0pre3 to 5.0.2 conversion problem

Michael Ash mash at econs.umass.edu
Wed May 21 02:29:37 EDT 2003


I recently installed the Grass 5.0.2 binary for
Cygwin/Xwindows.

A script that I wrote for 5.0.0pre3 no longer works quite
right.  The colors have changed in the raster maps (in one
case the map is a solid color, in another case querying the
raster map gives very large negative values).  and the scale
produced by d.scale has moved and changed length.  When I
revert to 5.0.0pre3, all is well again.  I will reprint the
script below--perhaps there are commands that now function
differently.  Or are there different data formats for the
two versions? IF so, is it possible to convert old files to
new?

Also, in 5.0.2, I get frequent "Socket is not accepting
connections..." messages whenever I start or select a
monitor.  I can usually make Grass display what I want but
the message is troubling.




Here is the script:

#!/usr/bin/sh/

g.region n=1500 s=-1400 w=-3000 e=3000

d.mon stop=x0
d.mon stop=x1
d.mon stop=x2

d.monsize 1000 700 x0
d.erase
d.rast onsitegridsmoothlog bg=black
echo "Log RSEI Score" | d.text  color=red

d.monsize 1000 700 x1
d.erase
d.rast bg.smoothavg bg=black
echo "Block Groups in Urbanized Areas" | d.text  color=red

g.region n=745 s=440 w=589 e=849
# d.monsize 1000 1000 x2
d.mon start=PNG
echo "Chicago and Milwaukee" | d.text line=1 color=red
d.frame -c frame=rsei at=45,90,0,45
d.frame -c frame=black at=45,90,45,90
d.frame -c frame=hisp at=0,45,0,45
d.frame -c frame=income at=0,45,45,90

d.frame -s frame=rsei
d.scale at=100,0
d.rast -o bg.logsmoothavg
echo "Log RSEI Score" | d.text line=2 color=red


d.frame -s frame=black
d.rast bg.nh_black bg=black
echo "Percent Black" | d.text  line=2  color=red

d.frame -s frame=hisp
d.rast bg.hisp bg=black
echo "Percent Hispanic" | d.text  line=2  color=red

d.frame -s frame=income
d.rast bg.hhinck bg=black
echo "Median Household Income" | d.text line=2   color=red
d.mon stop=PNG



Best regards,

Michael



Michael Ash, Assistant Professor
  of Economics and Public Policy
Department of Economics and CPPA
University of Massachusetts
Amherst, MA 01003
Tel 413-545-6329 Fax 413-545-2921
Email mash at econs.umass.edu
http://people.umass.edu/maash




More information about the grass-user mailing list