Any format (except postscript)file output

Bill Brown brown at gis.uiuc.edu
Mon Feb 5 07:00:00 EST 1996



>
>Dave,
>
>Postscript is probably still the best choice of output if you will
>be printing the file.  If it's just going to be displayed on a 
>computer screen, then a raster format should suffice.  
>
>Here's one method I've used occasionally which I like because I
>can log in from home, create a map and an image file, and download
>it in some format (e.g., gif) that I can display on my PC at home.
>
>If you just want to convert a raster map, use r.out.ppm or r.out.tiff.  
>Then use image tools to convert to your favorite raster format.
>
>If you have vector & sites & rasters that you want to display and
>convert, You can use the
>CELL display monitor to write to a GRASS raster file named D_cell, 
>(d.mon start=CELL; d.rast, d.vect, etc; d.mon stop=CELL)
>then export the image using r.out.ppm or r.out.tiff
>(g.region rast=D_cell; r.out.ppm D_cell) 
>and convert the ppm file to whatever format you want using your favorite 
>image conversion tools.  
>
>r.out.ppm is a contributed program available from ftp 
>moon.cecer.army.mil in grass/incoming.  
>The size and resolution of your image will depend on :
>1) the "display" size of the D_cell file, set by using the environment
>   variables GRASS_WIDTH and GRASS_HEIGHT
>2) the region set by g.region at the time you use d.rast, d.vect, etc.
>2) the region set by g.region at the time you use r.out.ppm
>   (generally, use g.region rast=D_cell)
>
>you should be aware that resampling of the data can happen at each of
>these stages.  For best results with this method, try this:
>g.region rast=<rasterfile> -p
>setenv GRASS_WIDTH <cols+1>
>setenv GRASS_HEIGHT <rows+1>
>d.mon start=CELL
>d.rast <rasterfile>
>d.vect <vectorfile>...
>d.mon stop=CELL
>g.region rast=D_cell
>r.out.ppm D_cell [out=outfile.ppm]
>
>Hope this helps!
>
>- Bill
>brown at gis.uiuc.edu
>
>






More information about the grass-user mailing list