Computational region: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
(incl FAQ)
(page was strangely messed up)
Line 1: Line 1:
<p>The current region or computational region is the actual setting of the region boundaries and the actual raster resolution.
The current region or computational region is the actual setting of the region boundaries and the actual raster resolution.  
</p><p>As a general rule in GRASS:
 
</p>
As a general rule in GRASS:  
<ol><li> Raster maps are always <b>imported completely</b> at their own resolution (exception: WMS imported layers).
 
</li><li> In computations, raster <b>input</b> maps are automatically cropped/padded and rescaled (using nearest-neighbour resampling) to match the current region in order to produce the output raster map or to query values.
#Raster maps are always '''imported completely''' at their own resolution (exception: WMS imported layers).  
</li><li> Raster <b>output</b> maps have their bounds and resolution equal to those of the current computational region.  
#In computations, raster '''input''' maps are automatically cropped/padded and rescaled (using nearest neighbour resampling) to match the current region in order to produce the output raster map or to query values.  
</li></ol>
#Raster '''output''' maps have their bounds and resolution equal to those of the current computational region.
<h3> FAQs </h3>
 
<p><b>Q:</b> I don't see anything!
 
</p><p><b>A:</b> Typically the computational region is set to an area not covering the raster map of interest. Use <span class="fck_mw_template">{{cmd|g.region}}</span> to adjust the computational region settings, e.g. by setting it to the raster map:
=== FAQs ===
</p>
 
<pre class="_fck_mw_lspace"> g.region rast=myrastermap -p
'''Q:''' I don't see anything!  
</pre>
 
<p><br />
'''A:''' Typically the computational region is set to an area not covering the raster map of interest. Use {{cmd|g.region}} to adjust the computational region settings, e.g. by setting it to the raster map:  
<b>Q:</b> The raster map looks ugly.
 
</p><p><b>A:</b> The resolution of the computational region does not match the resolution of the raster map. Use <span class="fck_mw_template">{{cmd|g.region}}</span> to adjust the resolution settings of the computational region or set it to the raster map (see above).
  g.region rast=myrastermap -p
</p><a _fcknotitle="true" href="Category:FAQ">FAQ</a>
 
<br> '''Q:''' The raster map looks ugly.  
 
'''A:''' The resolution of the computational region does not match the resolution of the raster map. Use {{cmd|g.region}} to adjust the resolution settings of the computational region or set it to the raster map (see above).  
 
[[Category: Documentation]]
[[Category: FAQ]]
[[Category: Tutorial]]

Revision as of 11:58, 4 December 2011

The current region or computational region is the actual setting of the region boundaries and the actual raster resolution.

As a general rule in GRASS:

  1. Raster maps are always imported completely at their own resolution (exception: WMS imported layers).
  2. In computations, raster input maps are automatically cropped/padded and rescaled (using nearest neighbour resampling) to match the current region in order to produce the output raster map or to query values.
  3. Raster output maps have their bounds and resolution equal to those of the current computational region.


FAQs

Q: I don't see anything!

A: Typically the computational region is set to an area not covering the raster map of interest. Use g.region to adjust the computational region settings, e.g. by setting it to the raster map:

 g.region rast=myrastermap -p


Q: The raster map looks ugly.

A: The resolution of the computational region does not match the resolution of the raster map. Use g.region to adjust the resolution settings of the computational region or set it to the raster map (see above).