Exporting Raster Formats From Grass

Hal Mueller halm at heart.cor.epa.gov
Thu Apr 4 07:00:00 EST 1996


??03?Apr?96?18?22?38?-0800?@bnr.ca>
organization: University of Illinois at Urbana
reply-to: grassu-list at pandora.cecer.army.mil
newsgroups: info.grass.user
originator: daemon at ux1.cso.uiuc.edu


Use the CELL monitor ("d.mon CELL" vice "d.mon x0" or whatever you
usually use).  The environment variables GRASS_WIDTH and GRASS_HEIGHT
control the size of the frame you'll be building.  Then build your
frame the way you normally would (d.3d, d.rast, d.vect, etc.).  Then

d.mon stop=CELL
d.mon x0
g.region rast=D_cell 
# D_cell is the raster layer containing the stuff you 
# drew while CELL was running)
d.erase
d.rast D_cell

D_cell can be exported with r.out.tga or something similar.  I've used
this basic technique to build animations, by using d.3d multiple times
from different viewpoints, or d.rast for time-varying raster layers. 

-- 
Hal Mueller                             Ogden Professional Services
EPA, NHEERL-Western Ecology Division    (541) 754-4490    
200 SW 35th Street                      halm at mail.cor.epa.gov
Corvallis, Oregon 97333-4901  USA       http://www.zilker.net/~hal/





More information about the grass-user mailing list