I don't have a raster that fits my region. I should create a vector with v.in.region, rasterize it and use it as a MASK... well, I hoped there was something more linear. The same could be used to clip on the base of a polygon.
<br><br>The unsolved problem is rotation (and shift): making affine tranformations using just a x-shift and y-shift parameter, and a rotation angle having set a point as origin (or just around the &quot;center&quot; of the raster).
<br><br><div><span class="gmail_quote">2008/1/25, Nikos Alexandris &lt;<a href="mailto:nikos.alexandris@felis.uni-freiburg.de">nikos.alexandris@felis.uni-freiburg.de</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>if you already have a raster that fits your region then simply create a<br>MASK and just create a new raster with r.mapcalc.<br><br>r.mapcalc clipped_rast=rast<br><br>(r.mapcalc works only on the MASK so you can quickly clip any raster
<br>like that).<br><br><br>On Fri, 2008-01-25 at 00:15 +0100, G. Allegri wrote:<br>&gt; Surely a stupid question, but I can&#39;t find a way to clip a raster on<br>&gt; the base of the region settings and/or the base of a vector. I can
<br>&gt; MASK, I can reclass, but I can&#39;t clip!<br>&gt; Furthermore, is it possible to rotate a raster without the use of a<br>&gt; 1st polynomial rectification through GCPs?<br>&gt;<br>&gt; Giovanni<br>&gt; _______________________________________________
<br>&gt; grass-user mailing list<br>&gt; <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>&gt; <a href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user
</a><br>--<br>Nikos Alexandris<br>.<br>Department of Remote Sensing &amp; Landscape Information Systems<br>Faculty of Forestry &amp; Environmental Sciences, Albert-Ludwigs-University Freiburg<br>.<br>Tel.&nbsp;&nbsp;+49 (0) 761 203 3697 / Fax.&nbsp;&nbsp;+49 (0) 761 203 3701 / Skype: 
Nikos.Alexandris<br>.<br>Address: Tennenbacher str. 4, D-79106 Freiburg i. Br., Germany<br><br></blockquote></div><br>