[GRASSLIST:9242] RE: Updates to thematic mapping and new r.mask

Michael,

Sorry, this is a pretty dumb question I guess, but do we need to download a
new GIS manager tarfile or just a new d.vect.thematic script or both? I
noticed that the date modified for your thematic.tgz is May 2005, should it
be more current or am I not looking in the right directory
(http://www.public.asu.edu/~cmbarton/files/grass_scripts/display/
<http://www.public.asu.edu/~cmbarton/files/grass_scripts/display/&gt; )?

Thanks,

~ Eric.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Eric Patton

Technologist, Geo-Spatial Data Services
Geological Survey of Canada (Atlantic)
Natural Resources Canada
Bedford Institute of Oceanography
Dartmouth, Nova Scotia, Canada B2Y 4A2

Postal address: P.O. Box 1006
Courier address: 1 Challenger Drive

Telephone: (902)426-7732
Facsimile: (902)426-4104
E-mail: <mailto:epatton@NRCan.gc.ca> epatton@NRCan.gc.ca

  _____

From: owner-GRASSLIST@baylor.edu [mailto:owner-GRASSLIST@baylor.edu] On
Behalf Of Michael Barton
Sent: Tuesday, November 29, 2005 3:05 AM
To: grass5; Multiple recipients of list
Subject: [GRASSLIST:9234] Updates to thematic mapping and new r.mask

This morning I committed a set of updates to d.vect.thematic. The main ones
include: 1) new thematic mapping by graduated line widths, 2) independent
coloring of lines (including around areas), 3) an option to turn off
outlines of areas and points, and 4) a change in a few options to get rid of
spaces (making scripting easier). The main thing that people need to be
aware of are changes to some of the options. For example, "graduated points"
now is "graduated_points" and "standard deviation" becomes "std_deviation".
This makes it simpler to script d.vect.thematic. It will make no difference
to people who run it from the autogenerated tcltk dialog or from the GIS
Manager (updated with the new options). But people who only run it from the
command line should check the options before doing so for the new version.
The legend for graduated line width is pretty lame, but it's the best I
could do with d.graph. There were a few other bug fixes, including one that
made it hang when run from the GIS Manager.

After repeatedly seeing queries about how to make a raster mask in GRASS 6,
I wrote a small script named r.script. This script brings back most of the
functionality of the GRASS 6 module r.mask. It uses r.reclass to create a
MASK raster file from an existing raster file, allowing the user to select
which cat values to include in the mask (e.g., you can make a MASK of
elevations 100-500m in a DEM). Removing a mask is still done via g.remove or
g.rename, but someone could probably add a 'remove mask' flag to the script
if it is really wanted. I added r.mask to the menu in the updates to the GIS
Manager that I also committed this morning. I hope this is helpful.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
<http://www.public.asu.edu/~cmbarton&gt;

Eric,

Not a dumb question at all.

If you just want to use d.vect.thematic, you can just download the script and copy it to your $GISBASE/scripts folder.

If you want to use it from the GIS Manager, you should download a new version of the GIS Manager—or at least the *.tcl files. I haven’t yet posted a any of this to my web site, but can do so when I have a few minutes to pack it up and upload it. You can also get it all from the CVS (use the web interface if easier).

Michael


Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton


From: “Patton, Eric” epatton@nrcan.gc.ca
Date: Tue, 29 Nov 2005 09:33:18 -0400
To: ‘Michael Barton’ michael.barton@asu.edu, Multiple recipients of list GRASSLIST@baylor.edu
Subject: RE: [GRASSLIST:9234] Updates to thematic mapping and new r.mask

Michael,

Sorry, this is a pretty dumb question I guess, but do we need to download a new GIS manager tarfile or just a new d.vect.thematic script or both? I noticed that the date modified for your thematic.tgz is May 2005, should it be more current or am I not looking in the right directory (http://www.public.asu.edu/~cmbarton/files/grass_scripts/display/)??)

Thanks,

~ Eric.


**Eric Patton**

*Technologist, Geo-Spatial Data Services*
*Geological Survey of Canada (Atlantic)*
*Natural Resources Canada*
*Bedford Institute of Oceanography*
*Dartmouth, Nova Scotia, Canada B2Y 4A2*

*Postal address: P.O. Box 1006*
*Courier address: 1 Challenger Drive*

*Telephone: (902)426-7732*
*Facsimile: (902)426-4104*
*E-mail:* *epatton@NRCan.gc.ca* [<mailto:epatton@NRCan.gc.ca>](mailto:epatton@NRCan.gc.ca)

---

**From:** owner-GRASSLIST@baylor.edu [[mailto:owner-GRASSLIST@baylor.edu]](mailto:owner-GRASSLIST@baylor.edu]) **On Behalf Of** Michael Barton
**Sent:** Tuesday, November 29, 2005 3:05 AM
**To:** grass5; Multiple recipients of list
**Subject:** [GRASSLIST:9234] Updates to thematic mapping and new r.mask

This morning I committed a set of updates to d.vect.thematic. The main ones include: 1) new thematic mapping by graduated line widths, 2) independent coloring of lines (including around areas), 3) an option to turn off outlines of areas and points, and 4) a change in a few options to get rid of spaces (making scripting easier). The main thing that people need to be aware of are changes to some of the options. For example, "graduated points" now is "graduated_points" and "standard deviation" becomes "std_deviation". This makes it simpler to script d.vect.thematic. It will make no difference to people who run it from the autogenerated tcltk dialog or from the GIS Manager (updated with the new options). But people who only run it from the command line should check the options before doing so for the new version. The legend for graduated line width is pretty lame, but it's the best I could do with d.graph. There were a few other bug fixes, including one that made it hang when run from the GIS Manager.

After repeatedly seeing queries about how to make a raster mask in GRASS 6, I wrote a small script named r.script. This script brings back most of the functionality of the GRASS 6 module r.mask. It uses r.reclass to create a MASK raster file from an existing raster file, allowing the user to select which cat values to include in the mask (e.g., you can make a MASK of elevations 100-500m in a DEM). Removing a mask is still done via g.remove or g.rename, but someone could probably add a 'remove mask' flag to the script if it is really wanted. I added r.mask to the menu in the updates to the GIS Manager that I also committed this morning. I hope this is helpful.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402

phone: 480-965-6213
fax: 480-965-7671
www: [http://www.public.asu.edu/~cmbarton](http://www.public.asu.edu/~cmbarton)

Eric,

I just pasted the newest version of the GIS Manager to my website, along with the updated d.vect.thematic and r.mask http://www.public.asu.edu/~cmbarton/files/grass_gismgr/.

Michael


Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton


From: “Patton, Eric” epatton@nrcan.gc.ca
Date: Tue, 29 Nov 2005 09:33:18 -0400
To: ‘Michael Barton’ michael.barton@asu.edu, Multiple recipients of list GRASSLIST@baylor.edu
Subject: RE: [GRASSLIST:9234] Updates to thematic mapping and new r.mask

Michael,

Sorry, this is a pretty dumb question I guess, but do we need to download a new GIS manager tarfile or just a new d.vect.thematic script or both? I noticed that the date modified for your thematic.tgz is May 2005, should it be more current or am I not looking in the right directory (http://www.public.asu.edu/~cmbarton/files/grass_scripts/display/)??)

Thanks,

~ Eric.


**Eric Patton**

*Technologist, Geo-Spatial Data Services*
*Geological Survey of Canada (Atlantic)*
*Natural Resources Canada*
*Bedford Institute of Oceanography*
*Dartmouth, Nova Scotia, Canada B2Y 4A2*

*Postal address: P.O. Box 1006*
*Courier address: 1 Challenger Drive*

*Telephone: (902)426-7732*
*Facsimile: (902)426-4104*
*E-mail:* *epatton@NRCan.gc.ca* [<mailto:epatton@NRCan.gc.ca>](mailto:epatton@NRCan.gc.ca)

---

**From:** owner-GRASSLIST@baylor.edu [[mailto:owner-GRASSLIST@baylor.edu]](mailto:owner-GRASSLIST@baylor.edu]) **On Behalf Of** Michael Barton
**Sent:** Tuesday, November 29, 2005 3:05 AM
**To:** grass5; Multiple recipients of list
**Subject:** [GRASSLIST:9234] Updates to thematic mapping and new r.mask

This morning I committed a set of updates to d.vect.thematic. The main ones include: 1) new thematic mapping by graduated line widths, 2) independent coloring of lines (including around areas), 3) an option to turn off outlines of areas and points, and 4) a change in a few options to get rid of spaces (making scripting easier). The main thing that people need to be aware of are changes to some of the options. For example, "graduated points" now is "graduated_points" and "standard deviation" becomes "std_deviation". This makes it simpler to script d.vect.thematic. It will make no difference to people who run it from the autogenerated tcltk dialog or from the GIS Manager (updated with the new options). But people who only run it from the command line should check the options before doing so for the new version. The legend for graduated line width is pretty lame, but it's the best I could do with d.graph. There were a few other bug fixes, including one that made it hang when run from the GIS Manager.

After repeatedly seeing queries about how to make a raster mask in GRASS 6, I wrote a small script named r.script. This script brings back most of the functionality of the GRASS 6 module r.mask. It uses r.reclass to create a MASK raster file from an existing raster file, allowing the user to select which cat values to include in the mask (e.g., you can make a MASK of elevations 100-500m in a DEM). Removing a mask is still done via g.remove or g.rename, but someone could probably add a 'remove mask' flag to the script if it is really wanted. I added r.mask to the menu in the updates to the GIS Manager that I also committed this morning. I hope this is helpful.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402

phone: 480-965-6213
fax: 480-965-7671
www: [http://www.public.asu.edu/~cmbarton](http://www.public.asu.edu/~cmbarton)

I am having problems creating a new x,y location in GRASS 6.1 cvs, using Lorenzo Moretti's last Mac OSX binaries. I want to use i.rectify to project UTM rasters out of my UTM location into this x,y location. I created the new location, set it as the target in i.target, ran i.rectify to rectify the UTM raster. But when I change locations and try to access the rectified raster, I get an errors:

Can't open header file for [dem.gps.adj.bgrid in PERMANENT]

category support for [dem.gps.adj.bgrid] in mapset [PERMANENT] missing

can't get history information for [dem.gps.adj.bgrid] in mapset [PERMANENT]

can't read f_range file for [dem.gps.adj.bgrid in PERMANENT]

could not read range file

So it looks like the header & other data were not created when the file was rectified.

In the PERMANENT directory of the target mapset, there is a directory cellhd, which has a reasonable-sized file in it; but no directories for e.g. cats, colr, cellhd, hist, etc. and no files PROJ_INFO, PROJ_UNITS, and a number of other files & directories which are in my original UTM mapset, created long ago with GRASS 5 or so. Is GRASS somehow not creating a complete mapset, or something? Any ideas?

Thanks,

Nick Cahill