d.cell

This option of the command d.mon allows the user to print on file three dimensional models (made with d.3d )and the resulting maps of the overlaying of other raster/vector maps.



Example:


1. Creating a d.3d settings file from an X-terminal:
  

          -> prompt:                d.mon x0
				    
				          d.3d

          -> set parameters: viewpoint etc. 

          -> store in a d.3d settings file 

                              		  d.mon stop=x0

  

2. Creating the D_cell file: 

   a) Set the size of the D_cell file (add one pixel to the real dimensions):

   
                              		  export GRASS_HEIGHT=1001 

                              		  export GRASS_WIDTH=1201 

  

   b) Activate CELL driver: 

                              		  d.mon CELL

                              		  d.mon select=CELL


Wait for "Ready". This operation can last some minutes, depending on selected CELL driver's size. 
The CELL file created before is about 1.2Mb.

         

          -> prompt:  d.3d 

          -> specify colormap (es. geology) 

          -> specify elevationmap (es. elevation.dem) 

          -> specify d.3d settings file 

                         		- RUN: Y 

                         		- RUN: N (to exit) 

          -> save 3Dfile: ENTER (saving it's not necessary) 

  

   c) Stop the CELL driver (D_Cell file has been written): 

                              		d.mon stop=CELL

          

   e) Set CELL file region (it's in a different projection): 

                              		g.region rast=D_cell 

  

   f) Export the results as a file name.tif: 

                              		r.out.tiff -v [-p] in=D_cell out= name.tif 

           
          (You can use the D_cell file to create a postscript file with the command ps.map.)
        
  

   g) Reset current region to the originale projection: 

                              		g.region -d 

  

   h) Visualize the resulting map with an image-viewer (the gimp, for emxample).