This topic needs a title

Newsgroups: info.grass.user
Path: copeland
From: copeland@lamar.ColoState.EDU (Jeffrey Copeland)
Subject: Re: mask
Sender: news@yuma.ACNS.ColoState.EDU (News Account)
Message-ID: <Oct11.172455.91711@yuma.ACNS.ColoState.EDU>
Date: Mon, 11 Oct 1993 17:24:55 GMT
References: <9310111459.AA09956@bronto.geo.vu.nl>
Nntp-Posting-Host: lamar.acns.colostate.edu
Organization: Colorado State University
Lines: 35

I've had a few responses but my question wasn't clear, so....
if I have a raster map that looks like

                          0000000000
                          0011111100
                          0010000100
                          0010000100
                          0010000100
                          0010000100
                          0011111100
                          0000000000

how do I get it to look like

                          0000000000
                          0011111100
                          0011111100
                          0011111100
                          0011111100
                          0011111100
                          0011111100
                          0000000000

so that I can use it as a MASK?

-------------------------------------------------------------------------------
Jeffrey Copeland | We're wanted men,
Colorado State University | We'll strike again,
Atmospheric Science | But first let's have a beer!
303-491-8502 |
copeland@homebrew.atmos.colostate.edu | J.Buffet, Great Filling Station Holdup
-------------------------------------------------------------------------------

----- End Included Message -----

Dear Sir:
Here is my suggestion. When you drew an area and digitized it, you can label the boundary line and area within the boundary line with same category "1" in v.digit command. Then transfer the vector file to raster file by running v.to.rast. Finally, use r.mask, and set inside as "1" and outside as "0".
Good luck.

John Wu